FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
rawdec.c File Reference

Raw Video Decoder. More...

#include "avcodec.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 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 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 95 of file rawdec.c.

static av_cold int raw_init_decoder ( AVCodecContext avctx)
static

Definition at line 101 of file rawdec.c.

static void flip ( AVCodecContext avctx,
AVPicture picture 
)
static
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 305 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},
}

Definition at line 45 of file rawdec.c.

class_name = "rawdec"

Definition at line 51 of file rawdec.c.

option = options

Definition at line 52 of file rawdec.c.

Definition at line 53 of file rawdec.c.

const { ... }
const PixelFormatTag pix_fmt_bps_avi[]
static
Initial value:

Definition at line 56 of file rawdec.c.

const PixelFormatTag pix_fmt_bps_mov[]
static
Initial value:

Definition at line 69 of file 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,
}

Definition at line 313 of file rawdec.c.