00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AVCODEC_MPEG4AUDIO_H
00023 #define AVCODEC_MPEG4AUDIO_H
00024
00025 #include <stdint.h>
00026 #include "get_bits.h"
00027 #include "put_bits.h"
00028
00029 typedef struct {
00030 int object_type;
00031 int sampling_index;
00032 int sample_rate;
00033 int chan_config;
00034 int sbr;
00035 int ext_object_type;
00036 int ext_sampling_index;
00037 int ext_sample_rate;
00038 int ext_chan_config;
00039 int channels;
00040 int ps;
00041 } MPEG4AudioConfig;
00042
00043 extern const int ff_mpeg4audio_sample_rates[16];
00044 extern const uint8_t ff_mpeg4audio_channels[8];
00052 int ff_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int buf_size);
00053
00054 enum AudioObjectType {
00055 AOT_NULL,
00056
00057 AOT_AAC_MAIN,
00058 AOT_AAC_LC,
00059 AOT_AAC_SSR,
00060 AOT_AAC_LTP,
00061 AOT_SBR,
00062 AOT_AAC_SCALABLE,
00063 AOT_TWINVQ,
00064 AOT_CELP,
00065 AOT_HVXC,
00066 AOT_TTSI = 12,
00067 AOT_MAINSYNTH,
00068 AOT_WAVESYNTH,
00069 AOT_MIDI,
00070 AOT_SAFX,
00071 AOT_ER_AAC_LC,
00072 AOT_ER_AAC_LTP = 19,
00073 AOT_ER_AAC_SCALABLE,
00074 AOT_ER_TWINVQ,
00075 AOT_ER_BSAC,
00076 AOT_ER_AAC_LD,
00077 AOT_ER_CELP,
00078 AOT_ER_HVXC,
00079 AOT_ER_HILN,
00080 AOT_ER_PARAM,
00081 AOT_SSC,
00082 AOT_PS,
00083 AOT_SURROUND,
00084 AOT_ESCAPE,
00085 AOT_L1,
00086 AOT_L2,
00087 AOT_L3,
00088 AOT_DST,
00089 AOT_ALS,
00090 AOT_SLS,
00091 AOT_SLS_NON_CORE,
00092 AOT_ER_AAC_ELD,
00093 AOT_SMR_SIMPLE,
00094 AOT_SMR_MAIN,
00095 AOT_USAC_NOSBR,
00096 AOT_SAOC,
00097 AOT_LD_SURROUND,
00098 AOT_USAC,
00099 };
00100
00101 #define MAX_PCE_SIZE 304
00102
00103
00104 int ff_copy_pce_data(PutBitContext *pb, GetBitContext *gb);
00105
00106 #endif