Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

YUVStream Class Reference

#include <yuvstream.h>

List of all members.

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)

Public Attributes

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 10 of file yuvstream.C.

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

YUVStream::~YUVStream  ) 
 

Definition at line 19 of file yuvstream.C.

References close_fd(), frame_index, frame_info, and stream_info.


Member Function Documentation

void YUVStream::close_fd  ) 
 

Definition at line 76 of file yuvstream.C.

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

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

double YUVStream::get_aspect_ratio  ) 
 

Definition at line 265 of file yuvstream.C.

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

Referenced by FileYUV::open_file().

double YUVStream::get_frame_rate  ) 
 

Definition at line 253 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

int YUVStream::get_height  ) 
 

Definition at line 246 of file yuvstream.C.

References stream_info.

Referenced by get_aspect_ratio(), make_index(), FileYUV::open_file(), FileYUV::read_frame(), set_aspect_ratio(), and FileYUV::write_frames().

int YUVStream::get_interlace  ) 
 

Definition at line 231 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

int YUVStream::get_width  ) 
 

Definition at line 239 of file yuvstream.C.

References stream_info.

Referenced by get_aspect_ratio(), make_index(), FileYUV::open_file(), FileYUV::read_frame(), set_aspect_ratio(), and FileYUV::write_frames().

int YUVStream::make_index  ) 
 

Definition at line 150 of file yuvstream.C.

References frame_count, frame_index, get_height(), get_width(), read_frame(), and stream_fd.

Referenced by open_read().

int YUVStream::open_read char *  path  ) 
 

Definition at line 27 of file yuvstream.C.

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

Referenced by FileYUV::open_file().

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

Definition at line 53 of file yuvstream.C.

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

Referenced by FileYUV::open_file().

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

Definition at line 87 of file yuvstream.C.

References frame_info, 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 101 of file yuvstream.C.

References frame_info, stream_fd, and stream_info.

Referenced by FileYUV::read_frame().

int YUVStream::read_header  ) 
 

Definition at line 212 of file yuvstream.C.

References stream_fd, and stream_info.

Referenced by open_read().

int YUVStream::seek_frame int64_t  frame_number  ) 
 

Definition at line 189 of file yuvstream.C.

References frame_count, frame_index, and stream_fd.

Referenced by FileYUV::set_video_position().

void YUVStream::set_aspect_ratio double  aspect_ratio  ) 
 

Definition at line 275 of file yuvstream.C.

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

Referenced by FileYUV::open_file().

void YUVStream::set_frame_rate double  frame_rate  ) 
 

Definition at line 258 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

void YUVStream::set_height int  height  ) 
 

Definition at line 249 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

void YUVStream::set_interlace int  width  ) 
 

Definition at line 235 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

void YUVStream::set_width int  width  ) 
 

Definition at line 242 of file yuvstream.C.

References stream_info.

Referenced by FileYUV::open_file().

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

Definition at line 121 of file yuvstream.C.

References frame_info, 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 130 of file yuvstream.C.

References frame_info, stream_fd, and stream_info.

Referenced by FileYUV::write_frames().

int YUVStream::write_header  ) 
 

Definition at line 221 of file yuvstream.C.

References stream_fd, and stream_info.

Referenced by FileYUV::open_file().


Member Data Documentation

int64_t YUVStream::frame_count
 

Definition at line 49 of file yuvstream.h.

Referenced by make_index(), FileYUV::open_file(), seek_frame(), 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().

y4m_frame_info_t YUVStream::frame_info [private]
 

Definition at line 54 of file yuvstream.h.

Referenced by read_frame(), read_frame_raw(), write_frame(), write_frame_raw(), YUVStream(), and ~YUVStream().

int YUVStream::stream_fd
 

Definition at line 51 of file yuvstream.h.

Referenced by close_fd(), make_index(), open_read(), open_write(), read_frame(), read_frame_raw(), read_header(), seek_frame(), write_frame(), write_frame_raw(), write_header(), and YUVStream().

y4m_stream_info_t YUVStream::stream_info [private]
 

Definition at line 53 of file yuvstream.h.

Referenced by get_aspect_ratio(), get_frame_rate(), get_height(), get_interlace(), get_width(), read_frame(), read_frame_raw(), read_header(), set_aspect_ratio(), set_frame_rate(), set_height(), set_interlace(), set_width(), write_frame(), write_frame_raw(), write_header(), YUVStream(), and ~YUVStream().

Pipe* YUVStream::stream_pipe [private]
 

Definition at line 55 of file yuvstream.h.

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


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:29 2006 for Cinelerra-svn by  doxygen 1.4.4