FFmpeg  2.1.1
Data Structures | Functions | Variables
rawdec.c File Reference

Raw Video Decoder. More...

#include "avcodec.h"
#include "raw.h"
#include "libavutil/avassert.h"
#include "libavutil/buffer.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 AVPixelFormat avpriv_find_pix_fmt (const PixelFormatTag *tags, unsigned int fourcc)
 
enum AVPixelFormat 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 *got_frame, AVPacket *avpkt)
 
static av_cold int raw_close_decoder (AVCodecContext *avctx)
 

Variables

static const AVOption options []
 
static const AVClass rawdec_class
 
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 AVPixelFormat avpriv_find_pix_fmt ( const PixelFormatTag tags,
unsigned int  fourcc 
)
enum AVPixelFormat ff_find_pix_fmt ( const PixelFormatTag tags,
unsigned int  fourcc 
)

Definition at line 96 of file rawdec.c.

static av_cold int raw_init_decoder ( AVCodecContext avctx)
static

Definition at line 102 of file rawdec.c.

static void flip ( AVCodecContext avctx,
AVPicture picture 
)
static

Definition at line 162 of file rawdec.c.

Referenced by audio_open(), config_input(), filter_frame(), get_video_buffer(), raw_decode(), and tnput().

static int raw_decode ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 168 of file rawdec.c.

static av_cold int raw_close_decoder ( AVCodecContext avctx)
static

Definition at line 342 of file rawdec.c.

Variable Documentation

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}
}
#define AV_OPT_FLAG_VIDEO_PARAM
Definition: opt.h:287
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:284

Definition at line 46 of file rawdec.c.

const AVClass rawdec_class
static
Initial value:
= {
.class_name = "rawdec",
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: avcodec.h:820
const OptionDef options[]
Definition: ffserver.c:4682

Definition at line 51 of file rawdec.c.

const PixelFormatTag pix_fmt_bps_avi[]
static
Initial value:
= {
{ AV_PIX_FMT_BGRA, 32 },
}
Pixel format.
Definition: avcodec.h:4533
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: avcodec.h:4537
packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), little-endian, most significant bits to 0 ...
Definition: avcodec.h:4607
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: avcodec.h:4543
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: avcodec.h:4565
8 bit with PIX_FMT_RGB32 palette
Definition: avcodec.h:4545
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
Definition: avcodec.h:4585

Definition at line 57 of file rawdec.c.

const PixelFormatTag pix_fmt_bps_mov[]
static
Initial value:
= {
{ AV_PIX_FMT_ARGB, 32 },
}
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian, most significant bit to 0 ...
Definition: avcodec.h:4584
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: avcodec.h:4536
Pixel format.
Definition: avcodec.h:4533
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: avcodec.h:4562
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: avcodec.h:4543
8 bit with PIX_FMT_RGB32 palette
Definition: avcodec.h:4545

Definition at line 70 of file rawdec.c.

AVCodec ff_rawvideo_decoder
Initial value:
= {
.name = "rawvideo",
.long_name = NULL_IF_CONFIG_SMALL("raw video"),
.priv_data_size = sizeof(RawVideoContext),
.priv_class = &rawdec_class,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:151
static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: rawdec.c:168
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:538
static av_cold int raw_close_decoder(AVCodecContext *avctx)
Definition: rawdec.c:342
static av_cold int raw_init_decoder(AVCodecContext *avctx)
Definition: rawdec.c:102
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
static const AVClass rawdec_class
Definition: rawdec.c:51

Definition at line 350 of file rawdec.c.