Lines Matching refs:blocksize

158 	unsigned blocksize,
167 unsigned blocksize,
178 unsigned blocksize,
199 unsigned blocksize,
217 unsigned blocksize,
664 if(encoder->protected_->blocksize == 0) { in init_stream_internal_()
666 encoder->protected_->blocksize = 1152; in init_stream_internal_()
668 encoder->protected_->blocksize = 4096; in init_stream_internal_()
671 …if(encoder->protected_->blocksize < FLAC__MIN_BLOCK_SIZE || encoder->protected_->blocksize > FLAC_… in init_stream_internal_()
677 if(encoder->protected_->blocksize < encoder->protected_->max_lpc_order) in init_stream_internal_()
687 if(encoder->protected_->blocksize <= 192) in init_stream_internal_()
689 else if(encoder->protected_->blocksize <= 384) in init_stream_internal_()
691 else if(encoder->protected_->blocksize <= 576) in init_stream_internal_()
693 else if(encoder->protected_->blocksize <= 1152) in init_stream_internal_()
695 else if(encoder->protected_->blocksize <= 2304) in init_stream_internal_()
697 else if(encoder->protected_->blocksize <= 4608) in init_stream_internal_()
703 if(encoder->protected_->blocksize <= 384) in init_stream_internal_()
705 else if(encoder->protected_->blocksize <= 1152) in init_stream_internal_()
716 …if(!FLAC__format_blocksize_is_subset(encoder->protected_->blocksize, encoder->protected_->sample_r… in init_stream_internal_()
733 encoder->protected_->blocksize > FLAC__SUBSET_MAX_BLOCK_SIZE_48000HZ || in init_stream_internal_()
856 …ouble)encoder->protected_->sample_rate * 0.4 / (FLAC__double)encoder->protected_->blocksize + 0.5); in init_stream_internal_()
863 FLAC__ASSERT(encoder->protected_->blocksize <= 65535); in init_stream_internal_()
864 …_->sample_rate) * (FLAC__uint64)(26214)) << 16) / (encoder->protected_->blocksize<<16) + FLAC__FP_… in init_stream_internal_()
872 …encoder->protected_->bits_per_sample + FLAC__bitmath_ilog2(encoder->protected_->blocksize)+1 > 30); in init_stream_internal_()
1100 if(!resize_buffers_(encoder, encoder->protected_->blocksize)) { in init_stream_internal_()
1118 encoder->private_->verify.input_fifo.size = encoder->protected_->blocksize+OVERREAD_; in init_stream_internal_()
1182 …encoder->private_->streaminfo.data.stream_info.min_blocksize = encoder->protected_->blocksize; /* … in init_stream_internal_()
1183 encoder->private_->streaminfo.data.stream_info.max_blocksize = encoder->protected_->blocksize; in init_stream_internal_()
1369 unsigned blocksize = FLAC__stream_encoder_get_blocksize(encoder); in init_FILE_internal_() local
1371 FLAC__ASSERT(blocksize != 0); in init_FILE_internal_()
1372 …(unsigned)((FLAC__stream_encoder_get_total_samples_estimate(encoder) + blocksize - 1) / blocksize); in init_FILE_internal_()
1461 …const FLAC__bool is_fractional_block = encoder->protected_->blocksize != encoder->private_->curren… in FLAC__stream_encoder_finish()
1462 encoder->protected_->blocksize = encoder->private_->current_sample_number; in FLAC__stream_encoder_finish()
1641 encoder->protected_->blocksize = value; in FLAC__stream_encoder_set_blocksize()
2061 return encoder->protected_->blocksize; in FLAC__stream_encoder_get_blocksize()
2155 …onst unsigned channels = encoder->protected_->channels, blocksize = encoder->protected_->blocksize; in FLAC__stream_encoder_process() local
2165 …const unsigned n = flac_min(blocksize+OVERREAD_-encoder->private_->current_sample_number, samples-… in FLAC__stream_encoder_process()
2181 for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) { in FLAC__stream_encoder_process()
2192 if(encoder->private_->current_sample_number > blocksize) { in FLAC__stream_encoder_process()
2193 FLAC__ASSERT(encoder->private_->current_sample_number == blocksize+OVERREAD_); in FLAC__stream_encoder_process()
2199 …oder->private_->integer_signal[channel][0] = encoder->private_->integer_signal[channel][blocksize]; in FLAC__stream_encoder_process()
2201 …private_->integer_signal_mid_side[0][0] = encoder->private_->integer_signal_mid_side[0][blocksize]; in FLAC__stream_encoder_process()
2202 …private_->integer_signal_mid_side[1][0] = encoder->private_->integer_signal_mid_side[1][blocksize]; in FLAC__stream_encoder_process()
2215 …onst unsigned channels = encoder->protected_->channels, blocksize = encoder->protected_->blocksize; in FLAC__stream_encoder_process_interleaved() local
2233 …d_(&encoder->private_->verify.input_fifo, buffer, j, channels, flac_min(blocksize+OVERREAD_-encode… in FLAC__stream_encoder_process_interleaved()
2236 for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) { in FLAC__stream_encoder_process_interleaved()
2248 if(i > blocksize) { in FLAC__stream_encoder_process_interleaved()
2252 FLAC__ASSERT(i == blocksize+OVERREAD_); in FLAC__stream_encoder_process_interleaved()
2254 encoder->private_->integer_signal[0][0] = encoder->private_->integer_signal[0][blocksize]; in FLAC__stream_encoder_process_interleaved()
2255 encoder->private_->integer_signal[1][0] = encoder->private_->integer_signal[1][blocksize]; in FLAC__stream_encoder_process_interleaved()
2256 …private_->integer_signal_mid_side[0][0] = encoder->private_->integer_signal_mid_side[0][blocksize]; in FLAC__stream_encoder_process_interleaved()
2257 …private_->integer_signal_mid_side[1][0] = encoder->private_->integer_signal_mid_side[1][blocksize]; in FLAC__stream_encoder_process_interleaved()
2268 …d_(&encoder->private_->verify.input_fifo, buffer, j, channels, flac_min(blocksize+OVERREAD_-encode… in FLAC__stream_encoder_process_interleaved()
2271 for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) { in FLAC__stream_encoder_process_interleaved()
2277 if(i > blocksize) { in FLAC__stream_encoder_process_interleaved()
2281 FLAC__ASSERT(i == blocksize+OVERREAD_); in FLAC__stream_encoder_process_interleaved()
2284 …oder->private_->integer_signal[channel][0] = encoder->private_->integer_signal[channel][blocksize]; in FLAC__stream_encoder_process_interleaved()
2315 encoder->protected_->blocksize = 0; in set_defaults_()
2655 const unsigned blocksize = FLAC__stream_encoder_get_blocksize(encoder); in write_frame_() local
2657 const FLAC__uint64 frame_last_sample = frame_first_sample + (FLAC__uint64)blocksize - 1; in write_frame_()
2668 encoder->private_->seek_table->points[i].frame_samples = blocksize; in write_frame_()
3070 …e_->integer_signal, encoder->protected_->channels, encoder->protected_->blocksize, (encoder->prote… in process_frame_()
3106 if(!write_bitbuffer_(encoder, encoder->protected_->blocksize, is_last_block)) { in process_frame_()
3116 …rivate_->streaminfo.data.stream_info.total_samples += (FLAC__uint64)encoder->protected_->blocksize; in process_frame_()
3134 …n_order = FLAC__format_get_max_rice_partition_order_from_blocksize(encoder->protected_->blocksize); in process_subframes_()
3142 frame_header.blocksize = encoder->protected_->blocksize; in process_subframes_()
3181 …d w = get_wasted_bits_(encoder->private_->integer_signal[channel], encoder->protected_->blocksize); in process_subframes_()
3189 …_wasted_bits_(encoder->private_->integer_signal_mid_side[channel], encoder->protected_->blocksize); in process_subframes_()
3335 …if(!add_subframe_(encoder, frame_header.blocksize, left_bps , left_subframe , encoder->private_->f… in process_subframes_()
3337 …if(!add_subframe_(encoder, frame_header.blocksize, right_bps, right_subframe, encoder->private_->f… in process_subframes_()
3347 …if(!add_subframe_(encoder, frame_header.blocksize, encoder->private_->subframe_bps[channel], &enco… in process_subframes_()
3398 FLAC__ASSERT(frame_header->blocksize > 0); in process_subframe_()
3402 …if(encoder->private_->disable_verbatim_subframes && frame_header->blocksize >= FLAC__MAX_FIXED_ORD… in process_subframe_()
3405 …_best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subfram… in process_subframe_()
3407 if(frame_header->blocksize >= FLAC__MAX_FIXED_ORDER) { in process_subframe_()
3409 …pute_best_predictor(integer_signal+FLAC__MAX_FIXED_ORDER, frame_header->blocksize-FLAC__MAX_FIXED_… in process_subframe_()
3422 for(i = 1; i < frame_header->blocksize; i++) { in process_subframe_()
3430 …= evaluate_constant_subframe_(encoder, integer_signal[0], frame_header->blocksize, subframe_bps, s… in process_subframe_()
3446 if(max_fixed_order >= frame_header->blocksize) in process_subframe_()
3447 max_fixed_order = frame_header->blocksize - 1; in process_subframe_()
3472 frame_header->blocksize, in process_subframe_()
3494 if(encoder->protected_->max_lpc_order >= frame_header->blocksize) in process_subframe_()
3495 max_lpc_order = frame_header->blocksize-1; in process_subframe_()
3501 …signal, encoder->private_->window[a], encoder->private_->windowed_signal, frame_header->blocksize); in process_subframe_()
3502 …mpute_autocorrelation(encoder->private_->windowed_signal, frame_header->blocksize, max_lpc_order+1… in process_subframe_()
3514 frame_header->blocksize, in process_subframe_()
3523 if(max_lpc_order >= frame_header->blocksize) in process_subframe_()
3524 max_lpc_order = frame_header->blocksize - 1; in process_subframe_()
3526 …mpute_expected_bits_per_residual_sample(lpc_error[lpc_order-1], frame_header->blocksize-lpc_order); in process_subframe_()
3559 frame_header->blocksize, in process_subframe_()
3591 …_best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subfram… in process_subframe_()
3602 unsigned blocksize, in add_subframe_() argument
3616 …if(!FLAC__subframe_add_fixed(&(subframe->data.fixed), blocksize - subframe->data.fixed.order, subf… in add_subframe_()
3622 …if(!FLAC__subframe_add_lpc(&(subframe->data.lpc), blocksize - subframe->data.lpc.order, subframe_b… in add_subframe_()
3628 …if(!FLAC__subframe_add_verbatim(&(subframe->data.verbatim), blocksize, subframe_bps, subframe->was… in add_subframe_()
3644 unsigned blocksize, in spotcheck_subframe_estimate_() argument
3660 ret = add_subframe_(encoder, blocksize, subframe_bps, subframe, frame); in spotcheck_subframe_estimate_()
3674 unsigned blocksize, in evaluate_constant_subframe_() argument
3686 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_constant_subframe_()
3688 (void)encoder, (void)blocksize; in evaluate_constant_subframe_()
3700 unsigned blocksize, in evaluate_fixed_subframe_() argument
3714 const unsigned residual_samples = blocksize - order; in evaluate_fixed_subframe_()
3749 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_fixed_subframe_()
3763 unsigned blocksize, in evaluate_lpc_subframe_() argument
3780 const unsigned residual_samples = blocksize - order; in evaluate_lpc_subframe_()
3835 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_lpc_subframe_()
3845 unsigned blocksize, in evaluate_verbatim_subframe_() argument
3856 …YPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + (blocksize * subframe_bps); in evaluate_verbatim_subframe_()
3859 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_verbatim_subframe_()
3887 const unsigned blocksize = residual_samples + predictor_order; in find_best_partition_order_() local
3889 …der_from_blocksize_limited_max_and_predictor_order(max_partition_order, blocksize, predictor_order… in find_best_partition_order_()
4036 const unsigned blocksize = residual_samples + predictor_order; in precompute_partition_info_escapes_() local
4044 const unsigned default_partition_samples = blocksize >> partition_order; in precompute_partition_info_escapes_()
4405 const unsigned blocksize = frame->header.blocksize; local
4406 const unsigned bytes_per_block = sizeof(FLAC__int32) * blocksize;
4415 for(i = 0; i < blocksize; i++) {
4423 FLAC__ASSERT(i < blocksize);
4426 …ate_->verify.error_stats.frame_number = (unsigned)(frame->header.number.sample_number / blocksize);
4436 encoder->private_->verify.input_fifo.tail -= blocksize;
4439 …o.data[channel][0], &encoder->private_->verify.input_fifo.data[channel][blocksize], encoder->priva…