/src/fdk-aac/libFDK/include/FDK_bitstream.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* ----------------------------------------------------------------------------- |
2 | | Software License for The Fraunhofer FDK AAC Codec Library for Android |
3 | | |
4 | | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten |
5 | | Forschung e.V. All rights reserved. |
6 | | |
7 | | 1. INTRODUCTION |
8 | | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software |
9 | | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding |
10 | | scheme for digital audio. This FDK AAC Codec software is intended to be used on |
11 | | a wide variety of Android devices. |
12 | | |
13 | | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient |
14 | | general perceptual audio codecs. AAC-ELD is considered the best-performing |
15 | | full-bandwidth communications codec by independent studies and is widely |
16 | | deployed. AAC has been standardized by ISO and IEC as part of the MPEG |
17 | | specifications. |
18 | | |
19 | | Patent licenses for necessary patent claims for the FDK AAC Codec (including |
20 | | those of Fraunhofer) may be obtained through Via Licensing |
21 | | (www.vialicensing.com) or through the respective patent owners individually for |
22 | | the purpose of encoding or decoding bit streams in products that are compliant |
23 | | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of |
24 | | Android devices already license these patent claims through Via Licensing or |
25 | | directly from the patent owners, and therefore FDK AAC Codec software may |
26 | | already be covered under those patent licenses when it is used for those |
27 | | licensed purposes only. |
28 | | |
29 | | Commercially-licensed AAC software libraries, including floating-point versions |
30 | | with enhanced sound quality, are also available from Fraunhofer. Users are |
31 | | encouraged to check the Fraunhofer website for additional applications |
32 | | information and documentation. |
33 | | |
34 | | 2. COPYRIGHT LICENSE |
35 | | |
36 | | Redistribution and use in source and binary forms, with or without modification, |
37 | | are permitted without payment of copyright license fees provided that you |
38 | | satisfy the following conditions: |
39 | | |
40 | | You must retain the complete text of this software license in redistributions of |
41 | | the FDK AAC Codec or your modifications thereto in source code form. |
42 | | |
43 | | You must retain the complete text of this software license in the documentation |
44 | | and/or other materials provided with redistributions of the FDK AAC Codec or |
45 | | your modifications thereto in binary form. You must make available free of |
46 | | charge copies of the complete source code of the FDK AAC Codec and your |
47 | | modifications thereto to recipients of copies in binary form. |
48 | | |
49 | | The name of Fraunhofer may not be used to endorse or promote products derived |
50 | | from this library without prior written permission. |
51 | | |
52 | | You may not charge copyright license fees for anyone to use, copy or distribute |
53 | | the FDK AAC Codec software or your modifications thereto. |
54 | | |
55 | | Your modified versions of the FDK AAC Codec must carry prominent notices stating |
56 | | that you changed the software and the date of any change. For modified versions |
57 | | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" |
58 | | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK |
59 | | AAC Codec Library for Android." |
60 | | |
61 | | 3. NO PATENT LICENSE |
62 | | |
63 | | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without |
64 | | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. |
65 | | Fraunhofer provides no warranty of patent non-infringement with respect to this |
66 | | software. |
67 | | |
68 | | You may use this FDK AAC Codec software or modifications thereto only for |
69 | | purposes that are authorized by appropriate patent licenses. |
70 | | |
71 | | 4. DISCLAIMER |
72 | | |
73 | | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright |
74 | | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, |
75 | | including but not limited to the implied warranties of merchantability and |
76 | | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
77 | | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, |
78 | | or consequential damages, including but not limited to procurement of substitute |
79 | | goods or services; loss of use, data, or profits, or business interruption, |
80 | | however caused and on any theory of liability, whether in contract, strict |
81 | | liability, or tort (including negligence), arising in any way out of the use of |
82 | | this software, even if advised of the possibility of such damage. |
83 | | |
84 | | 5. CONTACT INFORMATION |
85 | | |
86 | | Fraunhofer Institute for Integrated Circuits IIS |
87 | | Attention: Audio and Multimedia Departments - FDK AAC LL |
88 | | Am Wolfsmantel 33 |
89 | | 91058 Erlangen, Germany |
90 | | |
91 | | www.iis.fraunhofer.de/amm |
92 | | amm-info@iis.fraunhofer.de |
93 | | ----------------------------------------------------------------------------- */ |
94 | | |
95 | | /******************* Library for basic calculation routines ******************** |
96 | | |
97 | | Author(s): M. Lohwasser |
98 | | |
99 | | Description: bitstream interface to bitbuffer routines |
100 | | |
101 | | *******************************************************************************/ |
102 | | |
103 | | #ifndef FDK_BITSTREAM_H |
104 | | #define FDK_BITSTREAM_H |
105 | | |
106 | | #include "FDK_bitbuffer.h" |
107 | | #include "machine_type.h" |
108 | | |
109 | | #include "genericStds.h" |
110 | | |
111 | 0 | #define CACHE_BITS 32 |
112 | | |
113 | 0 | #define BUFSIZE_DUMMY_VALUE MAX_BUFSIZE_BYTES |
114 | | |
115 | | typedef enum { BS_READER, BS_WRITER } FDK_BS_CFG; |
116 | | |
117 | | typedef struct { |
118 | | UINT CacheWord; |
119 | | UINT BitsInCache; |
120 | | FDK_BITBUF hBitBuf; |
121 | | UINT ConfigCache; |
122 | | } FDK_BITSTREAM; |
123 | | |
124 | | typedef FDK_BITSTREAM *HANDLE_FDK_BITSTREAM; |
125 | | |
126 | | /** |
127 | | * \brief CreateBitStream Function. |
128 | | * |
129 | | * Create and initialize bitstream with extern allocated buffer. |
130 | | * |
131 | | * \param pBuffer Pointer to BitBuffer array. |
132 | | * \param bufSize Length of BitBuffer array. (awaits size 2^n and <= |
133 | | * MAX_BUFSIZE_BYTES) |
134 | | * \param config Initialize BitStream as Reader or Writer. |
135 | | */ |
136 | | FDK_INLINE |
137 | | HANDLE_FDK_BITSTREAM FDKcreateBitStream(UCHAR *pBuffer, UINT bufSize, |
138 | 0 | FDK_BS_CFG config = BS_READER) { |
139 | 0 | HANDLE_FDK_BITSTREAM hBitStream = |
140 | 0 | (HANDLE_FDK_BITSTREAM)FDKcalloc(1, sizeof(FDK_BITSTREAM)); |
141 | 0 | if (hBitStream == NULL) return NULL; |
142 | 0 | FDK_InitBitBuffer(&hBitStream->hBitBuf, pBuffer, bufSize, 0); |
143 | 0 |
|
144 | 0 | /* init cache */ |
145 | 0 | hBitStream->CacheWord = hBitStream->BitsInCache = 0; |
146 | 0 | hBitStream->ConfigCache = config; |
147 | 0 |
|
148 | 0 | return hBitStream; |
149 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: channel_map.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: metadata_main.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: mps_main.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_lib.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_lib.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_paramextract.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_staticgain.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_tree.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bit_sbr.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ps_main.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbr_encoder.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbrenc_ram.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbrenc_rom.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ton_corr.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tran_det.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacenc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bandwidth.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bitenc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: metadata_compressor.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: psy_main.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: qc_main.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: quantize.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sf_estim.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: transform.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_adif.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_adts.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_asc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_latm.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_bitstream.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: code_env.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: env_bit.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: env_est.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: fram_gen.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: invf_est.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: mh_det.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: nf_est.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ps_bitenc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ps_encode.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbr_misc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: FDK_crc.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacEnc_ram.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacEnc_rom.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacenc_pns.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacenc_tns.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: adj_thr.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bit_cnt.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: dyn_bits.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: intensity.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: line_pe.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: noisedet.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: pnsparam.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: pre_echo_control.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) Unexecuted instantiation: psy_configuration.cpp:FDKcreateBitStream(unsigned char*, unsigned int, FDK_BS_CFG) |
150 | | |
151 | | /** |
152 | | * \brief Initialize BistreamBuffer. BitBuffer can point to filled BitBuffer |
153 | | * array . |
154 | | * |
155 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
156 | | * \param pBuffer Pointer to BitBuffer array. |
157 | | * \param bufSize Length of BitBuffer array in bytes. (awaits size 2^n and <= |
158 | | * MAX_BUFSIZE_BYTES) |
159 | | * \param validBits Number of valid BitBuffer filled Bits. |
160 | | * \param config Initialize BitStream as Reader or Writer. |
161 | | * \return void |
162 | | */ |
163 | | FDK_INLINE |
164 | | void FDKinitBitStream(HANDLE_FDK_BITSTREAM hBitStream, UCHAR *pBuffer, |
165 | | UINT bufSize, UINT validBits, |
166 | 0 | FDK_BS_CFG config = BS_READER) { |
167 | 0 | FDK_InitBitBuffer(&hBitStream->hBitBuf, pBuffer, bufSize, validBits); |
168 | | |
169 | | /* init cache */ |
170 | 0 | hBitStream->CacheWord = hBitStream->BitsInCache = 0; |
171 | 0 | hBitStream->ConfigCache = config; |
172 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: channel_map.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: metadata_main.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: mps_main.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_lib.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_lib.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_paramextract.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_staticgain.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_tree.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bit_sbr.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ps_main.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbr_encoder.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbrenc_ram.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbrenc_rom.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ton_corr.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tran_det.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacenc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bandwidth.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bitenc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: metadata_compressor.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: psy_main.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: qc_main.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: quantize.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sf_estim.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: transform.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_adif.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_adts.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_asc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: tpenc_latm.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_bitstream.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: code_env.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: env_bit.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: env_est.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: fram_gen.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: invf_est.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: mh_det.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: nf_est.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ps_bitenc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: ps_encode.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: sbr_misc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: FDK_crc.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacEnc_ram.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacEnc_rom.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacenc_pns.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: aacenc_tns.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: adj_thr.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: bit_cnt.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: dyn_bits.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: intensity.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: line_pe.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: noisedet.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: pnsparam.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: pre_echo_control.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) Unexecuted instantiation: psy_configuration.cpp:FDKinitBitStream(FDK_BITSTREAM*, unsigned char*, unsigned int, unsigned int, FDK_BS_CFG) |
173 | | |
174 | | /** |
175 | | * \brief ResetBitbuffer Function. Reset states in BitBuffer and Cache. |
176 | | * |
177 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
178 | | * \param config Initialize BitStream as Reader or Writer. |
179 | | * \return void |
180 | | */ |
181 | | FDK_INLINE void FDKresetBitbuffer(HANDLE_FDK_BITSTREAM hBitStream, |
182 | 0 | FDK_BS_CFG config = BS_READER) { |
183 | 0 | FDK_ResetBitBuffer(&hBitStream->hBitBuf); |
184 | | |
185 | | /* init cache */ |
186 | 0 | hBitStream->CacheWord = hBitStream->BitsInCache = 0; |
187 | 0 | hBitStream->ConfigCache = config; |
188 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: channel_map.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: metadata_main.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: mps_main.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: tpenc_lib.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_lib.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_paramextract.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_staticgain.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_tree.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: bit_sbr.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: ps_main.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sbr_encoder.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sbrenc_ram.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sbrenc_rom.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: ton_corr.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: tran_det.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: aacenc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: bandwidth.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: bitenc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: metadata_compressor.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: psy_main.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: qc_main.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: quantize.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sf_estim.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: transform.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: tpenc_adif.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: tpenc_adts.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: tpenc_asc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: tpenc_latm.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_bitstream.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: code_env.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: env_bit.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: env_est.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: fram_gen.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: invf_est.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: mh_det.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: nf_est.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: ps_bitenc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: ps_encode.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: sbr_misc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: FDK_crc.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: aacEnc_ram.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: aacEnc_rom.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: aacenc_pns.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: aacenc_tns.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: adj_thr.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: bit_cnt.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: dyn_bits.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: intensity.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: line_pe.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: noisedet.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: pnsparam.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: pre_echo_control.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) Unexecuted instantiation: psy_configuration.cpp:FDKresetBitbuffer(FDK_BITSTREAM*, FDK_BS_CFG) |
189 | | |
190 | | /** DeleteBitStream. |
191 | | |
192 | | Deletes the in Create Bitstream allocated BitStream and BitBuffer. |
193 | | */ |
194 | 0 | FDK_INLINE void FDKdeleteBitStream(HANDLE_FDK_BITSTREAM hBitStream) { |
195 | 0 | FDK_DeleteBitBuffer(&hBitStream->hBitBuf); |
196 | 0 | FDKfree(hBitStream); |
197 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKdeleteBitStream(FDK_BITSTREAM*) |
198 | | |
199 | | /** |
200 | | * \brief ReadBits Function (forward). This function returns a number of |
201 | | * sequential bits from the input bitstream. |
202 | | * |
203 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
204 | | * \param numberOfBits The number of bits to be retrieved. ( (0),1 <= |
205 | | * numberOfBits <= 32) |
206 | | * \return the requested bits, right aligned |
207 | | * \return |
208 | | */ |
209 | | |
210 | | FDK_INLINE UINT FDKreadBits(HANDLE_FDK_BITSTREAM hBitStream, |
211 | 0 | const UINT numberOfBits) { |
212 | 0 | UINT bits = 0; |
213 | 0 | INT missingBits = (INT)numberOfBits - (INT)hBitStream->BitsInCache; |
214 | |
|
215 | 0 | FDK_ASSERT(numberOfBits <= 32); |
216 | 0 | if (missingBits > 0) { |
217 | 0 | if (missingBits != 32) bits = hBitStream->CacheWord << missingBits; |
218 | 0 | hBitStream->CacheWord = FDK_get32(&hBitStream->hBitBuf); |
219 | 0 | hBitStream->BitsInCache += CACHE_BITS; |
220 | 0 | } |
221 | |
|
222 | 0 | hBitStream->BitsInCache -= numberOfBits; |
223 | |
|
224 | 0 | return (bits | (hBitStream->CacheWord >> hBitStream->BitsInCache)) & |
225 | 0 | BitMask[numberOfBits]; |
226 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKreadBits(FDK_BITSTREAM*, unsigned int) |
227 | | |
228 | 0 | FDK_INLINE UINT FDKreadBit(HANDLE_FDK_BITSTREAM hBitStream) { |
229 | 0 | if (!hBitStream->BitsInCache) { |
230 | 0 | hBitStream->CacheWord = FDK_get32(&hBitStream->hBitBuf); |
231 | 0 | hBitStream->BitsInCache = CACHE_BITS - 1; |
232 | 0 | return hBitStream->CacheWord >> 31; |
233 | 0 | } |
234 | 0 | hBitStream->BitsInCache--; |
235 | |
|
236 | 0 | return (hBitStream->CacheWord >> hBitStream->BitsInCache) & 1; |
237 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKreadBit(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKreadBit(FDK_BITSTREAM*) |
238 | | |
239 | | /** |
240 | | * \brief Read2Bits Function (forward). This function reads 2 sequential |
241 | | * bits from the input bitstream. It is the optimized version |
242 | | of FDKreadBits() for reading 2 bits. |
243 | | * |
244 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
245 | | * \return the requested bits, right aligned |
246 | | * \return |
247 | | */ |
248 | 0 | FDK_INLINE UINT FDKread2Bits(HANDLE_FDK_BITSTREAM hBitStream) { |
249 | 0 | /* |
250 | 0 | ** Version corresponds to optimized FDKreadBits implementation |
251 | 0 | ** calling FDK_get32, that keeps read pointer aligned. |
252 | 0 | */ |
253 | 0 | UINT bits = 0; |
254 | 0 | INT missingBits = 2 - (INT)hBitStream->BitsInCache; |
255 | 0 | if (missingBits > 0) { |
256 | 0 | bits = hBitStream->CacheWord << missingBits; |
257 | 0 | hBitStream->CacheWord = FDK_get32(&hBitStream->hBitBuf); |
258 | 0 | hBitStream->BitsInCache += CACHE_BITS; |
259 | 0 | } |
260 | 0 |
|
261 | 0 | hBitStream->BitsInCache -= 2; |
262 | 0 |
|
263 | 0 | return (bits | (hBitStream->CacheWord >> hBitStream->BitsInCache)) & 0x3; |
264 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKread2Bits(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKread2Bits(FDK_BITSTREAM*) |
265 | | |
266 | | /** |
267 | | * \brief ReadBits Function (backward). This function returns a number of |
268 | | * sequential bits from the input bitstream. |
269 | | * |
270 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
271 | | * \param numberOfBits The number of bits to be retrieved. |
272 | | * \return the requested bits, right aligned |
273 | | */ |
274 | | FDK_INLINE UINT FDKreadBitsBwd(HANDLE_FDK_BITSTREAM hBitStream, |
275 | 0 | const UINT numberOfBits) { |
276 | 0 | const UINT validMask = BitMask[numberOfBits]; |
277 | 0 |
|
278 | 0 | if (hBitStream->BitsInCache <= numberOfBits) { |
279 | 0 | const INT freeBits = (CACHE_BITS - 1) - hBitStream->BitsInCache; |
280 | 0 |
|
281 | 0 | hBitStream->CacheWord = (hBitStream->CacheWord << freeBits) | |
282 | 0 | FDK_getBwd(&hBitStream->hBitBuf, freeBits); |
283 | 0 | hBitStream->BitsInCache += freeBits; |
284 | 0 | } |
285 | 0 |
|
286 | 0 | hBitStream->BitsInCache -= numberOfBits; |
287 | 0 |
|
288 | 0 | return (hBitStream->CacheWord >> hBitStream->BitsInCache) & validMask; |
289 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKreadBitsBwd(FDK_BITSTREAM*, unsigned int) |
290 | | |
291 | | /** |
292 | | * \brief read an integer value using a varying number of bits from the |
293 | | * bitstream |
294 | | * |
295 | | * q.v. ISO/IEC FDIS 23003-3 Table 16 |
296 | | * |
297 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
298 | | * \param nBits1 number of bits to read for a small integer value or escape |
299 | | * value |
300 | | * \param nBits2 number of bits to read for a medium sized integer value or |
301 | | * escape value |
302 | | * \param nBits3 number of bits to read for a large integer value |
303 | | * \return integer value read from bitstream |
304 | | */ |
305 | | FDK_INLINE UINT escapedValue(HANDLE_FDK_BITSTREAM hBitStream, int nBits1, |
306 | 0 | int nBits2, int nBits3) { |
307 | 0 | UINT value = FDKreadBits(hBitStream, nBits1); |
308 | 0 |
|
309 | 0 | if (value == (UINT)(1 << nBits1) - 1) { |
310 | 0 | UINT valueAdd = FDKreadBits(hBitStream, nBits2); |
311 | 0 | value += valueAdd; |
312 | 0 | if (valueAdd == (UINT)(1 << nBits2) - 1) { |
313 | 0 | value += FDKreadBits(hBitStream, nBits3); |
314 | 0 | } |
315 | 0 | } |
316 | 0 |
|
317 | 0 | return value; |
318 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: channel_map.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: metadata_main.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: mps_main.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: tpenc_lib.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_lib.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_onsetdetect.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_paramextract.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_staticgain.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_tree.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: bit_sbr.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: ps_main.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sbr_encoder.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sbrenc_freq_sca.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sbrenc_ram.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sbrenc_rom.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: ton_corr.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: tran_det.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: aacenc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: bandwidth.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: bitenc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: metadata_compressor.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: psy_main.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: qc_main.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: quantize.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sf_estim.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: transform.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: tpenc_adif.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: tpenc_adts.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: tpenc_asc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: tpenc_latm.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_bitstream.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_framewindowing.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sacenc_nlc_enc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: code_env.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: env_bit.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: env_est.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: fram_gen.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: invf_est.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: mh_det.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: nf_est.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: ps_bitenc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: ps_encode.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: sbr_misc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: FDK_crc.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: aacEnc_ram.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: aacEnc_rom.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: aacenc_pns.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: aacenc_tns.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: adj_thr.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: bit_cnt.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: dyn_bits.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: intensity.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: line_pe.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: noisedet.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: pnsparam.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: pre_echo_control.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) Unexecuted instantiation: psy_configuration.cpp:escapedValue(FDK_BITSTREAM*, int, int, int) |
319 | | |
320 | | /** |
321 | | * \brief return a number of bits from the bitBuffer. |
322 | | * You have to know what you do! Cache has to be synchronized before |
323 | | * using this function. |
324 | | * |
325 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
326 | | * \param numBits The number of bits to be retrieved. |
327 | | * \return the requested bits, right aligned |
328 | | */ |
329 | 0 | FDK_INLINE UINT FDKgetBits(HANDLE_FDK_BITSTREAM hBitStream, UINT numBits) { |
330 | 0 | return FDK_get(&hBitStream->hBitBuf, numBits); |
331 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKgetBits(FDK_BITSTREAM*, unsigned int) |
332 | | |
333 | | /** |
334 | | * \brief WriteBits Function. This function writes numberOfBits of value into |
335 | | * bitstream. |
336 | | * |
337 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
338 | | * \param value The data to be written |
339 | | * \param numberOfBits The number of bits to be written |
340 | | * \return Number of bits written |
341 | | */ |
342 | | FDK_INLINE UCHAR FDKwriteBits(HANDLE_FDK_BITSTREAM hBitStream, UINT value, |
343 | 0 | const UINT numberOfBits) { |
344 | 0 | const UINT validMask = BitMask[numberOfBits]; |
345 | |
|
346 | 0 | if (hBitStream == NULL) { |
347 | 0 | return numberOfBits; |
348 | 0 | } |
349 | | |
350 | 0 | if ((hBitStream->BitsInCache + numberOfBits) < CACHE_BITS) { |
351 | 0 | hBitStream->BitsInCache += numberOfBits; |
352 | 0 | hBitStream->CacheWord = |
353 | 0 | (hBitStream->CacheWord << numberOfBits) | (value & validMask); |
354 | 0 | } else { |
355 | | /* Put always 32 bits into memory */ |
356 | | /* - fill cache's LSBits with MSBits of value */ |
357 | | /* - store 32 bits in memory using subroutine */ |
358 | | /* - fill remaining bits into cache's LSBits */ |
359 | | /* - upper bits in cache are don't care */ |
360 | | |
361 | | /* Compute number of bits to be filled into cache */ |
362 | 0 | int missing_bits = CACHE_BITS - hBitStream->BitsInCache; |
363 | 0 | int remaining_bits = numberOfBits - missing_bits; |
364 | 0 | value = value & validMask; |
365 | | /* Avoid shift left by 32 positions */ |
366 | 0 | UINT CacheWord = |
367 | 0 | (missing_bits == 32) ? 0 : (hBitStream->CacheWord << missing_bits); |
368 | 0 | CacheWord |= (value >> (remaining_bits)); |
369 | 0 | FDK_put(&hBitStream->hBitBuf, CacheWord, 32); |
370 | |
|
371 | 0 | hBitStream->CacheWord = value; |
372 | 0 | hBitStream->BitsInCache = remaining_bits; |
373 | 0 | } |
374 | |
|
375 | 0 | return numberOfBits; |
376 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: quantize.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: transform.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: code_env.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: env_est.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: intensity.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKwriteBits(FDK_BITSTREAM*, unsigned int, unsigned int) |
377 | | |
378 | | /** |
379 | | * \brief WriteBits Function (backward). This function writes numberOfBits of |
380 | | * value into bitstream. |
381 | | * |
382 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
383 | | * \param value Variable holds data to be written. |
384 | | * \param numberOfBits The number of bits to be written. |
385 | | * \return number of bits written |
386 | | */ |
387 | | FDK_INLINE UCHAR FDKwriteBitsBwd(HANDLE_FDK_BITSTREAM hBitStream, UINT value, |
388 | 0 | const UINT numberOfBits) { |
389 | 0 | const UINT validMask = BitMask[numberOfBits]; |
390 | 0 |
|
391 | 0 | if ((hBitStream->BitsInCache + numberOfBits) <= CACHE_BITS) { |
392 | 0 | hBitStream->BitsInCache += numberOfBits; |
393 | 0 | hBitStream->CacheWord = |
394 | 0 | (hBitStream->CacheWord << numberOfBits) | (value & validMask); |
395 | 0 | } else { |
396 | 0 | FDK_putBwd(&hBitStream->hBitBuf, hBitStream->CacheWord, |
397 | 0 | hBitStream->BitsInCache); |
398 | 0 | hBitStream->BitsInCache = numberOfBits; |
399 | 0 | hBitStream->CacheWord = (value & validMask); |
400 | 0 | } |
401 | 0 |
|
402 | 0 | return numberOfBits; |
403 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: quantize.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: transform.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: code_env.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: env_est.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: intensity.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKwriteBitsBwd(FDK_BITSTREAM*, unsigned int, unsigned int) |
404 | | |
405 | | /** |
406 | | * \brief write an integer value using a varying number of bits from the |
407 | | * bitstream |
408 | | * |
409 | | * q.v. ISO/IEC FDIS 23003-3 Table 16 |
410 | | * |
411 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
412 | | * \param value the data to be written |
413 | | * \param nBits1 number of bits to write for a small integer value or escape |
414 | | * value |
415 | | * \param nBits2 number of bits to write for a medium sized integer value or |
416 | | * escape value |
417 | | * \param nBits3 number of bits to write for a large integer value |
418 | | * \return number of bits written |
419 | | */ |
420 | | FDK_INLINE UCHAR FDKwriteEscapedValue(HANDLE_FDK_BITSTREAM hBitStream, |
421 | | UINT value, UINT nBits1, UINT nBits2, |
422 | 0 | UINT nBits3) { |
423 | 0 | UCHAR nbits = 0; |
424 | 0 | UINT tmp = (1 << nBits1) - 1; |
425 | 0 |
|
426 | 0 | if (value < tmp) { |
427 | 0 | nbits += FDKwriteBits(hBitStream, value, nBits1); |
428 | 0 | } else { |
429 | 0 | nbits += FDKwriteBits(hBitStream, tmp, nBits1); |
430 | 0 | value -= tmp; |
431 | 0 | tmp = (1 << nBits2) - 1; |
432 | 0 |
|
433 | 0 | if (value < tmp) { |
434 | 0 | nbits += FDKwriteBits(hBitStream, value, nBits2); |
435 | 0 | } else { |
436 | 0 | nbits += FDKwriteBits(hBitStream, tmp, nBits2); |
437 | 0 | value -= tmp; |
438 | 0 |
|
439 | 0 | nbits += FDKwriteBits(hBitStream, value, nBits3); |
440 | 0 | } |
441 | 0 | } |
442 | 0 |
|
443 | 0 | return nbits; |
444 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: quantize.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: transform.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: code_env.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: env_est.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: intensity.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKwriteEscapedValue(FDK_BITSTREAM*, unsigned int, unsigned int, unsigned int, unsigned int) |
445 | | |
446 | | /** |
447 | | * \brief SyncCache Function. Clear cache after read forward. |
448 | | * |
449 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
450 | | * \return void |
451 | | */ |
452 | 0 | FDK_INLINE void FDKsyncCache(HANDLE_FDK_BITSTREAM hBitStream) { |
453 | 0 | if (hBitStream->ConfigCache == BS_READER) |
454 | 0 | FDK_pushBack(&hBitStream->hBitBuf, hBitStream->BitsInCache, |
455 | 0 | hBitStream->ConfigCache); |
456 | 0 | else if (hBitStream->BitsInCache) /* BS_WRITER */ |
457 | 0 | FDK_put(&hBitStream->hBitBuf, hBitStream->CacheWord, |
458 | 0 | hBitStream->BitsInCache); |
459 | |
|
460 | 0 | hBitStream->BitsInCache = 0; |
461 | 0 | hBitStream->CacheWord = 0; |
462 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKsyncCache(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKsyncCache(FDK_BITSTREAM*) |
463 | | |
464 | | /** |
465 | | * \brief SyncCache Function. Clear cache after read backwards. |
466 | | * |
467 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
468 | | * \return void |
469 | | */ |
470 | 0 | FDK_INLINE void FDKsyncCacheBwd(HANDLE_FDK_BITSTREAM hBitStream) { |
471 | 0 | if (hBitStream->ConfigCache == BS_READER) { |
472 | 0 | FDK_pushForward(&hBitStream->hBitBuf, hBitStream->BitsInCache, |
473 | 0 | hBitStream->ConfigCache); |
474 | 0 | } else { /* BS_WRITER */ |
475 | 0 | FDK_putBwd(&hBitStream->hBitBuf, hBitStream->CacheWord, |
476 | 0 | hBitStream->BitsInCache); |
477 | 0 | } |
478 | 0 |
|
479 | 0 | hBitStream->BitsInCache = 0; |
480 | 0 | hBitStream->CacheWord = 0; |
481 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKsyncCacheBwd(FDK_BITSTREAM*) |
482 | | |
483 | | /** |
484 | | * \brief Byte Alignment Function with anchor |
485 | | * This function performs the byte_alignment() syntactic function on the |
486 | | * input stream, i.e. some bits will be discarded so that the next bits to be |
487 | | * read/written would be aligned on a byte boundary with respect to the |
488 | | * given alignment anchor. |
489 | | * |
490 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
491 | | * \param alignmentAnchor bit position to be considered as origin for byte |
492 | | * alignment |
493 | | * \return void |
494 | | */ |
495 | | FDK_INLINE void FDKbyteAlign(HANDLE_FDK_BITSTREAM hBitStream, |
496 | 0 | UINT alignmentAnchor) { |
497 | 0 | FDKsyncCache(hBitStream); |
498 | 0 | if (hBitStream->ConfigCache == BS_READER) { |
499 | 0 | FDK_pushForward( |
500 | 0 | &hBitStream->hBitBuf, |
501 | 0 | (UINT)((INT)8 - (((INT)alignmentAnchor - |
502 | 0 | (INT)FDK_getValidBits(&hBitStream->hBitBuf)) & |
503 | 0 | 0x07)) & |
504 | 0 | 0x07, |
505 | 0 | hBitStream->ConfigCache); |
506 | 0 | } else { |
507 | 0 | FDK_put(&hBitStream->hBitBuf, 0, |
508 | 0 | (8 - ((FDK_getValidBits(&hBitStream->hBitBuf) - alignmentAnchor) & |
509 | 0 | 0x07)) & |
510 | 0 | 0x07); |
511 | 0 | } |
512 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKbyteAlign(FDK_BITSTREAM*, unsigned int) |
513 | | |
514 | | /** |
515 | | * \brief Push Back(Cache) / For / BiDirectional Function. |
516 | | * PushBackCache function ungets a number of bits erroneously |
517 | | * read/written by the last Get() call. NB: The number of bits to be stuffed |
518 | | * back into the stream may never exceed the number of bits returned by |
519 | | * the immediately preceding Get() call. |
520 | | * |
521 | | * PushBack function ungets a number of bits (combines cache and bitbuffer |
522 | | * indices) PushFor function gets a number of bits (combines cache and |
523 | | * bitbuffer indices) PushBiDirectional gets/ungets number of bits as |
524 | | * defined in PusBack/For function NB: The sign of bits is not known, so |
525 | | * the function checks direction and calls appropriate function. (positive |
526 | | * sign pushFor, negative sign pushBack ) |
527 | | * |
528 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
529 | | * \param numberOfBits The number of bits to be pushed back/for. |
530 | | * \return void |
531 | | */ |
532 | | FDK_INLINE void FDKpushBackCache(HANDLE_FDK_BITSTREAM hBitStream, |
533 | 0 | const UINT numberOfBits) { |
534 | 0 | FDK_ASSERT((hBitStream->BitsInCache + numberOfBits) <= CACHE_BITS); |
535 | 0 | hBitStream->BitsInCache += numberOfBits; |
536 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKpushBackCache(FDK_BITSTREAM*, unsigned int) |
537 | | |
538 | | FDK_INLINE void FDKpushBack(HANDLE_FDK_BITSTREAM hBitStream, |
539 | 0 | const UINT numberOfBits) { |
540 | 0 | if ((hBitStream->BitsInCache + numberOfBits) < CACHE_BITS && |
541 | 0 | (hBitStream->ConfigCache == BS_READER)) { |
542 | 0 | hBitStream->BitsInCache += numberOfBits; |
543 | 0 | FDKsyncCache(hBitStream); /* sync cache to avoid invalid cache */ |
544 | 0 | } else { |
545 | 0 | FDKsyncCache(hBitStream); |
546 | 0 | FDK_pushBack(&hBitStream->hBitBuf, numberOfBits, hBitStream->ConfigCache); |
547 | 0 | } |
548 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKpushBack(FDK_BITSTREAM*, unsigned int) |
549 | | |
550 | | FDK_INLINE void FDKpushFor(HANDLE_FDK_BITSTREAM hBitStream, |
551 | 0 | const UINT numberOfBits) { |
552 | 0 | if ((hBitStream->BitsInCache > numberOfBits) && |
553 | 0 | (hBitStream->ConfigCache == BS_READER)) { |
554 | 0 | hBitStream->BitsInCache -= numberOfBits; |
555 | 0 | } else { |
556 | 0 | FDKsyncCache(hBitStream); |
557 | 0 | FDK_pushForward(&hBitStream->hBitBuf, numberOfBits, |
558 | 0 | hBitStream->ConfigCache); |
559 | 0 | } |
560 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: channel_map.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_main.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mps_main.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_lib.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_lib.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_tree.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_sbr.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_main.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_encoder.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_ram.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbrenc_rom.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ton_corr.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tran_det.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bandwidth.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bitenc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: metadata_compressor.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_main.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: qc_main.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: quantize.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sf_estim.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: transform.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adif.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_adts.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_asc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: tpenc_latm.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: code_env.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_bit.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: env_est.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: fram_gen.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: invf_est.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: mh_det.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: nf_est.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_bitenc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: ps_encode.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: sbr_misc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: FDK_crc.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_ram.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacEnc_rom.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_pns.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: aacenc_tns.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: adj_thr.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: bit_cnt.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: dyn_bits.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: intensity.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: line_pe.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: noisedet.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pnsparam.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: pre_echo_control.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) Unexecuted instantiation: psy_configuration.cpp:FDKpushFor(FDK_BITSTREAM*, unsigned int) |
561 | | |
562 | | FDK_INLINE void FDKpushBiDirectional(HANDLE_FDK_BITSTREAM hBitStream, |
563 | 0 | const INT numberOfBits) { |
564 | 0 | if (numberOfBits >= 0) |
565 | 0 | FDKpushFor(hBitStream, numberOfBits); |
566 | 0 | else |
567 | 0 | FDKpushBack(hBitStream, -numberOfBits); |
568 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: channel_map.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: metadata_main.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: mps_main.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: tpenc_lib.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_lib.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_paramextract.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_staticgain.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_tree.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: bit_sbr.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: ps_main.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sbr_encoder.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sbrenc_ram.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sbrenc_rom.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: ton_corr.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: tran_det.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: aacenc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: bandwidth.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: bitenc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: metadata_compressor.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: psy_main.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: qc_main.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: quantize.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sf_estim.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: transform.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: tpenc_adif.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: tpenc_adts.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: tpenc_asc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: tpenc_latm.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_bitstream.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: code_env.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: env_bit.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: env_est.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: fram_gen.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: invf_est.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: mh_det.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: nf_est.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: ps_bitenc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: ps_encode.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: sbr_misc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: FDK_crc.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: aacEnc_ram.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: aacEnc_rom.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: aacenc_pns.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: aacenc_tns.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: adj_thr.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: bit_cnt.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: dyn_bits.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: intensity.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: line_pe.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: noisedet.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: pnsparam.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: pre_echo_control.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) Unexecuted instantiation: psy_configuration.cpp:FDKpushBiDirectional(FDK_BITSTREAM*, int) |
569 | | |
570 | | /** |
571 | | * \brief GetValidBits Function. Clear cache and return valid Bits from |
572 | | * Bitbuffer. |
573 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
574 | | * \return amount of valid bits that still can be read or were already written. |
575 | | * |
576 | | */ |
577 | 0 | FDK_INLINE UINT FDKgetValidBits(HANDLE_FDK_BITSTREAM hBitStream) { |
578 | 0 | FDKsyncCache(hBitStream); |
579 | 0 | return FDK_getValidBits(&hBitStream->hBitBuf); |
580 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKgetValidBits(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKgetValidBits(FDK_BITSTREAM*) |
581 | | |
582 | | /** |
583 | | * \brief return amount of unused Bits from Bitbuffer. |
584 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
585 | | * \return amount of free bits that still can be written into the bitstream |
586 | | */ |
587 | 0 | FDK_INLINE INT FDKgetFreeBits(HANDLE_FDK_BITSTREAM hBitStream) { |
588 | 0 | return FDK_getFreeBits(&hBitStream->hBitBuf); |
589 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: channel_map.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: metadata_main.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: mps_main.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_lib.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_lib.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_tree.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: bit_sbr.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: ps_main.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sbr_encoder.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_ram.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sbrenc_rom.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: ton_corr.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: tran_det.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: bandwidth.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: bitenc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: metadata_compressor.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: psy_main.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: qc_main.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: quantize.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sf_estim.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: transform.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adif.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_adts.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_asc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: tpenc_latm.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: code_env.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: env_bit.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: env_est.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: fram_gen.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: invf_est.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: mh_det.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: nf_est.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: ps_bitenc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: ps_encode.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: sbr_misc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: FDK_crc.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_ram.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: aacEnc_rom.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_pns.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: aacenc_tns.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: adj_thr.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: bit_cnt.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: dyn_bits.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: intensity.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: line_pe.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: noisedet.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: pnsparam.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: pre_echo_control.cpp:FDKgetFreeBits(FDK_BITSTREAM*) Unexecuted instantiation: psy_configuration.cpp:FDKgetFreeBits(FDK_BITSTREAM*) |
590 | | |
591 | | /** |
592 | | * \brief Fill the BitBuffer with a number of input bytes from external source. |
593 | | * The bytesValid variable returns the number of ramaining valid bytes in |
594 | | * extern inputBuffer. |
595 | | * |
596 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
597 | | * \param inputBuffer Pointer to input buffer with bitstream data. |
598 | | * \param bufferSize Total size of inputBuffer array. |
599 | | * \param bytesValid Input: number of valid bytes in inputBuffer. Output: bytes |
600 | | * still left unread in inputBuffer. |
601 | | * \return void |
602 | | */ |
603 | | FDK_INLINE void FDKfeedBuffer(HANDLE_FDK_BITSTREAM hBitStream, |
604 | | const UCHAR inputBuffer[], const UINT bufferSize, |
605 | 0 | UINT *bytesValid) { |
606 | 0 | FDKsyncCache(hBitStream); |
607 | 0 | FDK_Feed(&hBitStream->hBitBuf, inputBuffer, bufferSize, bytesValid); |
608 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: channel_map.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: metadata_main.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: mps_main.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: tpenc_lib.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_lib.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_tree.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: bit_sbr.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: ps_main.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sbr_encoder.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sbrenc_ram.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sbrenc_rom.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: ton_corr.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: tran_det.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: aacenc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: bandwidth.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: bitenc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: metadata_compressor.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: psy_main.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: qc_main.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: quantize.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sf_estim.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: transform.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: tpenc_adif.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: tpenc_adts.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: tpenc_asc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: tpenc_latm.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: code_env.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: env_bit.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: env_est.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: fram_gen.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: invf_est.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: mh_det.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: nf_est.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: ps_bitenc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: ps_encode.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: sbr_misc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: FDK_crc.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: aacEnc_ram.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: aacEnc_rom.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: aacenc_pns.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: aacenc_tns.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: adj_thr.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: bit_cnt.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: dyn_bits.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: intensity.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: line_pe.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: noisedet.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: pnsparam.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: pre_echo_control.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) Unexecuted instantiation: psy_configuration.cpp:FDKfeedBuffer(FDK_BITSTREAM*, unsigned char const*, unsigned int, unsigned int*) |
609 | | |
610 | | /** |
611 | | * \brief fill destination BitBuffer with a number of bytes from source |
612 | | * BitBuffer. The bytesValid variable returns the number of ramaining valid |
613 | | * bytes in source BitBuffer. |
614 | | * |
615 | | * \param hBSDst HANDLE_FDK_BITSTREAM handle to write data into |
616 | | * \param hBSSrc HANDLE_FDK_BITSTREAM handle to read data from |
617 | | * \param bytesValid Input: number of valid bytes in inputBuffer. Output: |
618 | | * bytes still left unread in inputBuffer. |
619 | | * \return void |
620 | | */ |
621 | | FDK_INLINE void FDKcopyBuffer(HANDLE_FDK_BITSTREAM hBSDst, |
622 | 0 | HANDLE_FDK_BITSTREAM hBSSrc, UINT *bytesValid) { |
623 | 0 | FDKsyncCache(hBSSrc); |
624 | 0 | FDK_Copy(&hBSDst->hBitBuf, &hBSSrc->hBitBuf, bytesValid); |
625 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: channel_map.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: metadata_main.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: mps_main.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: tpenc_lib.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_lib.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_tree.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: bit_sbr.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: ps_main.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sbr_encoder.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sbrenc_ram.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sbrenc_rom.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: ton_corr.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: tran_det.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: aacenc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: bandwidth.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: bitenc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: metadata_compressor.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: psy_main.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: qc_main.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: quantize.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sf_estim.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: transform.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: tpenc_adif.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: tpenc_adts.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: tpenc_asc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: tpenc_latm.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: code_env.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: env_bit.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: env_est.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: fram_gen.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: invf_est.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: mh_det.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: nf_est.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: ps_bitenc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: ps_encode.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: sbr_misc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: FDK_crc.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: aacEnc_ram.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: aacEnc_rom.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: aacenc_pns.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: aacenc_tns.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: adj_thr.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: bit_cnt.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: dyn_bits.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: intensity.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: line_pe.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: noisedet.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: pnsparam.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: pre_echo_control.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) Unexecuted instantiation: psy_configuration.cpp:FDKcopyBuffer(FDK_BITSTREAM*, FDK_BITSTREAM*, unsigned int*) |
626 | | |
627 | | /** |
628 | | * \brief fill the outputBuffer with all valid bytes hold in BitBuffer. The |
629 | | * WriteBytes variable returns the number of written Bytes. |
630 | | * |
631 | | * \param hBitStream HANDLE_FDK_BITSTREAM handle |
632 | | * \param outputBuffer Pointer to output buffer. |
633 | | * \param writeBytes Number of bytes write to output buffer. |
634 | | * \return void |
635 | | */ |
636 | | FDK_INLINE void FDKfetchBuffer(HANDLE_FDK_BITSTREAM hBitStream, |
637 | 0 | UCHAR *outputBuffer, UINT *writeBytes) { |
638 | 0 | FDKsyncCache(hBitStream); |
639 | 0 | FDK_Fetch(&hBitStream->hBitBuf, outputBuffer, writeBytes); |
640 | 0 | } Unexecuted instantiation: aacenc_lib.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: channel_map.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: metadata_main.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: mps_main.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: tpenc_lib.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_lib.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_onsetdetect.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_paramextract.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_staticgain.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_tree.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: bit_sbr.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: ps_main.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sbr_encoder.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sbrenc_freq_sca.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sbrenc_ram.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sbrenc_rom.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: ton_corr.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: tran_det.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: aacenc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: bandwidth.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: bitenc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: metadata_compressor.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: psy_main.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: qc_main.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: quantize.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sf_estim.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: transform.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: tpenc_adif.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: tpenc_adts.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: tpenc_asc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: tpenc_latm.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_bitstream.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_framewindowing.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sacenc_nlc_enc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: code_env.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: env_bit.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: env_est.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: fram_gen.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: invf_est.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: mh_det.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: nf_est.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: ps_bitenc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: ps_encode.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: sbr_misc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: FDK_crc.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: aacEnc_ram.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: aacEnc_rom.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: aacenc_pns.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: aacenc_tns.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: adj_thr.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: bit_cnt.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: dyn_bits.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: intensity.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: line_pe.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: noisedet.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: pnsparam.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: pre_echo_control.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) Unexecuted instantiation: psy_configuration.cpp:FDKfetchBuffer(FDK_BITSTREAM*, unsigned char*, unsigned int*) |
641 | | |
642 | | #endif |