All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
truemotion2rt.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"

Go to the source code of this file.

Data Structures

struct  TrueMotion2RTContext




static av_cold int decode_init (AVCodecContext *avctx)
static int truemotion2rt_decode_header (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)


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

Macro Definition Documentation


Definition at line 26 of file truemotion2rt.c.

Function Documentation

static av_cold int decode_init ( AVCodecContext avctx)

Definition at line 42 of file truemotion2rt.c.

static int truemotion2rt_decode_header ( AVCodecContext avctx)

Definition at line 50 of file truemotion2rt.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 

Definition at line 98 of file truemotion2rt.c.

Variable Documentation

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

Definition at line 82 of file truemotion2rt.c.

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

Definition at line 86 of file truemotion2rt.c.

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

Definition at line 90 of file truemotion2rt.c.

const int16_t* const delta_tabs[]
Initial value:
= {
static const int16_t delta_tab2[]
Definition: truemotion2rt.c:90
static const int16_t delta_tab4[]
Definition: truemotion2rt.c:82
static const int16_t delta_tab3[]
Definition: truemotion2rt.c:86

Definition at line 94 of file truemotion2rt.c.

Referenced by decode_frame().

AVCodec ff_truemotion2rt_decoder
Initial value:
= {
.name = "truemotion2rt",
.long_name = NULL_IF_CONFIG_SMALL("Duck TrueMotion 2.0 Real Time"),
.priv_data_size = sizeof(TrueMotion2RTContext),
.capabilities = AV_CODEC_CAP_DR1,
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: truemotion2rt.c:98
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static av_cold int decode_init(AVCodecContext *avctx)
Definition: truemotion2rt.c:42
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:722
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 212 of file truemotion2rt.c.