FFmpeg
Macros | Enumerations | Functions | Variables
aacps_common.c File Reference
#include <stdint.h>
#include "libavutil/common.h"
#include "aacps.h"
#include "get_bits.h"
#include "aacpsdata.c"

Go to the source code of this file.

Macros

#define READ_PAR_DATA(PAR, MASK, ERR_CONDITION, NB_BITS, MAX_DEPTH)
 

Enumerations

enum  {
  huff_iid_df1, huff_iid_dt1, huff_iid_df0, huff_iid_dt0,
  huff_icc_df, huff_icc_dt, huff_ipd_df, huff_ipd_dt,
  huff_opd_df, huff_opd_dt
}
 

Functions

static int read_iid_data (void *logctx, GetBitContext *gb, PSCommonContext *ps, int8_t(*iid)[34], int table_idx, int e, int dt)
 
static int read_icc_data (void *logctx, GetBitContext *gb, PSCommonContext *ps, int8_t(*icc)[34], int table_idx, int e, int dt)
 
static int read_ipdopd_data (void *logctx, GetBitContext *gb, PSCommonContext *ps, int8_t(*ipdopd)[34], int table_idx, int e, int dt)
 
static int ps_read_extension_data (GetBitContext *gb, PSCommonContext *ps, int ps_extension_id)
 
int ff_ps_read_data (void *logctx, GetBitContext *gb_host, PSCommonContext *ps, int bits_left)
 
av_cold void ff_ps_init_common (void)
 

Variables

static const int8_t num_env_tab [2][4]
 
static const int8_t nr_iidicc_par_tab []
 
static const int8_t nr_iidopd_par_tab []
 
static const int huff_iid []
 
static const VLCElemvlc_ps [10]
 

Macro Definition Documentation

◆ READ_PAR_DATA

#define READ_PAR_DATA (   PAR,
  MASK,
  ERR_CONDITION,
  NB_BITS,
  MAX_DEPTH 
)

Definition at line 63 of file aacps_common.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
huff_iid_df1 
huff_iid_dt1 
huff_iid_df0 
huff_iid_dt0 
huff_icc_df 
huff_icc_dt 
huff_ipd_df 
huff_ipd_dt 
huff_opd_df 
huff_opd_dt 

Definition at line 41 of file aacps_common.c.

Function Documentation

◆ read_iid_data()

static int read_iid_data ( void *  logctx,
GetBitContext gb,
PSCommonContext ps,
int8_t(*)  iid[34],
int  table_idx,
int  e,
int  dt 
)
static
  • Read Inter-channel Intensity Difference/Inter-Channel Coherence/ * Inter-channel Phase Difference/Overall Phase Difference parameters from the * bitstream. * *
    Parameters
    logctxa context for logging *
    gbpointer to the input bitstream *
    pspointer to the Parametric Stereo context *
    iidpointer to the parameter to be read *
    eenvelope to decode *
    dt1: time delta-coded, 0: frequency delta-coded

Definition at line 96 of file aacps_common.c.

◆ read_icc_data()

static int read_icc_data ( void *  logctx,
GetBitContext gb,
PSCommonContext ps,
int8_t(*)  icc[34],
int  table_idx,
int  e,
int  dt 
)
static
  • Read Inter-channel Intensity Difference/Inter-Channel Coherence/ * Inter-channel Phase Difference/Overall Phase Difference parameters from the * bitstream. * *
    Parameters
    logctxa context for logging *
    gbpointer to the input bitstream *
    pspointer to the Parametric Stereo context *
    iccpointer to the parameter to be read *
    eenvelope to decode *
    dt1: time delta-coded, 0: frequency delta-coded

Definition at line 97 of file aacps_common.c.

◆ read_ipdopd_data()

static int read_ipdopd_data ( void *  logctx,
GetBitContext gb,
PSCommonContext ps,
int8_t(*)  ipdopd[34],
int  table_idx,
int  e,
int  dt 
)
static
  • Read Inter-channel Intensity Difference/Inter-Channel Coherence/ * Inter-channel Phase Difference/Overall Phase Difference parameters from the * bitstream. * *
    Parameters
    logctxa context for logging *
    gbpointer to the input bitstream *
    pspointer to the Parametric Stereo context *
    ipdopdpointer to the parameter to be read *
    eenvelope to decode *
    dt1: time delta-coded, 0: frequency delta-coded

Definition at line 98 of file aacps_common.c.

Referenced by ff_ps_read_data().

◆ ps_read_extension_data()

static int ps_read_extension_data ( GetBitContext gb,
PSCommonContext ps,
int  ps_extension_id 
)
static

Definition at line 100 of file aacps_common.c.

◆ ff_ps_read_data()

int ff_ps_read_data ( void *  logctx,
GetBitContext gb_host,
PSCommonContext ps,
int  bits_left 
)

Definition at line 122 of file aacps_common.c.

Referenced by read_sbr_extension().

◆ ff_ps_init_common()

av_cold void ff_ps_init_common ( void  )

Definition at line 280 of file aacps_common.c.

Referenced by aacdec_common_init().

Variable Documentation

◆ num_env_tab

const int8_t num_env_tab[2][4]
static
Initial value:
= {
{ 0, 1, 2, 4, },
{ 1, 2, 3, 4, },
}

Definition at line 28 of file aacps_common.c.

◆ nr_iidicc_par_tab

const int8_t nr_iidicc_par_tab[]
static
Initial value:
= {
10, 20, 34, 10, 20, 34,
}

Definition at line 33 of file aacps_common.c.

◆ nr_iidopd_par_tab

const int8_t nr_iidopd_par_tab[]
static
Initial value:
= {
5, 11, 17, 5, 11, 17,
}

Definition at line 37 of file aacps_common.c.

◆ huff_iid

const int huff_iid[]
static
Initial value:

Definition at line 54 of file aacps_common.c.

◆ vlc_ps

const VLCElem* vlc_ps[10]
static

Definition at line 61 of file aacps_common.c.

huff_iid_dt1
@ huff_iid_dt1
Definition: aacps_common.c:43
huff_iid_dt0
@ huff_iid_dt0
Definition: aacps_common.c:45
huff_iid_df0
@ huff_iid_df0
Definition: aacps_common.c:44
huff_iid_df1
@ huff_iid_df1
Definition: aacps_common.c:42