FFmpeg
Data Structures | Functions | Variables
imm5.c File Reference
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "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, void *data, 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 AVCodec 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,
void *  data,
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 163 of file imm5.c.

◆ imm5_close()

static av_cold int imm5_close ( AVCodecContext avctx)
static

Definition at line 171 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 AVCodec ff_imm5_decoder
Initial value:
= {
.name = "imm5",
.long_name = NULL_IF_CONFIG_SMALL("Infinity IMM5"),
.init = imm5_init,
.decode = imm5_decode_frame,
.close = imm5_close,
.flush = imm5_flush,
.priv_data_size = sizeof(IMM5Context),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
}

Definition at line 181 of file imm5.c.

FF_CODEC_CAP_INIT_THREADSAFE
#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:41
imm5_flush
static void imm5_flush(AVCodecContext *avctx)
Definition: imm5.c:163
imm5_decode_frame
static int imm5_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: imm5.c:86
AV_CODEC_ID_IMM5
@ AV_CODEC_ID_IMM5
Definition: codec_id.h:295
IMM5Context
Definition: imm5.c:26
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
imm5_close
static av_cold int imm5_close(AVCodecContext *avctx)
Definition: imm5.c:171
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: internal.h:49
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
imm5_init
static av_cold int imm5_init(AVCodecContext *avctx)
Definition: imm5.c:51