FFmpeg
Data Structures | Macros | Functions
dolby_e.h File Reference
#include <stdint.h>
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  DolbyEHeaderInfo
 Coded Dolby E header values up to end_gain element, plus derived values. More...
 
struct  DBEContext
 Dolby E reading context used by decoder and parser. More...
 

Macros

#define FRAME_SAMPLES   1792
 
#define MAX_PROG_CONF   23
 
#define MAX_PROGRAMS   8
 
#define MAX_CHANNELS   8
 

Functions

int ff_dolby_e_convert_input (DBEContext *s, int nb_words, int key)
 Use the provided key to transform the input into data (put into s->buffer) suitable for further processing and initialize s->gb to read said data. More...
 
int ff_dolby_e_parse_header (DBEContext *s, const uint8_t *buf, int buf_size)
 Initialize DBEContext and parse Dolby E metadata. More...
 

Macro Definition Documentation

#define FRAME_SAMPLES   1792

Definition at line 27 of file dolby_e.h.

Referenced by apply_gain(), dolby_e_parse(), and filter_frame().

#define MAX_PROG_CONF   23

Definition at line 29 of file dolby_e.h.

Referenced by ff_dolby_e_parse_header().

#define MAX_PROGRAMS   8

Definition at line 30 of file dolby_e.h.

#define MAX_CHANNELS   8

Definition at line 31 of file dolby_e.h.

Function Documentation

int ff_dolby_e_convert_input ( DBEContext s,
int  nb_words,
int  key 
)

Use the provided key to transform the input into data (put into s->buffer) suitable for further processing and initialize s->gb to read said data.

Definition at line 60 of file dolby_e_parse.c.

Referenced by ff_dolby_e_parse_header(), and parse_audio().

int ff_dolby_e_parse_header ( DBEContext s,
const uint8_t buf,
int  buf_size 
)

Initialize DBEContext and parse Dolby E metadata.

Set word_bits/word_bytes, input, input_size, key_present and parse the header up to the end_gain element.

Parameters
[out]sDBEContext.
[in]bufraw input buffer.
[in]buf_sizemust be 3 bytes at least.
Returns
Returns 0 on success, AVERROR_INVALIDDATA on error

Definition at line 97 of file dolby_e_parse.c.

Referenced by dolby_e_decode_frame(), and dolby_e_parse().