vima.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "adpcm_data.h"
Include dependency graph for vima.c:

Go to the source code of this file.

Data Structures

struct  VimaContext
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
 

Variables

static const uint8_t size_table []
 
static const int8_t index_table1 []
 
static const int8_t index_table2 []
 
static const int8_t index_table3 []
 
static const int8_t index_table4 []
 
static const int8_t index_table5 []
 
static const int8_t index_table6 []
 
static const int8_t *const step_index_tables []
 
AVCodec ff_vima_decoder
 

Function Documentation

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket pkt 
)
static

Definition at line 132 of file vima.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 104 of file vima.c.

Variable Documentation

AVCodec ff_vima_decoder
Initial value:
= {
.name = "vima",
.priv_data_size = sizeof(VimaContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("LucasArts VIMA audio"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
Definition: vima.c:132
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int decode_init(AVCodecContext *avctx)
Definition: vima.c:104
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 224 of file vima.c.

const int8_t index_table1[]
static
Initial value:
=
{
-1, 4, -1, 4
}

Definition at line 42 of file vima.c.

const int8_t index_table2[]
static
Initial value:
=
{
-1, -1, 2, 6, -1, -1, 2, 6
}

Definition at line 47 of file vima.c.

const int8_t index_table3[]
static
Initial value:
=
{
-1, -1, -1, -1, 1, 2, 4, 6,
-1, -1, -1, -1, 1, 2, 4, 6
}

Definition at line 52 of file vima.c.

const int8_t index_table4[]
static
Initial value:
=
{
-1, -1, -1, -1, -1, -1, -1, -1,
1, 1, 1, 2, 2, 4, 5, 6,
-1, -1, -1, -1, -1, -1, -1, -1,
1, 1, 1, 2, 2, 4, 5, 6
}

Definition at line 58 of file vima.c.

const int8_t index_table5[]
static
Initial value:
=
{
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
1, 1, 1, 1, 1, 2, 2, 2,
2, 4, 4, 4, 5, 5, 6, 6,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
1, 1, 1, 1, 1, 2, 2, 2,
2, 4, 4, 4, 5, 5, 6, 6
}

Definition at line 66 of file vima.c.

const int8_t index_table6[]
static
Initial value:
=
{
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2,
2, 2, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 6, 6, 6, 6,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2,
2, 2, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 6, 6, 6, 6
}

Definition at line 78 of file vima.c.

const uint8_t size_table[]
static
Initial value:
=
{
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
}

Definition at line 32 of file vima.c.

Referenced by decode_frame().

const int8_t* const step_index_tables[]
static
Initial value:
=
{
}
static const int8_t index_table3[]
Definition: vima.c:52
static const int8_t index_table2[]
Definition: vima.c:47
static const int8_t index_table6[]
Definition: vima.c:78
static const int8_t index_table4[]
Definition: vima.c:58
static const int8_t index_table5[]
Definition: vima.c:66
static const int8_t index_table1[]
Definition: vima.c:42

Definition at line 98 of file vima.c.

Referenced by decode_frame().