FFmpeg
Loading...
Searching...
No Matches
pdvdec.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "zlib_wrapper.h"
#include "libavutil/attributes.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 av_cold 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 37 of file pdvdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext * avctx)
static

Definition at line 50 of file pdvdec.c.

◆ decode_frame()

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

Definition at line 60 of file pdvdec.c.

◆ decode_flush()

static av_cold void decode_flush ( AVCodecContext * avctx)
static

Definition at line 125 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,
}
static av_cold void decode_flush(AVCodecContext *avctx)
Definition agm.c:1253
#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...
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
#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_PDV
Definition codec_id.h:315
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int decode_init(AVCodecContext *avctx)
Definition 4xm.c:998
static av_cold int decode_end(AVCodecContext *avctx)
Definition 4xm.c:980
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition 4xm.c:837

Definition at line 132 of file pdvdec.c.