libavcodec/rawdec.c File Reference

Raw Video Decoder. More...

#include "avcodec.h"
#include "imgconvert.h"
#include "raw.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  RawVideoContext

Functions

enum PixelFormat ff_find_pix_fmt (const PixelFormatTag *tags, unsigned int fourcc)
static av_cold int raw_init_decoder (AVCodecContext *avctx)
static void flip (AVCodecContext *avctx, AVPicture *picture)
static int raw_decode (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int raw_close_decoder (AVCodecContext *avctx)

Variables

static const AVOption options []
class {
      class_name = "rawdec"
      option = options
      version = LIBAVUTIL_VERSION_INT
}; 
static const PixelFormatTag pix_fmt_bps_avi []
static const PixelFormatTag pix_fmt_bps_mov []
AVCodec ff_rawvideo_decoder


Detailed Description

Raw Video Decoder.

Definition in file rawdec.c.


Function Documentation

enum PixelFormat ff_find_pix_fmt ( const PixelFormatTag tags,
unsigned int  fourcc 
)

Definition at line 84 of file rawdec.c.

Referenced by avformat_find_stream_info(), and raw_init_decoder().

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

static av_cold int raw_close_decoder ( AVCodecContext avctx  )  [static]

Definition at line 265 of file rawdec.c.

static int raw_decode ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
) [static]

Definition at line 141 of file rawdec.c.

static av_cold int raw_init_decoder ( AVCodecContext avctx  )  [static]

Definition at line 94 of file rawdec.c.


Variable Documentation

const { ... } [static]

class_name = "rawdec"

Definition at line 52 of file rawdec.c.

Initial value:

 {
    .name           = "rawvideo",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_RAWVIDEO,
    .priv_data_size = sizeof(RawVideoContext),
    .init           = raw_init_decoder,
    .close          = raw_close_decoder,
    .decode         = raw_decode,
    .long_name      = NULL_IF_CONFIG_SMALL("raw video"),
    .priv_class     = &class,
}

Definition at line 273 of file rawdec.c.

Definition at line 53 of file rawdec.c.

const AVOption options[] [static]

Initial value:

{
{"top", "top field first", 0x42, AV_OPT_TYPE_INT, {.i64 = -1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM|AV_OPT_FLAG_VIDEO_PARAM},
{NULL}
}

Definition at line 46 of file rawdec.c.

const PixelFormatTag pix_fmt_bps_avi[] [static]

Initial value:

 {
    { PIX_FMT_MONOWHITE, 1 },
    { PIX_FMT_PAL8,    2 },
    { PIX_FMT_PAL8,    4 },
    { PIX_FMT_PAL8,    8 },
    { PIX_FMT_RGB444, 12 },
    { PIX_FMT_RGB555, 15 },
    { PIX_FMT_RGB555, 16 },
    { PIX_FMT_BGR24,  24 },
    { PIX_FMT_BGRA,   32 },
    { PIX_FMT_NONE, 0 },
}

Definition at line 57 of file rawdec.c.

const PixelFormatTag pix_fmt_bps_mov[] [static]

Initial value:

 {
    { PIX_FMT_MONOWHITE, 1 },
    { PIX_FMT_PAL8,      2 },
    { PIX_FMT_PAL8,      4 },
    { PIX_FMT_PAL8,      8 },
    
    
    { PIX_FMT_RGB555BE, 16 },
    { PIX_FMT_RGB24,    24 },
    { PIX_FMT_ARGB,     32 },
    { PIX_FMT_MONOWHITE,33 },
    { PIX_FMT_NONE, 0 },
}

Definition at line 70 of file rawdec.c.

Definition at line 54 of file rawdec.c.


Generated on Fri Oct 26 02:50:07 2012 for FFmpeg by  doxygen 1.5.8