FFmpeg
Data Structures | Functions | Variables
mlp_parse.h File Reference
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  MLPHeaderInfo
 

Functions

static int mlp_samplerate (int in)
 
static int truehd_channels (int chanmap)
 
static uint64_t truehd_layout (int chanmap)
 
int ff_mlp_read_major_sync (void *log, MLPHeaderInfo *mh, GetBitContext *gb)
 Read a major sync info header - contains high level information about the stream - sample rate, channel arrangement etc. More...
 

Variables

static const uint8_t thd_chancount [13]
 
static const uint64_t thd_layout [13]
 

Function Documentation

static int mlp_samplerate ( int  in)
inlinestatic

Definition at line 80 of file mlp_parse.h.

Referenced by ff_mlp_read_major_sync(), and mov_read_dmlp().

static int truehd_channels ( int  chanmap)
inlinestatic

Definition at line 88 of file mlp_parse.h.

Referenced by ff_mlp_read_major_sync(), and mov_read_dmlp().

static uint64_t truehd_layout ( int  chanmap)
inlinestatic

Definition at line 98 of file mlp_parse.h.

Referenced by ff_mlp_read_major_sync(), and mov_read_dmlp().

int ff_mlp_read_major_sync ( void log,
MLPHeaderInfo mh,
GetBitContext gb 
)

Read a major sync info header - contains high level information about the stream - sample rate, channel arrangement etc.

Most of this information is not actually necessary for decoding, only for playback. gb must be a freshly initialized GetBitContext with no bits read.

Definition at line 86 of file mlp_parse.c.

Referenced by mlp_parse(), read_major_sync(), truehd_core_filter(), and truehd_layout().

Variable Documentation

const uint8_t thd_chancount[13]
static
Initial value:
= {
2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1
}

Definition at line 59 of file mlp_parse.h.

Referenced by truehd_channels().

const uint64_t thd_layout[13]
static
Initial value:
= {
}
#define AV_CH_TOP_FRONT_RIGHT
#define AV_CH_TOP_FRONT_LEFT
#define AV_CH_TOP_FRONT_CENTER
#define AV_CH_LOW_FREQUENCY_2
#define AV_CH_SURROUND_DIRECT_RIGHT
#define AV_CH_WIDE_LEFT
#define AV_CH_WIDE_RIGHT
#define AV_CH_LOW_FREQUENCY
#define AV_CH_BACK_LEFT
#define AV_CH_TOP_CENTER
#define AV_CH_FRONT_LEFT_OF_CENTER
#define AV_CH_FRONT_CENTER
#define AV_CH_FRONT_RIGHT_OF_CENTER
#define AV_CH_FRONT_LEFT
#define AV_CH_BACK_CENTER
#define AV_CH_SIDE_RIGHT
#define AV_CH_SURROUND_DIRECT_LEFT
#define AV_CH_FRONT_RIGHT
#define AV_CH_SIDE_LEFT
#define AV_CH_BACK_RIGHT

Definition at line 64 of file mlp_parse.h.

Referenced by truehd_layout().