escape130.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
Include dependency graph for escape130.c:

Go to the source code of this file.

Data Structures

struct  Escape130Context
 

Macros

#define BITSTREAM_READER_LE
 

Typedefs

typedef struct Escape130Context Escape130Context
 

Functions

static av_cold int escape130_decode_init (AVCodecContext *avctx)
 Initialize the decoder. More...
 
static av_cold int escape130_decode_close (AVCodecContext *avctx)
 
static unsigned decode_skip_count (GetBitContext *gb)
 
static int escape130_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 Decode a single frame. More...
 

Variables

AVCodec ff_escape130_decoder
 

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 24 of file escape130.c.

Typedef Documentation

Function Documentation

static unsigned decode_skip_count ( GetBitContext gb)
static

Definition at line 66 of file escape130.c.

Referenced by escape130_decode_frame().

static av_cold int escape130_decode_close ( AVCodecContext avctx)
static

Definition at line 55 of file escape130.c.

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

Decode a single frame.

Parameters
avctxdecoder context
datadecoded frame
got_framehave decoded frame
bufinput buffer
buf_sizeinput buffer size
Returns
0 success, -1 on error

Definition at line 101 of file escape130.c.

static av_cold int escape130_decode_init ( AVCodecContext avctx)
static

Initialize the decoder.

Parameters
avctxdecoder context
Returns
0 success, negative on error

Definition at line 39 of file escape130.c.

Variable Documentation

AVCodec ff_escape130_decoder
Initial value:
= {
.name = "escape130",
.priv_data_size = sizeof(Escape130Context),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Escape 130"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int escape130_decode_close(AVCodecContext *avctx)
Definition: escape130.c:55
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
static int escape130_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Decode a single frame.
Definition: escape130.c:101
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
struct Escape130Context Escape130Context
static av_cold int escape130_decode_init(AVCodecContext *avctx)
Initialize the decoder.
Definition: escape130.c:39
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 309 of file escape130.c.