Lines Matching refs:nbCompressedBytes

1248 int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc)
1320 if (nbCompressedBytes<2 || pcm==NULL)
1372 nbCompressedBytes--;
1379 nbCompressedBytes = IMIN(nbCompressedBytes,1275);
1380 nbAvailableBytes = nbCompressedBytes - nbFilledBytes;
1398 nbCompressedBytes = IMAX(2, IMIN(nbCompressedBytes,
1400 effectiveBytes = nbCompressedBytes;
1407 ec_enc_init(&_enc, compressed, nbCompressedBytes);
1431 nbCompressedBytes = nbFilledBytes+max_allowed;
1433 ec_enc_shrink(enc, nbCompressedBytes);
1437 total_bits = nbCompressedBytes*8;
1466 effectiveBytes=nbCompressedBytes=IMIN(nbCompressedBytes, nbFilledBytes+2);
1467 total_bits=nbCompressedBytes*8;
1469 ec_enc_shrink(enc, nbCompressedBytes);
1473 tell = nbCompressedBytes*8;
1848 nbCompressedBytes = IMIN(nbCompressedBytes,1275>>(3-LM));
1871 nbAvailableBytes = IMIN(nbCompressedBytes,nbAvailableBytes+nbFilledBytes) - nbFilledBytes;
1918 nbCompressedBytes = IMIN(nbCompressedBytes,nbAvailableBytes+nbFilledBytes);
1919 /*printf("%d\n", nbCompressedBytes*50*8);*/
1921 ec_enc_shrink(enc, nbCompressedBytes);
1930 bits = (((opus_int32)nbCompressedBytes*8)<<BITRES) - ec_tell_frac(enc) - 1;
1967 nbCompressedBytes*(8<<BITRES)-anti_collapse_rsv, balance, enc, LM, codedBands, &st->rng);
1977 quant_energy_finalise(mode, st->start, st->end, oldBandE, error, fine_quant, fine_priority, nbCompressedBytes*8-ec_tell(enc), enc, C);
2095 nbCompressedBytes++;
2102 return nbCompressedBytes;
2109 int opus_custom_encode(CELTEncoder * OPUS_RESTRICT st, const opus_int16 * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes)
2111 return celt_encode_with_ec(st, pcm, frame_size, compressed, nbCompressedBytes, NULL);
2115 int opus_custom_encode_float(CELTEncoder * OPUS_RESTRICT st, const float * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes)
2131 ret=celt_encode_with_ec(st,in,frame_size,compressed,nbCompressedBytes, NULL);
2142 int opus_custom_encode(CELTEncoder * OPUS_RESTRICT st, const opus_int16 * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes)
2158 ret = celt_encode_with_ec(st,in,frame_size,compressed,nbCompressedBytes, NULL);
2167 int opus_custom_encode_float(CELTEncoder * OPUS_RESTRICT st, const float * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes)
2169 return celt_encode_with_ec(st, pcm, frame_size, compressed, nbCompressedBytes, NULL);