FFmpeg
Data Structures | Macros | Functions | Variables
truemotion2rt.c File Reference
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  TrueMotion2RTContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static int truemotion2rt_decode_header (AVCodecContext *avctx, const AVPacket *avpkt)
 
static int truemotion2rt_decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 
static av_cold int truemotion2rt_decode_init (AVCodecContext *avctx)
 

Variables

static const int16_t delta_tab2 []
 
static const int16_t delta_tab3 []
 
static const int16_t delta_tab4 []
 
static const int16_t *const delta_tabs []
 
const FFCodec ff_truemotion2rt_decoder
 

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 24 of file truemotion2rt.c.

Function Documentation

◆ truemotion2rt_decode_header()

static int truemotion2rt_decode_header ( AVCodecContext avctx,
const AVPacket avpkt 
)
static

Definition at line 54 of file truemotion2rt.c.

Referenced by truemotion2rt_decode_frame().

◆ truemotion2rt_decode_frame()

static int truemotion2rt_decode_frame ( AVCodecContext avctx,
AVFrame p,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 100 of file truemotion2rt.c.

◆ truemotion2rt_decode_init()

static av_cold int truemotion2rt_decode_init ( AVCodecContext avctx)
static

Definition at line 209 of file truemotion2rt.c.

Variable Documentation

◆ delta_tab2

const int16_t delta_tab2[]
static
Initial value:
= {
5, -7, 36, -36,
}

Definition at line 36 of file truemotion2rt.c.

◆ delta_tab3

const int16_t delta_tab3[]
static
Initial value:
= {
2, -3, 8, -8, 18, -18, 36, -36,
}

Definition at line 40 of file truemotion2rt.c.

◆ delta_tab4

const int16_t delta_tab4[]
static
Initial value:
= {
1, -1, 2, -3, 8, -8, 18, -18, 36, -36, 54, -54, 96, -96, 144, -144,
}

Definition at line 44 of file truemotion2rt.c.

◆ delta_tabs

const int16_t* const delta_tabs[]
static
Initial value:

Definition at line 48 of file truemotion2rt.c.

Referenced by truemotion2rt_decode_frame().

◆ ff_truemotion2rt_decoder

const FFCodec ff_truemotion2rt_decoder
Initial value:
= {
.p.name = "truemotion2rt",
CODEC_LONG_NAME("Duck TrueMotion 2.0 Real Time"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(TrueMotion2RTContext),
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 215 of file truemotion2rt.c.

AV_CODEC_ID_TRUEMOTION2RT
@ AV_CODEC_ID_TRUEMOTION2RT
Definition: codec_id.h:272
delta_tab2
static const int16_t delta_tab2[]
Definition: truemotion2rt.c:36
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
delta_tab4
static const int16_t delta_tab4[]
Definition: truemotion2rt.c:44
TrueMotion2RTContext
Definition: truemotion2rt.c:30
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
delta_tab3
static const int16_t delta_tab3[]
Definition: truemotion2rt.c:40
truemotion2rt_decode_frame
static int truemotion2rt_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: truemotion2rt.c:100
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
truemotion2rt_decode_init
static av_cold int truemotion2rt_decode_init(AVCodecContext *avctx)
Definition: truemotion2rt.c:209