FFmpeg
Data Structures | Macros | Functions | Variables
indeo2.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "indeo2data.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, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 
static av_cold void ir2_init_static (void)
 
static av_cold int ir2_decode_init (AVCodecContext *avctx)
 
static av_cold int ir2_decode_end (AVCodecContext *avctx)
 

Variables

static VLCElem ir2_vlc [1<< CODE_VLC_BITS]
 
const FFCodec ff_indeo2_decoder
 

Detailed Description

Intel Indeo 2 decoder.

Definition in file indeo2.c.

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 30 of file indeo2.c.

◆ CODE_VLC_BITS

#define CODE_VLC_BITS   14

Definition at line 44 of file indeo2.c.

Function Documentation

◆ ir2_get_code()

static int ir2_get_code ( GetBitContext gb)
inlinestatic

Definition at line 48 of file indeo2.c.

Referenced by ir2_decode_plane(), and ir2_decode_plane_inter().

◆ ir2_decode_plane()

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

Definition at line 53 of file indeo2.c.

Referenced by ir2_decode_frame().

◆ ir2_decode_plane_inter()

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 115 of file indeo2.c.

Referenced by ir2_decode_frame().

◆ ir2_decode_frame()

static int ir2_decode_frame ( AVCodecContext avctx,
AVFrame picture,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 153 of file indeo2.c.

◆ ir2_init_static()

static av_cold void ir2_init_static ( void  )
static

Definition at line 227 of file indeo2.c.

Referenced by ir2_decode_init().

◆ ir2_decode_init()

static av_cold int ir2_decode_init ( AVCodecContext avctx)
static

Definition at line 234 of file indeo2.c.

◆ ir2_decode_end()

static av_cold int ir2_decode_end ( AVCodecContext avctx)
static

Definition at line 252 of file indeo2.c.

Variable Documentation

◆ ir2_vlc

VLCElem ir2_vlc[1<< CODE_VLC_BITS]
static

Definition at line 45 of file indeo2.c.

Referenced by ir2_get_code(), and ir2_init_static().

◆ ff_indeo2_decoder

const FFCodec ff_indeo2_decoder
Initial value:
= {
.p.name = "indeo2",
CODEC_LONG_NAME("Intel Indeo 2"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(Ir2Context),
.close = ir2_decode_end,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 261 of file indeo2.c.

ir2_decode_frame
static int ir2_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition: indeo2.c:153
ir2_decode_end
static av_cold int ir2_decode_end(AVCodecContext *avctx)
Definition: indeo2.c:252
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_ID_INDEO2
@ AV_CODEC_ID_INDEO2
Definition: codec_id.h:127
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
Ir2Context
Definition: indeo2.c:37
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
ir2_decode_init
static av_cold int ir2_decode_init(AVCodecContext *avctx)
Definition: indeo2.c:234