#include "avcodec.h"

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 struct PixleFormatTag PixelFormatTag |
| 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] |
Definition at line 109 of file raw.c.
References AVCodecContext::bits_per_sample, AVCodecContext::codec_tag, AVPicture::data, AVCodecContext::height, and AVPicture::linesize.
| 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.

| static int raw_decode | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 116 of file raw.c.
References avpicture_fill(), RawVideoContext::buffer, context, flip, AVCodecContext::height, RawVideoContext::length, memcpy, RawVideoContext::p, picture, AVCodecContext::pix_fmt, AVCodecContext::priv_data, and AVCodecContext::width.

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

| static int raw_init_decoder | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 80 of file raw.c.
References av_malloc(), avpicture_get_size(), AVCodecContext::bits_per_sample, RawVideoContext::buffer, AVCodecContext::codec_tag, AVCodecContext::coded_frame, context, FF_I_TYPE, findPixelFormat(), AVCodecContext::height, RawVideoContext::length, RawVideoContext::p, RawVideoContext::pic, AVCodecContext::pix_fmt, PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_RGBA32, AVCodecContext::priv_data, and AVCodecContext::width.

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

| const PixelFormatTag pixelFormatTags[] |
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 },
}
Initial value:
{
"rawvideo",
CODEC_TYPE_VIDEO,
CODEC_ID_RAWVIDEO,
sizeof(RawVideoContext),
raw_init_decoder,
NULL,
raw_close_decoder,
raw_decode,
}
Definition at line 186 of file raw.c.
Referenced by avcodec_register_all().
1.5.5