FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
indeo2.c File Reference

Intel Indeo 2 decoder. More...

#include "libavutil/attributes.h"
#include "avcodec.h"
#include "get_bits.h"
#include "indeo2data.h"
#include "internal.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  Ir2Context
 

Macros

#define BITSTREAM_READER_LE
 
#define CODE_VLC_BITS   14
 

Functions

static int ir2_get_code (GetBitContext *gb)
 
static int ir2_decode_plane (Ir2Context *ctx, int width, int height, uint8_t *dst, int pitch, const uint8_t *table)
 
static int ir2_decode_plane_inter (Ir2Context *ctx, int width, int height, uint8_t *dst, int pitch, const uint8_t *table)
 
static int ir2_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int ir2_decode_init (AVCodecContext *avctx)
 
static av_cold int ir2_decode_end (AVCodecContext *avctx)
 

Variables

static VLC ir2_vlc
 
AVCodec ff_indeo2_decoder
 

Detailed Description

Intel Indeo 2 decoder.

Definition in file indeo2.c.

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 29 of file indeo2.c.

#define CODE_VLC_BITS   14

Definition at line 43 of file indeo2.c.

Referenced by ir2_decode_init(), and ir2_get_code().

Function Documentation

static int ir2_get_code ( GetBitContext gb)
inlinestatic

Definition at line 47 of file indeo2.c.

Referenced by ir2_decode_plane(), and ir2_decode_plane_inter().

static int ir2_decode_plane ( Ir2Context ctx,
int  width,
int  height,
uint8_t dst,
int  pitch,
const uint8_t table 
)
static

Definition at line 52 of file indeo2.c.

Referenced by ir2_decode_frame().

static int ir2_decode_plane_inter ( Ir2Context ctx,
int  width,
int  height,
uint8_t dst,
int  pitch,
const uint8_t table 
)
static

Definition at line 106 of file indeo2.c.

Referenced by ir2_decode_frame().

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

Definition at line 140 of file indeo2.c.

static av_cold int ir2_decode_init ( AVCodecContext avctx)
static

Definition at line 220 of file indeo2.c.

static av_cold int ir2_decode_end ( AVCodecContext avctx)
static

Definition at line 248 of file indeo2.c.

Variable Documentation

VLC ir2_vlc
static

Definition at line 44 of file indeo2.c.

AVCodec ff_indeo2_decoder
Initial value:
= {
.name = "indeo2",
.long_name = NULL_IF_CONFIG_SMALL("Intel Indeo 2"),
.priv_data_size = sizeof(Ir2Context),
.close = ir2_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int ir2_decode_init(AVCodecContext *avctx)
Definition: indeo2.c:220
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static av_cold int ir2_decode_end(AVCodecContext *avctx)
Definition: indeo2.c:248
static int ir2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: indeo2.c:140
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
Definition: ffmpeg.c:2045
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 257 of file indeo2.c.