#include <yuvstream.h>

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 |
| Pipe * | stream_pipe |
| ArrayList< off_t > * | frame_index |
Definition at line 13 of file yuvstream.h.
| 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.

| 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().

| 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().

| 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().

| 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 | ( | ) |
Definition at line 151 of file yuvstream.C.
References ArrayList< TYPE >::append(), BC_YUV420P, frame_count, frame_index, get_height(), VFrame::get_u(), VFrame::get_v(), get_width(), VFrame::get_y(), read_frame(), stream_fd, ArrayList< TYPE >::values, and yuv.
Referenced by open_read().

| 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().

| 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().

| int YUVStream::get_width | ( | ) |
Definition at line 240 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().
| 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 | ( | ) |
Definition at line 247 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().
| 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().

| 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().

| int64_t YUVStream::frame_count |
Definition at line 49 of file yuvstream.h.
Referenced by make_index(), FileYUV::open_file(), seek_frame(), and YUVStream().
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().
y4m_frame_info_t YUVStream::frame_info [private] |
Definition at line 54 of file yuvstream.h.
Pipe* YUVStream::stream_pipe [private] |
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().
1.5.5