FFmpeg
Data Structures | Functions | Variables
imm5.c File Reference
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"

Go to the source code of this file.

Data Structures

struct  IMM5Context
 
struct  IMM5_unit
 

Functions

static av_cold int imm5_init (AVCodecContext *avctx)
 
static int imm5_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static void imm5_flush (AVCodecContext *avctx)
 
static av_cold int imm5_close (AVCodecContext *avctx)
 

Variables

static const struct IMM5_unit IMM5_units [14]
 
const FFCodec ff_imm5_decoder
 

Function Documentation

◆ imm5_init()

static av_cold int imm5_init ( AVCodecContext avctx)
static

Definition at line 51 of file imm5.c.

◆ imm5_decode_frame()

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

Definition at line 86 of file imm5.c.

◆ imm5_flush()

static void imm5_flush ( AVCodecContext avctx)
static

Definition at line 162 of file imm5.c.

◆ imm5_close()

static av_cold int imm5_close ( AVCodecContext avctx)
static

Definition at line 170 of file imm5.c.

Variable Documentation

◆ IMM5_units

const struct IMM5_unit IMM5_units[14]
static
Initial value:
= {
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x80, 0x1E, 0xF4, 0x0B, 0x0F, 0x88 }, 12 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x80, 0x1E, 0xF4, 0x05, 0x83, 0xE2 }, 12 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x80, 0x1E, 0xF4, 0x05, 0x81, 0xE8, 0x80 }, 13 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x80, 0x1E, 0xF4, 0x0B, 0x04, 0xA2 }, 12 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x80, 0x1E, 0xF4, 0x05, 0x81, 0x28, 0x80 }, 13 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x80, 0x1E, 0xF4, 0x05, 0x80, 0x92, 0x20 }, 13 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1E, 0x9A, 0x74, 0x0B, 0x0F, 0xC8 }, 13 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1E, 0x9A, 0x74, 0x05, 0x83, 0xF2 }, 13 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1E, 0x9A, 0x74, 0x05, 0x81, 0xEC, 0x80 }, 14 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1E, 0x9A, 0x74, 0x0B, 0x04, 0xB2 }, 13 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1E, 0x9A, 0x74, 0x05, 0x81, 0x2C, 0x80 }, 14 },
{ { 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1E, 0x9A, 0x74, 0x05, 0x80, 0x93, 0x20 }, 14 },
{ { 0x00, 0x00, 0x00, 0x01, 0x68, 0xDE, 0x3C, 0x80 }, 8 },
{ { 0x00, 0x00, 0x00, 0x01, 0x68, 0xCE, 0x32, 0x28 }, 8 },
}

Referenced by imm5_decode_frame().

◆ ff_imm5_decoder

const FFCodec ff_imm5_decoder
Initial value:
= {
.p.name = "imm5",
CODEC_LONG_NAME("Infinity IMM5"),
.p.type = AVMEDIA_TYPE_VIDEO,
.init = imm5_init,
.close = imm5_close,
.flush = imm5_flush,
.priv_data_size = sizeof(IMM5Context),
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 180 of file imm5.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
imm5_flush
static void imm5_flush(AVCodecContext *avctx)
Definition: imm5.c:162
imm5_decode_frame
static int imm5_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: imm5.c:86
AV_CODEC_ID_IMM5
@ AV_CODEC_ID_IMM5
Definition: codec_id.h:300
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:298
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:264
IMM5Context
Definition: imm5.c:26
imm5_close
static av_cold int imm5_close(AVCodecContext *avctx)
Definition: imm5.c:170
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
imm5_init
static av_cold int imm5_init(AVCodecContext *avctx)
Definition: imm5.c:51