FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gdv.c File Reference
#include "libavutil/common.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  GDVContext
 
struct  Bits8
 
struct  Bits32
 

Macros

#define PREAMBLE_SIZE   4096
 

Functions

static av_cold int gdv_decode_init (AVCodecContext *avctx)
 
static void rescale (GDVContext *gdv, uint8_t *dst, int w, int h, int scale_v, int scale_h)
 
static int read_bits2 (Bits8 *bits, GetByteContext *gb)
 
static void fill_bits32 (Bits32 *bits, GetByteContext *gb)
 
static int read_bits32 (Bits32 *bits, GetByteContext *gb, int nbits)
 
static void lz_copy (PutByteContext *pb, GetByteContext *g2, int offset, unsigned len)
 
static int decompress_2 (AVCodecContext *avctx)
 
static int decompress_5 (AVCodecContext *avctx, unsigned skip)
 
static int decompress_68 (AVCodecContext *avctx, unsigned skip, unsigned use8)
 
static int gdv_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int gdv_decode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_gdv_decoder
 

Macro Definition Documentation

#define PREAMBLE_SIZE   4096

Function Documentation

static av_cold int gdv_decode_init ( AVCodecContext avctx)
static

Definition at line 53 of file gdv.c.

static void rescale ( GDVContext gdv,
uint8_t dst,
int  w,
int  h,
int  scale_v,
int  scale_h 
)
static

Definition at line 75 of file gdv.c.

Referenced by gdv_decode_frame(), and silk_decode_frame().

static int read_bits2 ( Bits8 bits,
GetByteContext gb 
)
static

Definition at line 134 of file gdv.c.

Referenced by decompress_2(), and decompress_5().

static void fill_bits32 ( Bits32 bits,
GetByteContext gb 
)
static

Definition at line 149 of file gdv.c.

Referenced by decompress_68().

static int read_bits32 ( Bits32 bits,
GetByteContext gb,
int  nbits 
)
static

Definition at line 155 of file gdv.c.

Referenced by decompress_68().

static void lz_copy ( PutByteContext pb,
GetByteContext g2,
int  offset,
unsigned  len 
)
static

Definition at line 169 of file gdv.c.

Referenced by decompress_2(), decompress_5(), and decompress_68().

static int decompress_2 ( AVCodecContext avctx)
static

Definition at line 198 of file gdv.c.

Referenced by gdv_decode_frame().

static int decompress_5 ( AVCodecContext avctx,
unsigned  skip 
)
static

Definition at line 240 of file gdv.c.

Referenced by gdv_decode_frame().

static int decompress_68 ( AVCodecContext avctx,
unsigned  skip,
unsigned  use8 
)
static

Definition at line 283 of file gdv.c.

Referenced by gdv_decode_frame().

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

Definition at line 405 of file gdv.c.

static av_cold int gdv_decode_close ( AVCodecContext avctx)
static

Definition at line 510 of file gdv.c.

Variable Documentation

AVCodec ff_gdv_decoder
Initial value:
= {
.name = "gdv",
.long_name = NULL_IF_CONFIG_SMALL("Gremlin Digital Video"),
.priv_data_size = sizeof(GDVContext),
.close = gdv_decode_close,
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#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:40
static int gdv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: gdv.c:405
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: gdv.c:28
static av_cold int gdv_decode_close(AVCodecContext *avctx)
Definition: gdv.c:510
static av_cold int gdv_decode_init(AVCodecContext *avctx)
Definition: gdv.c:53
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968

Definition at line 517 of file gdv.c.