FFmpeg
 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 "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.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, void *data, 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 []
 
AVCodec ff_truemotion2rt_decoder
 

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 30 of file truemotion2rt.c.

Function Documentation

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

Definition at line 59 of file truemotion2rt.c.

Referenced by truemotion2rt_decode_frame().

static int truemotion2rt_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 105 of file truemotion2rt.c.

static av_cold int truemotion2rt_decode_init ( AVCodecContext avctx)
static

Definition at line 217 of file truemotion2rt.c.

Variable Documentation

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

Definition at line 41 of file truemotion2rt.c.

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

Definition at line 45 of file truemotion2rt.c.

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 49 of file truemotion2rt.c.

const int16_t* const delta_tabs[]
static
Initial value:
= {
}
static const int16_t delta_tab2[]
Definition: truemotion2rt.c:41
static const int16_t delta_tab4[]
Definition: truemotion2rt.c:49
static const int16_t delta_tab3[]
Definition: truemotion2rt.c:45

Definition at line 53 of file truemotion2rt.c.

Referenced by truemotion2rt_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,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#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:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int truemotion2rt_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968
static av_cold int truemotion2rt_decode_init(AVCodecContext *avctx)

Definition at line 223 of file truemotion2rt.c.