FFmpeg
Data Structures | Functions | Variables
pdvdec.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "zlib_wrapper.h"
#include <zlib.h>

Go to the source code of this file.

Data Structures

struct  PDVContext
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static void decode_flush (AVCodecContext *avctx)
 

Variables

const FFCodec ff_pdv_decoder
 

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 35 of file pdvdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 48 of file pdvdec.c.

◆ decode_frame()

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

Definition at line 58 of file pdvdec.c.

◆ decode_flush()

static void decode_flush ( AVCodecContext avctx)
static

Definition at line 120 of file pdvdec.c.

Variable Documentation

◆ ff_pdv_decoder

const FFCodec ff_pdv_decoder
Initial value:
= {
.p.name = "pdv",
CODEC_LONG_NAME("PDV (PlayDate Video)"),
.priv_data_size = sizeof(PDVContext),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_PDV,
.p.capabilities = AV_CODEC_CAP_DR1,
.init = decode_init,
.close = decode_end,
.flush = decode_flush,
}

Definition at line 127 of file pdvdec.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: pdvdec.c:35
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:286
PDVContext
Definition: pdvdec.c:30
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:271
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: pdvdec.c:48
AV_CODEC_ID_PDV
@ AV_CODEC_ID_PDV
Definition: codec_id.h:320
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
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
Definition: codec_internal.h:54
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: pdvdec.c:58
decode_flush
static void decode_flush(AVCodecContext *avctx)
Definition: pdvdec.c:120
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201