FFmpeg
Loading...
Searching...
No Matches
frwu.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *pic, int *got_frame, AVPacket *avpkt)
 

Variables

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

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext * avctx)
static

Definition at line 34 of file frwu.c.

◆ decode_frame()

static int decode_frame ( AVCodecContext * avctx,
AVFrame * pic,
int * got_frame,
AVPacket * avpkt )
static

Definition at line 45 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}
}
#define NULL
Definition coverity.c:32
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition opt.h:355
#define AV_OPT_FLAG_VIDEO_PARAM
Definition opt.h:357
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition opt.h:326

Definition at line 102 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,
}
static const AVOption frwu_options[]
Definition frwu.c:102
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

Definition at line 108 of file frwu.c.

◆ ff_frwu_decoder

const FFCodec ff_frwu_decoder
Initial value:
= {
.p.name = "frwu",
CODEC_LONG_NAME("Forward Uncompressed"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(FRWUContext),
.p.capabilities = AV_CODEC_CAP_DR1,
.p.priv_class = &frwu_class,
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
static const AVClass frwu_class
Definition frwu.c:108
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_FRWU
Definition codec_id.h:180
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int decode_init(AVCodecContext *avctx)
Definition 4xm.c:998
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition 4xm.c:837

Definition at line 115 of file frwu.c.