hvirtual/quicktime/ffmpeg/libavcodec/raw.c File Reference

#include "avcodec.h"

Include dependency graph for raw.c:

Go to the source code of this file.

Data Structures

struct  RawVideoContext
struct  PixleFormatTag

Typedefs

typedef struct PixleFormatTag PixelFormatTag

Functions

static int findPixelFormat (unsigned int fourcc)
unsigned int avcodec_pix_fmt_to_codec_tag (enum PixelFormat fmt)
static int raw_init_decoder (AVCodecContext *avctx)
static void flip (AVCodecContext *avctx, AVPicture *picture)
static int raw_decode (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int raw_close_decoder (AVCodecContext *avctx)
static int raw_init_encoder (AVCodecContext *avctx)
static int raw_encode (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)

Variables

const PixelFormatTag pixelFormatTags []
AVCodec rawvideo_decoder


Typedef Documentation


Function Documentation

unsigned int avcodec_pix_fmt_to_codec_tag ( enum PixelFormat  fmt  ) 

Definition at line 67 of file raw.c.

References PixleFormatTag::fourcc, and PixleFormatTag::pix_fmt.

Referenced by raw_init_encoder().

static int findPixelFormat ( unsigned int  fourcc  )  [static]

Definition at line 56 of file raw.c.

References PixleFormatTag::fourcc, PixleFormatTag::pix_fmt, and PIX_FMT_YUV420P.

Referenced by raw_init_decoder().

static void flip ( AVCodecContext avctx,
AVPicture picture 
) [static]

static int raw_close_decoder ( AVCodecContext avctx  )  [static]

Definition at line 148 of file raw.c.

References av_freep(), RawVideoContext::buffer, context, and AVCodecContext::priv_data.

Here is the call graph for this function:

static int raw_decode ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

static int raw_encode ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void *  data 
) [static]

Definition at line 168 of file raw.c.

References avpicture_layout(), AVCodecContext::height, AVCodecContext::pix_fmt, and AVCodecContext::width.

Here is the call graph for this function:

static int raw_init_decoder ( AVCodecContext avctx  )  [static]

static int raw_init_encoder ( AVCodecContext avctx  )  [static]

Definition at line 158 of file raw.c.

References avcodec_pix_fmt_to_codec_tag(), AVCodecContext::codec_tag, AVCodecContext::coded_frame, FF_I_TYPE, AVCodecContext::pix_fmt, and AVCodecContext::priv_data.

Here is the call graph for this function:


Variable Documentation

Initial value:

 {
    { PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, 
    { PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') },
    { PIX_FMT_YUV410P, MKTAG('Y', 'U', 'V', '9') },
    { PIX_FMT_YUV411P, MKTAG('Y', '4', '1', 'B') },
    { PIX_FMT_YUV422P, MKTAG('Y', '4', '2', 'B') },
    { PIX_FMT_GRAY8,   MKTAG('Y', '8', '0', '0') },
    { PIX_FMT_GRAY8,   MKTAG(' ', ' ', 'Y', '8') },


    { PIX_FMT_YUV422,  MKTAG('Y', '4', '2', '2') }, 
    { PIX_FMT_UYVY422, MKTAG('U', 'Y', 'V', 'Y') },
    { PIX_FMT_GRAY8,   MKTAG('G', 'R', 'E', 'Y') },

    { -1, 0 },
}

Definition at line 39 of file raw.c.

Initial value:

Definition at line 186 of file raw.c.

Referenced by avcodec_register_all().


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