| 1 | /******************************************************************** |
| 2 | * * |
| 3 | * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * |
| 4 | * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * |
| 5 | * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * |
| 6 | * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * |
| 7 | * * |
| 8 | * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * |
| 9 | * by the Xiph.Org Foundation https://xiph.org/ * |
| 10 | * * |
| 11 | ******************************************************************** |
| 12 | |
| 13 | function: libvorbis codec headers |
| 14 | |
| 15 | ********************************************************************/ |
| 16 | |
| 17 | #ifndef _VORBIS_CODEC_INTERNAL_H_cxx . . $ `external/vorbis/vorbis_codec_internal.h:18:9`! |
| 18 | #define _VORBIS_CODEC_INTERNAL_H_cxx . . $ `external/vorbis/vorbis_codec_internal.h:18:9`! |
| 19 | |
| 20 | #include "vorbis_envelope.h"cxx . . $ `<file>/external/vorbis/vorbis_envelope.h`/ |
| 21 | #include "vorbis_codebook.h"cxx . . $ `<file>/external/vorbis/vorbis_codebook.h`/ |
| 22 | |
| 23 | #define BLOCKTYPE_IMPULSEcxx . . $ `external/vorbis/vorbis_codec_internal.h:23:9`! 0 |
| 24 | #define BLOCKTYPE_PADDINGcxx . . $ `external/vorbis/vorbis_codec_internal.h:24:9`! 1 |
| 25 | #define BLOCKTYPE_TRANSITIONcxx . . $ `external/vorbis/vorbis_codec_internal.h:25:9`! 0 |
| 26 | #define BLOCKTYPE_LONGcxx . . $ `external/vorbis/vorbis_codec_internal.h:26:9`! 1 |
| 27 | |
| 28 | #define PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`! 15 |
| 29 | |
| 30 | typedef struct vorbis_block_internalcxx . . $ vorbis_block_internal#{ |
| 31 | float **pcmdelaycxx . . $ vorbis_block_internal#pcmdelay.; /* this is a pointer into local storage */ |
| 32 | float ampmaxcxx . . $ vorbis_block_internal#ampmax.; |
| 33 | int blocktypecxx . . $ vorbis_block_internal#blocktype.; |
| 34 | |
| 35 | oggpack_buffercxx . . $ oggpack_buffer# *packetblobcxx . . $ vorbis_block_internal#packetblob.[PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`!]; /* initialized, must be freed; |
| 36 | blob [PACKETBLOBS/2] points to |
| 37 | the oggpack_buffer in the |
| 38 | main vorbis_block */ |
| 39 | } vorbis_block_internalcxx . . $ vorbis_block_internal#; |
| 40 | |
| 41 | typedef void vorbis_look_floorcxx . . $ vorbis_look_floor#; |
| 42 | typedef void vorbis_look_residuecxx . . $ vorbis_look_residue#; |
| 43 | typedef void vorbis_look_transformcxx . . $ vorbis_look_transform#; |
| 44 | |
| 45 | /* mode ************************************************************/ |
| 46 | typedef structcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_0# { |
| 47 | int blockflagcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_0#blockflag.; |
| 48 | int windowtypecxx . . $ $anonymous_type_ab7b9b6ac923d5fa_0#windowtype.; |
| 49 | int transformtypecxx . . $ $anonymous_type_ab7b9b6ac923d5fa_0#transformtype.; |
| 50 | int mappingcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_0#mapping.; |
| 51 | } vorbis_info_modecxx . . $ vorbis_info_mode#; |
| 52 | |
| 53 | typedef void vorbis_info_floorcxx . . $ vorbis_info_floor#; |
| 54 | typedef void vorbis_info_residuecxx . . $ vorbis_info_residue#; |
| 55 | typedef void vorbis_info_mappingcxx . . $ vorbis_info_mapping#; |
| 56 | |
| 57 | #include "vorbis_psy.h"cxx . . $ `<file>/external/vorbis/vorbis_psy.h`/ |
| 58 | #include "vorbis_bitrate.h"cxx . . $ `<file>/external/vorbis/vorbis_bitrate.h`/ |
| 59 | |
| 60 | typedef struct private_statecxx . . $ private_state# { |
| 61 | /* local lookup storage */ |
| 62 | envelope_lookupcxx . . $ envelope_lookup# *vecxx . . $ private_state#ve.; /* envelope lookup */ |
| 63 | int windowcxx . . $ private_state#window.[2]; |
| 64 | vorbis_look_transformcxx . . $ vorbis_look_transform# **transformcxx . . $ private_state#transform.[2]; /* block, type */ |
| 65 | drft_lookupcxx . . $ drft_lookup# fft_lookcxx . . $ private_state#fft_look.[2]; |
| 66 | |
| 67 | int modebitscxx . . $ private_state#modebits.; |
| 68 | vorbis_look_floorcxx . . $ vorbis_look_floor# **flrcxx . . $ private_state#flr.; |
| 69 | vorbis_look_residuecxx . . $ vorbis_look_residue# **residuecxx . . $ private_state#residue.; |
| 70 | vorbis_look_psycxx . . $ vorbis_look_psy# *psycxx . . $ private_state#psy.; |
| 71 | vorbis_look_psy_globalcxx . . $ vorbis_look_psy_global# *psy_g_lookcxx . . $ private_state#psy_g_look.; |
| 72 | |
| 73 | /* local storage, only used on the encoding side. This way the |
| 74 | application does not need to worry about freeing some packets' |
| 75 | memory and not others'; packet storage is always tracked. |
| 76 | Cleared next call to a _dsp_ function */ |
| 77 | unsigned char *headercxx . . $ private_state#header.; |
| 78 | unsigned char *header1cxx . . $ private_state#header1.; |
| 79 | unsigned char *header2cxx . . $ private_state#header2.; |
| 80 | |
| 81 | bitrate_manager_statecxx . . $ bitrate_manager_state# bmscxx . . $ private_state#bms.; |
| 82 | |
| 83 | ogg_int64_tcxx . . $ ogg_int64_t# sample_countcxx . . $ private_state#sample_count.; |
| 84 | } private_statecxx . . $ private_state#; |
| 85 | |
| 86 | /* codec_setup_info contains all the setup information specific to the |
| 87 | specific compression/decompression mode in progress (eg, |
| 88 | psychoacoustic settings, channel setup, options, codebook |
| 89 | etc). |
| 90 | *********************************************************************/ |
| 91 | |
| 92 | #include "vorbis_highlevel.h"cxx . . $ `<file>/external/vorbis/vorbis_highlevel.h`/ |
| 93 | typedef struct codec_setup_infocxx . . $ codec_setup_info# { |
| 94 | |
| 95 | /* Vorbis supports only short and long blocks, but allows the |
| 96 | encoder to choose the sizes */ |
| 97 | |
| 98 | long blocksizescxx . . $ codec_setup_info#blocksizes.[2]; |
| 99 | |
| 100 | /* modes are the primary means of supporting on-the-fly different |
| 101 | blocksizes, different channel mappings (LR or M/A), |
| 102 | different residue backends, etc. Each mode consists of a |
| 103 | blocksize flag and a mapping (along with the mapping setup */ |
| 104 | |
| 105 | int modescxx . . $ codec_setup_info#modes.; |
| 106 | int mapscxx . . $ codec_setup_info#maps.; |
| 107 | int floorscxx . . $ codec_setup_info#floors.; |
| 108 | int residuescxx . . $ codec_setup_info#residues.; |
| 109 | int bookscxx . . $ codec_setup_info#books.; |
| 110 | int psyscxx . . $ codec_setup_info#psys.; /* encode only */ |
| 111 | |
| 112 | vorbis_info_modecxx . . $ vorbis_info_mode# *mode_paramcxx . . $ codec_setup_info#mode_param.[64]; |
| 113 | int map_typecxx . . $ codec_setup_info#map_type.[64]; |
| 114 | vorbis_info_mappingcxx . . $ vorbis_info_mapping# *map_paramcxx . . $ codec_setup_info#map_param.[64]; |
| 115 | int floor_typecxx . . $ codec_setup_info#floor_type.[64]; |
| 116 | vorbis_info_floorcxx . . $ vorbis_info_floor# *floor_paramcxx . . $ codec_setup_info#floor_param.[64]; |
| 117 | int residue_typecxx . . $ codec_setup_info#residue_type.[64]; |
| 118 | vorbis_info_residuecxx . . $ vorbis_info_residue# *residue_paramcxx . . $ codec_setup_info#residue_param.[64]; |
| 119 | static_codebookcxx . . $ static_codebook# *book_paramcxx . . $ codec_setup_info#book_param.[256]; |
| 120 | codebookcxx . . $ codebook# *fullbookscxx . . $ codec_setup_info#fullbooks.; |
| 121 | |
| 122 | vorbis_info_psycxx . . $ vorbis_info_psy# *psy_paramcxx . . $ codec_setup_info#psy_param.[4]; /* encode only */ |
| 123 | vorbis_info_psy_globalcxx . . $ vorbis_info_psy_global# psy_g_paramcxx . . $ codec_setup_info#psy_g_param.; |
| 124 | |
| 125 | bitrate_manager_infocxx . . $ bitrate_manager_info# bicxx . . $ codec_setup_info#bi.; |
| 126 | highlevel_encode_setupcxx . . $ highlevel_encode_setup# hicxx . . $ codec_setup_info#hi.; /* used only by vorbisenc.c. It's a |
| 127 | highly redundant structure, but |
| 128 | improves clarity of program flow. */ |
| 129 | int halfrate_flagcxx . . $ codec_setup_info#halfrate_flag.; /* painless downsample for decode */ |
| 130 | } codec_setup_infocxx . . $ codec_setup_info#; |
| 131 | |
| 132 | extern vorbis_look_psy_globalcxx . . $ vorbis_look_psy_global# *_vp_global_lookcxx . . $ _vp_global_look(694741b8775fe5aa).(vorbis_infocxx . . $ vorbis_info# *vi); |
| 133 | extern void _vp_global_freecxx . . $ _vp_global_free(aa7a30c4816a9b12).(vorbis_look_psy_globalcxx . . $ vorbis_look_psy_global# *look); |
| 134 | |
| 135 | |
| 136 | |
| 137 | typedef structcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1# { |
| 138 | int sorted_indexcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#sorted_index.[VIF_POSITcxx . . $ `external/vorbis/vorbis_backends.h:57:9`!+2]; |
| 139 | int forward_indexcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#forward_index.[VIF_POSITcxx . . $ `external/vorbis/vorbis_backends.h:57:9`!+2]; |
| 140 | int reverse_indexcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#reverse_index.[VIF_POSITcxx . . $ `external/vorbis/vorbis_backends.h:57:9`!+2]; |
| 141 | |
| 142 | int hineighborcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#hineighbor.[VIF_POSITcxx . . $ `external/vorbis/vorbis_backends.h:57:9`!]; |
| 143 | int loneighborcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#loneighbor.[VIF_POSITcxx . . $ `external/vorbis/vorbis_backends.h:57:9`!]; |
| 144 | int postscxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#posts.; |
| 145 | |
| 146 | int ncxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#n.; |
| 147 | int quant_qcxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#quant_q.; |
| 148 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *vicxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#vi.; |
| 149 | |
| 150 | long phrasebitscxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#phrasebits.; |
| 151 | long postbitscxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#postbits.; |
| 152 | long framescxx . . $ $anonymous_type_ab7b9b6ac923d5fa_1#frames.; |
| 153 | } vorbis_look_floor1cxx . . $ vorbis_look_floor1#; |
| 154 | |
| 155 | |
| 156 | |
| 157 | extern int *floor1_fitcxx . . $ floor1_fit(699599ce16c32569).(vorbis_blockcxx . . $ vorbis_block# *vb,vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look, |
| 158 | const float *logmdct, /* in */ |
| 159 | const float *logmask); |
| 160 | extern int *floor1_interpolate_fitcxx . . $ floor1_interpolate_fit(ae7581d9b2441e30).(vorbis_blockcxx . . $ vorbis_block# *vb,vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look, |
| 161 | int *A,int *B, |
| 162 | int del); |
| 163 | extern int floor1_encodecxx . . $ floor1_encode(c7b1acba90b8f18e).(oggpack_buffercxx . . $ oggpack_buffer# *opb,vorbis_blockcxx . . $ vorbis_block# *vb, |
| 164 | vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look, |
| 165 | int *post,int *ilogmask); |
| 166 | #endif |