YUVStream Class Reference

#include <yuvstream.h>

Collaboration diagram for YUVStream:

Collaboration graph
[legend]

Public Member Functions

 YUVStream ()
 ~YUVStream ()
int open_read (char *path)
int open_write (char *path, char *pipe)
void close_fd ()
int read_frame (uint8_t *yuv[3])
int read_frame_raw (uint8_t *data, long frame_size)
int write_frame (uint8_t *yuv[3])
int write_frame_raw (uint8_t *data, long frame_size)
int make_index ()
int seek_frame (int64_t frame_number)
int read_header ()
int write_header ()
int get_interlace ()
void set_interlace (int width)
int get_width ()
void set_width (int width)
int get_height ()
void set_height (int height)
double get_frame_rate ()
void set_frame_rate (double frame_rate)
double get_aspect_ratio ()
void set_aspect_ratio (double aspect_ratio)

Data Fields

int64_t frame_count
int stream_fd

Private Attributes

y4m_stream_info_t stream_info
y4m_frame_info_t frame_info
Pipestream_pipe
ArrayList< off_t > * frame_index

Detailed Description

Definition at line 13 of file yuvstream.h.


Constructor & Destructor Documentation

YUVStream::YUVStream (  ) 

Definition at line 11 of file yuvstream.C.

References frame_count, frame_index, stream_fd, stream_info, and stream_pipe.

YUVStream::~YUVStream (  ) 

Definition at line 20 of file yuvstream.C.

References close_fd(), frame_index, and stream_info.

Here is the call graph for this function:


Member Function Documentation

int YUVStream::open_read ( char *  path  ) 

Definition at line 28 of file yuvstream.C.

References eprintf, frame_index, make_index(), read_header(), and stream_fd.

Referenced by FileYUV::open_file().

Here is the call graph for this function:

int YUVStream::open_write ( char *  path,
char *  pipe 
)

Definition at line 54 of file yuvstream.C.

References eprintf, Pipe::fd, Pipe::open_write(), strchr, stream_fd, and stream_pipe.

Referenced by FileYUV::open_file().

Here is the call graph for this function:

void YUVStream::close_fd (  ) 

Definition at line 77 of file yuvstream.C.

References Pipe::close(), stream_fd, and stream_pipe.

Referenced by FileYUV::close_file(), and ~YUVStream().

Here is the call graph for this function:

int YUVStream::read_frame ( uint8_t *  yuv[3]  ) 

Definition at line 88 of file yuvstream.C.

References eprintf, stream_fd, and stream_info.

Referenced by make_index(), and FileYUV::read_frame().

int YUVStream::read_frame_raw ( uint8_t *  data,
long  frame_size 
)

Definition at line 102 of file yuvstream.C.

References eprintf, stream_fd, and stream_info.

Referenced by FileYUV::read_frame().

int YUVStream::write_frame ( uint8_t *  yuv[3]  ) 

Definition at line 122 of file yuvstream.C.

References eprintf, stream_fd, and stream_info.

Referenced by FileYUV::close_file(), and FileYUV::write_frames().

int YUVStream::write_frame_raw ( uint8_t *  data,
long  frame_size 
)

Definition at line 131 of file yuvstream.C.

References eprintf, stream_fd, and stream_info.

Referenced by FileYUV::write_frames().

int YUVStream::make_index (  ) 

int YUVStream::seek_frame ( int64_t  frame_number  ) 

Definition at line 190 of file yuvstream.C.

References eprintf, frame_count, frame_index, stream_fd, and ArrayList< TYPE >::values.

Referenced by FileYUV::set_video_position().

int YUVStream::read_header (  ) 

Definition at line 213 of file yuvstream.C.

References eprintf, stream_fd, and stream_info.

Referenced by open_read().

int YUVStream::write_header (  ) 

Definition at line 222 of file yuvstream.C.

References eprintf, stream_fd, and stream_info.

Referenced by FileYUV::open_file().

int YUVStream::get_interlace (  ) 

Definition at line 232 of file yuvstream.C.

References ilace_yuv4mpeg_to_bc(), and stream_info.

Referenced by FileYUV::open_file().

Here is the call graph for this function:

void YUVStream::set_interlace ( int  width  ) 

Definition at line 236 of file yuvstream.C.

References ilace_bc_to_yuv4mpeg(), and stream_info.

Referenced by FileYUV::open_file().

Here is the call graph for this function:

int YUVStream::get_width (  ) 

void YUVStream::set_width ( int  width  ) 

Definition at line 243 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

int YUVStream::get_height (  ) 

void YUVStream::set_height ( int  height  ) 

Definition at line 250 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

double YUVStream::get_frame_rate (  ) 

Definition at line 254 of file yuvstream.C.

References frame_rate, and stream_info.

Referenced by FileYUV::open_file().

void YUVStream::set_frame_rate ( double  frame_rate  ) 

Definition at line 259 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

double YUVStream::get_aspect_ratio (  ) 

Definition at line 266 of file yuvstream.C.

References get_height(), get_width(), and stream_info.

Referenced by FileYUV::open_file().

Here is the call graph for this function:

void YUVStream::set_aspect_ratio ( double  aspect_ratio  ) 

Definition at line 276 of file yuvstream.C.

References get_height(), get_width(), and stream_info.

Referenced by FileYUV::open_file().

Here is the call graph for this function:


Field Documentation

Definition at line 49 of file yuvstream.h.

Referenced by make_index(), FileYUV::open_file(), seek_frame(), and YUVStream().

y4m_stream_info_t YUVStream::stream_info [private]

y4m_frame_info_t YUVStream::frame_info [private]

Definition at line 54 of file yuvstream.h.

Definition at line 55 of file yuvstream.h.

Referenced by close_fd(), open_write(), and YUVStream().

ArrayList<off_t>* YUVStream::frame_index [private]

Definition at line 56 of file yuvstream.h.

Referenced by make_index(), open_read(), seek_frame(), YUVStream(), and ~YUVStream().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:51:05 2008 for Cinelerra by  doxygen 1.5.5