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

FFMPEG Class Reference

#include <ffmpeg.h>

List of all members.

Public Member Functions

 FFMPEG (Asset *asset_in)
 ~FFMPEG ()
int init (char *codec_string)
int decode (uint8_t *data, long data_size, VFrame *frame_out)

Static Public Member Functions

static int convert_cmodel (AVPicture *picture_in, PixelFormat pix_fmt, int width_in, int height_in, VFrame *frame_out)
static int convert_cmodel (VFrame *frame_in, VFrame *frame_out)
static int convert_cmodel_transfer (VFrame *frame_in, VFrame *frame_out)
static int init_picture_from_frame (AVPicture *picture, VFrame *frame)
static CodecID codec_id (char *codec_string)

Static Private Member Functions

static PixelFormat color_model_to_pix_fmt (int color_model)
static int pix_fmt_to_color_model (PixelFormat pix_fmt)

Private Attributes

int got_picture
Assetasset
AVCodec * codec
AVCodecContext * context
AVFrame * picture


Detailed Description

Definition at line 11 of file ffmpeg.h.


Constructor & Destructor Documentation

FFMPEG::FFMPEG Asset asset_in  ) 
 

Definition at line 8 of file ffmpeg.C.

References codec, context, got_picture, and picture.

FFMPEG::~FFMPEG  ) 
 

Definition at line 40 of file ffmpeg.C.

References context, and picture.


Member Function Documentation

CodecID FFMPEG::codec_id char *  codec_string  )  [static]
 

Definition at line 47 of file ffmpeg.C.

References CODEC_IS.

Referenced by FileYUV::can_copy_from(), init(), and FileYUV::write_frames().

PixelFormat FFMPEG::color_model_to_pix_fmt int  color_model  )  [static, private]
 

Definition at line 61 of file ffmpeg.C.

Referenced by convert_cmodel(), and init_picture_from_frame().

int FFMPEG::convert_cmodel VFrame *  frame_in,
VFrame *  frame_out
[static]
 

Definition at line 136 of file ffmpeg.C.

References color_model_to_pix_fmt(), convert_cmodel_transfer(), and init_picture_from_frame().

int FFMPEG::convert_cmodel AVPicture *  picture_in,
PixelFormat  pix_fmt,
int  width_in,
int  height_in,
VFrame *  frame_out
[static]
 

Definition at line 201 of file ffmpeg.C.

References color_model_to_pix_fmt(), init_picture_from_frame(), and pix_fmt_to_color_model().

Referenced by decode(), FileYUV::read_frame(), and FileYUV::write_frames().

int FFMPEG::convert_cmodel_transfer VFrame *  frame_in,
VFrame *  frame_out
[static]
 

Definition at line 167 of file ffmpeg.C.

Referenced by convert_cmodel().

int FFMPEG::decode uint8_t *  data,
long  data_size,
VFrame *  frame_out
 

Definition at line 306 of file ffmpeg.C.

References asset, context, convert_cmodel(), FFMPEG_LATENCY, got_picture, Asset::height, picture, and Asset::width.

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

int FFMPEG::init char *  codec_string  ) 
 

Definition at line 16 of file ffmpeg.C.

References codec, codec_id(), context, and picture.

Referenced by FileYUV::write_frames().

int FFMPEG::init_picture_from_frame AVPicture *  picture,
VFrame *  frame
[static]
 

Definition at line 113 of file ffmpeg.C.

References color_model_to_pix_fmt().

Referenced by convert_cmodel().

int FFMPEG::pix_fmt_to_color_model PixelFormat  pix_fmt  )  [static, private]
 

Definition at line 87 of file ffmpeg.C.

Referenced by convert_cmodel().


Member Data Documentation

Asset* FFMPEG::asset [private]
 

Definition at line 34 of file ffmpeg.h.

Referenced by decode().

AVCodec* FFMPEG::codec [private]
 

Definition at line 35 of file ffmpeg.h.

Referenced by FFMPEG(), and init().

AVCodecContext* FFMPEG::context [private]
 

Definition at line 36 of file ffmpeg.h.

Referenced by decode(), FFMPEG(), init(), and ~FFMPEG().

int FFMPEG::got_picture [private]
 

Definition at line 33 of file ffmpeg.h.

Referenced by decode(), and FFMPEG().

AVFrame* FFMPEG::picture [private]
 

Definition at line 37 of file ffmpeg.h.

Referenced by decode(), FFMPEG(), init(), and ~FFMPEG().


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