FFmpeg
Loading...
Searching...
No Matches
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
36
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
62int ff_aac_huff_dec_reshape(GetBitContext *gb, int16_t *out_data,
63 int nb_val);
64
65#endif /* AVCODEC_AAC_AACDEC_USAC_MPS212_H */
AAC definitions and structures.
#define MPS_MAX_PARAM_SETS
Definition aac.h:39
#define MPS_MAX_PARAM_BANDS
Definition aac.h:40
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)
AACMPSDataType
@ MPS_IPD
@ MPS_ELE_NB
@ MPS_CLD
@ MPS_ICC
int ff_aac_huff_dec_reshape(GetBitContext *gb, int16_t *out_data, int nb_val)
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)
bitstream reader API header.
int16_t data[MPS_MAX_PARAM_SETS][MPS_MAX_PARAM_BANDS]
int16_t freq_res[MPS_MAX_PARAM_SETS]
int16_t data_mode[MPS_MAX_PARAM_SETS]
int16_t last_data[MPS_MAX_PARAM_BANDS]
int16_t coarse_quant_no[MPS_MAX_PARAM_SETS]
bool coarse_quant[MPS_MAX_PARAM_SETS]