FFmpeg
Data Structures | Functions | Variables
frwu.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  FRWUContext
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

static const AVOption frwu_options []
 
static const AVClass frwu_class
 
const AVCodec ff_frwu_decoder
 

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 33 of file frwu.c.

◆ decode_frame()

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

Definition at line 44 of file frwu.c.

Variable Documentation

◆ frwu_options

const AVOption frwu_options[]
static
Initial value:
= {
{"change_field_order", "Change field order", 0x42, AV_OPT_TYPE_BOOL,
{NULL}
}

Definition at line 105 of file frwu.c.

◆ frwu_class

const AVClass frwu_class
static
Initial value:
= {
.class_name = "frwu Decoder",
.item_name = av_default_item_name,
.option = frwu_options,
}

Definition at line 111 of file frwu.c.

◆ ff_frwu_decoder

const AVCodec ff_frwu_decoder
Initial value:
= {
.name = "frwu",
.long_name = NULL_IF_CONFIG_SMALL("Forward Uncompressed"),
.priv_data_size = sizeof(FRWUContext),
.capabilities = AV_CODEC_CAP_DR1,
.priv_class = &frwu_class,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 118 of file frwu.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
AV_OPT_FLAG_VIDEO_PARAM
#define AV_OPT_FLAG_VIDEO_PARAM
Definition: opt.h:280
FRWUContext
Definition: frwu.c:28
init
static int init
Definition: av_tx.c:47
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_CODEC_ID_FRWU
@ AV_CODEC_ID_FRWU
Definition: codec_id.h:180
AV_OPT_FLAG_DECODING_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:278
frwu_class
static const AVClass frwu_class
Definition: frwu.c:111
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: frwu.c:44
frwu_options
static const AVOption frwu_options[]
Definition: frwu.c:105
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: frwu.c:33
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:241