[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcvd-members] libcvd/cvd_src videofilebuffer.cc
From: |
Colin Starr |
Subject: |
[Libcvd-members] libcvd/cvd_src videofilebuffer.cc |
Date: |
Tue, 23 May 2006 15:33:37 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Branch:
Changes by: Colin Starr <address@hidden> 06/05/23 15:33:37
Modified files:
cvd_src : videofilebuffer.cc
Log message:
This file is now deprecated. However, cleaned out previously committed
debugging crud so the source can be used again if required.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/libcvd/cvd_src/videofilebuffer.cc.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
Patches:
Index: libcvd/cvd_src/videofilebuffer.cc
diff -u libcvd/cvd_src/videofilebuffer.cc:1.10
libcvd/cvd_src/videofilebuffer.cc:1.11
--- libcvd/cvd_src/videofilebuffer.cc:1.10 Tue May 23 15:25:33 2006
+++ libcvd/cvd_src/videofilebuffer.cc Tue May 23 15:33:37 2006
@@ -222,19 +222,9 @@
if(is_rgb)
{
- printf("Before creating tmp\n");
-
-
-
Image<Rgb<byte> > tmp(my_size);
- //next_frame = (reinterpret_cast<Image<byte>&>(tmp));
+ next_frame = (reinterpret_cast<Image<byte>&>(tmp));
next_frame = tmp;
-
- printf("RawVideoFileBuffer::read_next_frame(): tmp = %p\n",
(void *) &tmp);
-
- std::cout << next_frame.size() << " " << my_size << std::endl;
- std::cout << sizeof(tmp) << " " << sizeof(next_frame) <<
std::endl;
- printf("RawVideoFileBuffer::read_next_frame(): next_frame =
%p\n", (void *) &next_frame);
}
else
@@ -306,9 +296,7 @@
//
// GET FRAME
//
-//CCS36
-//VideoFileFrame<byte>* RawVideoFileBuffer::get_frame()
-VideoFileFrame<T>* RawVideoFileBuffer::get_frame()
+VideoFileFrame<byte>* RawVideoFileBuffer::get_frame()
{
if(!frame_pending())
@@ -317,11 +305,7 @@
// Don't use - pCC->frame_number doesn't reset after a seek!
// Instead, we ask the packet its time when we decode it
// double time = start_time + pCodecContext->frame_number *
pCodecContext->frame_rate_base / static_cast<double>(pCodecContext->frame_rate);
- puts("get_frame: before vf");
- //CCS36
- //VideoFileFrame<byte>* vf = new VideoFileFrame<byte>(frame_time,
next_frame);
- VideoFileFrame<T>* vf = new VideoFileFrame<T>(frame_time, next_frame);
- printf("get_frame: after vf; vf = %p\n", (void *) vf);
+ VideoFileFrame<byte>* vf = new VideoFileFrame<byte>(frame_time,
next_frame);
if(!read_next_frame())
{
@@ -333,11 +317,9 @@
// I can return it next time as well
if(is_rgb)
{
- //CCS36
- //Image<Rgb<byte> > tmp =
reinterpret_cast<Image<Rgb<byte> >&>(next_frame);
-
//tmp.copy_from(reinterpret_cast<VideoFileFrame<Rgb<byte> >&>(*vf));
- //next_frame =
(reinterpret_cast<Image<byte>&>(tmp));
- next_frame.copy_from(*vf);
+ Image<Rgb<byte> > tmp =
reinterpret_cast<Image<Rgb<byte> >&>(next_frame);
+
tmp.copy_from(reinterpret_cast<VideoFileFrame<Rgb<byte> >&>(*vf));
+ next_frame =
(reinterpret_cast<Image<byte>&>(tmp));
}
else
{
@@ -361,13 +343,9 @@
//
// PUT FRAME
//
-//CCS36
-//void RawVideoFileBuffer::put_frame(VideoFrame<byte>* f)
-void RawVideoFileBuffer::put_frame(VideoFrame<T>* f)
+void RawVideoFileBuffer::put_frame(VideoFrame<byte>* f)
{
- //CCS36
- //VideoFileFrame<byte>* vff = dynamic_cast<VideoFileFrame<byte> *>(f);
- VideoFileFrame<T>* vff = dynamic_cast(VideoFileFrame<T> *>(f);
+ VideoFileFrame<byte>* vff = dynamic_cast<VideoFileFrame<byte> *>(f);
if(!vff)
throw Exceptions::VideoBuffer::BadPutFrame();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Libcvd-members] libcvd/cvd_src videofilebuffer.cc,
Colin Starr <=