libavcodec/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"
Include dependency graph for libavcodec/rawdec.c:

Go to the source code of this file.

Data Structures

struct  RawVideoContext
 

Typedefs

typedef struct RawVideoContext 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 []
 
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 libavcodec/rawdec.c.

Typedef Documentation

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 libavcodec/rawdec.c.

static void flip ( AVCodecContext avctx,
AVPicture picture 
)
static
static av_cold int raw_close_decoder ( AVCodecContext avctx)
static

Definition at line 337 of file libavcodec/rawdec.c.

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

Definition at line 163 of file libavcodec/rawdec.c.

static av_cold int raw_init_decoder ( AVCodecContext avctx)
static

Definition at line 102 of file libavcodec/rawdec.c.

Variable Documentation

const { ... }
class_name = "rawdec"
private

Definition at line 52 of file libavcodec/rawdec.c.

AVCodec ff_rawvideo_decoder
Initial value:
= {
.name = "rawvideo",
.priv_data_size = sizeof(RawVideoContext),
.long_name = NULL_IF_CONFIG_SMALL("raw video"),
.priv_class = &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. ...
static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static av_cold int raw_close_decoder(AVCodecContext *avctx)
static av_cold int raw_init_decoder(AVCodecContext *avctx)
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
struct RawVideoContext RawVideoContext

Definition at line 345 of file libavcodec/rawdec.c.

option = options
private

Definition at line 53 of file libavcodec/rawdec.c.

const AVOption options[]
static
Initial value:
={
{"top", "top field first", offsetof(RawVideoContext, tff), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM|AV_OPT_FLAG_VIDEO_PARAM},
}
NULL
Definition: eval.c:55
#define AV_OPT_FLAG_VIDEO_PARAM
Definition: opt.h:285
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282

Definition at line 46 of file libavcodec/rawdec.c.

const PixelFormatTag pix_fmt_bps_avi[]
static
Initial value:
= {
{ AV_PIX_FMT_BGRA, 32 },
}
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
Definition: pixfmt.h:117
8 bit with PIX_FMT_RGB32 palette
Definition: pixfmt.h:79
packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), little-endian, most significant bits to 0 ...
Definition: pixfmt.h:137
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:99
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:71
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:77

Definition at line 57 of file libavcodec/rawdec.c.

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

Definition at line 70 of file libavcodec/rawdec.c.

version = LIBAVUTIL_VERSION_INT
private

Definition at line 54 of file libavcodec/rawdec.c.