search for: celt_int32

Displaying 9 results from an estimated 9 matches for "celt_int32".

2010 Mar 25
0
Blackfin inline assembly for fixed math
...ACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef FIXED_BFIN_H #define FIXED_BFIN_H #undef MAX16 static inline celt_int16 MAX16(celt_int16 a, celt_int16 b) { celt_int32 res; __asm__ ( "%1 = %1.L (X);\n\t" "%2 = %2.L (X);\n\t" "%0 = MAX(%1,%2);" : "=d" (res) : "%d" (a), "d" (b) ); return res; } #undef MIN16 static inline celt_int16 MIN16(celt_int16 a, celt_int16...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...t i, celt_norm *X, c void quant_all_bands(int encode, const CELTMode *m, int start, int end, celt_norm *_X, celt_norm *_Y, unsigned char *collapse_masks, const celt_ener *bandE, int *pulses, int shortBlocks, int spread, int dual_stereo, int intensity, int *tf_res, int resynth, - celt_int32 total_bits, celt_int32 balance, ec_ctx *ec, int LM, int codedBands, ec_uint32 *seed) + celt_int32 total_bits, celt_int32 balance, ec_ctx *ec, int LM, int codedBands, celt_uint32 *seed) { int i; celt_int32 remaining_bits; diff --git a/libcelt/bands.h b/libcelt/bands.h index d0fcf1b..d3...
2011 Apr 20
1
CELT in ffmpeg and API questions
...here that support for decoding using libcelt was just pushed to ffmpeg. It raised a few API questions or issues: * At least while it's experimental, having a constant in the library for the supported bitstream version would probably be useful. Something like that comes to mind: extern celt_int32 celt_bitstream_version; or, even better: int celt_bitstream_version_supported(celt_int32 version); Since dynamic linking is supported, a build-time constant is not suitable. Currently, I resorted to have libcelt generate a dummy header to get the version_id field. * The header_size i...
2011 Mar 02
1
[PATCH] Fix CNG when effEBands is less than nbEBands.
...lt_decode_lost(CELTDecoder * restrict st, celt_word16 * restrict p log2Amp(st->mode, st->start, st->end, bandE, backgroundLogE, C); seed = st->rng; - for (i=0;i<C*N;i++) + for (c=0;c<C;c++) { - seed = lcg_rand(seed); - X[i] = (celt_int32)(seed)>>20; + for (i=0;i<st->mode->effEBands;i++) + { + int j; + int boffs; + int blen; + boffs = N*c+(st->mode->eBands[i]<<LM); + blen = (st->mode->eBands[i+1]-st->mode->eBands[i])<<...
2010 Jul 06
3
V0.8.0 Problems
Tim, et al, I have run into several problems with V0.8.0. I will address them seperately. 1. My compiler is complaining about the following code in celt.c which seems to define metric first as celt_word32, then as celt_word16. Am I mis-interpreting something? ?? VARDECL(celt_word32, metric); ?? ALLOC(metric, len, celt_word16); Thx MikeH -------------- next part -------------- An HTML attachment
2009 Oct 16
3
API Change
Hi everyone, I've just changed the API for CELT, but at least there's a good reason for that. It's now possible to use the same mode data for both mono and stereo. So here's the change: - The celt_mode_create() function has a "channels" parameter - The celt_encode_create() and celt_decoder_create() functions now have an additional "channels" parameter. - I
2010 Mar 02
1
question about CELT_SET_COMPLEXITY_REQUEST
...e for celt_encoder_ctl in 0.7.1 I'm confused as to why Complexity is described as a value from 0-10, but the code only appears to have one setting for 0-2 and another setting for 3-10. Is that for future use or am I missing something? case CELT_SET_COMPLEXITY_REQUEST: { int value = va_arg(ap, celt_int32); if (value<0 || value>10) goto bad_arg; if (value<=2) { st->pitch_enabled = 0; st->pitch_available = 0; } else { st->pitch_enabled = 1; if (st->pitch_available<1) st->pitch_available = 1; } } -------------- next part -------------- An HTML attachment was scrubbed... URL:...
2011 May 02
1
Modes?
...and 128 byte frames, but get NULL returned from the celt_mode_create function. I am not defining CUSTOM_MODES_ONLY (because I don't know what it means). On the last couple of lines of code, there is no error (error=0), but it appears that you always return NULL..? CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error) #ifndef CUSTOM_MODES_ONLY for (i=0;i<TOTAL_MODES;i++) { int j; for (j=0;j<4;j++) { if (Fs == static_mode_list[i]->Fs && (frame_size<<j) == static_mode_list[i]->shortMdctSize*static_m...
2011 Mar 03
1
fixed point code
...oder, depending on frame size and sampling freq. of the bitstream .. Could you provide us with fixed-point code for initialization of this array? Or you may kindly provide us with ROM tables of the array for each possible combination of frame size and sampling freq...? CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error) { .... .... #ifndef FIXED_POINT for (i=0;i<mode->overlap;i++) window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overlap)); #else for (i=0;i<mode->overlap;i++) window[i] = MIN32(32767,flo...