FFmpeg
aacdec_usac_mps212.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025 Lynne <dev@lynne.ee>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_AAC_AACDEC_USAC_MPS212_H
22 #define AVCODEC_AAC_AACDEC_USAC_MPS212_H
23 
24 #include <stdbool.h>
25 
26 #include "libavcodec/get_bits.h"
27 #include "libavcodec/aac.h"
28 
30  MPS_CLD = 0,
33 
35 };
36 
37 typedef struct AACMPSLosslessData {
40 
45 
48 
50  enum AACMPSDataType data_type,
51  int default_val,
52  int start_band, int end_band, int frame_indep_flag,
53  int indep_flag, int nb_param_sets);
54 
56  enum AACMPSDataType data_type,
58  int default_value, int start_band, int stop_band,
59  int nb_param_sets, const int *param_set_idx,
60  int extend_frame);
61 
62 int ff_aac_huff_dec_reshape(GetBitContext *gb, int16_t *out_data,
63  int nb_val);
64 
65 #endif /* AVCODEC_AAC_AACDEC_USAC_MPS212_H */
AACMPSLosslessData::last_data
int16_t last_data[MPS_MAX_PARAM_BANDS]
Definition: aacdec_usac_mps212.h:39
MPS_ICC
@ MPS_ICC
Definition: aacdec_usac_mps212.h:31
MPS_MAX_PARAM_BANDS
#define MPS_MAX_PARAM_BANDS
Definition: aac.h:40
GetBitContext
Definition: get_bits.h:109
AACMPSLosslessData::data_mode
int16_t data_mode[MPS_MAX_PARAM_SETS]
Definition: aacdec_usac_mps212.h:41
AACMPSLosslessData::freq_res
int16_t freq_res[MPS_MAX_PARAM_SETS]
Definition: aacdec_usac_mps212.h:43
AACMPSLosslessData::coarse_quant_no
int16_t coarse_quant_no[MPS_MAX_PARAM_SETS]
Definition: aacdec_usac_mps212.h:44
get_bits.h
ff_aac_huff_dec_reshape
int ff_aac_huff_dec_reshape(GetBitContext *gb, int16_t *out_data, int nb_val)
Definition: aacdec_usac_mps212.c:678
aac.h
AACMPSLosslessData::data
int16_t data[MPS_MAX_PARAM_SETS][MPS_MAX_PARAM_BANDS]
Definition: aacdec_usac_mps212.h:38
AACMPSDataType
AACMPSDataType
Definition: aacdec_usac_mps212.h:29
MPS_ELE_NB
@ MPS_ELE_NB
Definition: aacdec_usac_mps212.h:34
MPS_MAX_PARAM_SETS
#define MPS_MAX_PARAM_SETS
Definition: aac.h:39
AACMPSLosslessData::coarse_quant
bool coarse_quant[MPS_MAX_PARAM_SETS]
Definition: aacdec_usac_mps212.h:42
MPS_CLD
@ MPS_CLD
Definition: aacdec_usac_mps212.h:30
AACMPSLosslessData
Definition: aacdec_usac_mps212.h:37
MPS_IPD
@ MPS_IPD
Definition: aacdec_usac_mps212.h:32
AACMPSLosslessData::quant_coarse_prev
bool quant_coarse_prev
Definition: aacdec_usac_mps212.h:46
ff_aac_map_index_data
int ff_aac_map_index_data(AACMPSLosslessData *ld, enum AACMPSDataType data_type, int dst_idx[MPS_MAX_PARAM_SETS][MPS_MAX_PARAM_BANDS], int default_value, int start_band, int stop_band, int nb_param_sets, const int *param_set_idx, int extend_frame)
Definition: aacdec_usac_mps212.c:778
ff_aac_ec_data_dec
int ff_aac_ec_data_dec(GetBitContext *gb, AACMPSLosslessData *ld, enum AACMPSDataType data_type, int default_val, int start_band, int end_band, int frame_indep_flag, int indep_flag, int nb_param_sets)
Definition: aacdec_usac_mps212.c:592