FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
vima.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "adpcm_data.h"

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 av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 105 of file vima.c.

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

Definition at line 135 of file vima.c.

Variable Documentation

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 33 of file vima.c.

Referenced by decode_frame().

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

Definition at line 43 of file vima.c.

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

Definition at line 48 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 53 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 59 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 67 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 79 of file vima.c.

const int8_t* const step_index_tables[]
static
Initial value:

Definition at line 99 of file vima.c.

Referenced by decode_frame().

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"),
}

Definition at line 228 of file vima.c.