Lines Matching refs:blocksize

162 	unsigned blocksize,
171 unsigned blocksize,
182 unsigned blocksize,
203 unsigned blocksize,
221 unsigned blocksize,
661 if(encoder->protected_->blocksize == 0) { in init_stream_internal_()
663 encoder->protected_->blocksize = 1152; in init_stream_internal_()
665 encoder->protected_->blocksize = 4096; in init_stream_internal_()
668 …if(encoder->protected_->blocksize < FLAC__MIN_BLOCK_SIZE || encoder->protected_->blocksize > FLAC_… in init_stream_internal_()
674 if(encoder->protected_->blocksize < encoder->protected_->max_lpc_order) in init_stream_internal_()
684 if(encoder->protected_->blocksize <= 192) in init_stream_internal_()
686 else if(encoder->protected_->blocksize <= 384) in init_stream_internal_()
688 else if(encoder->protected_->blocksize <= 576) in init_stream_internal_()
690 else if(encoder->protected_->blocksize <= 1152) in init_stream_internal_()
692 else if(encoder->protected_->blocksize <= 2304) in init_stream_internal_()
694 else if(encoder->protected_->blocksize <= 4608) in init_stream_internal_()
700 if(encoder->protected_->blocksize <= 384) in init_stream_internal_()
702 else if(encoder->protected_->blocksize <= 1152) in init_stream_internal_()
713 …if(!FLAC__format_blocksize_is_subset(encoder->protected_->blocksize, encoder->protected_->sample_r… in init_stream_internal_()
730 encoder->protected_->blocksize > FLAC__SUBSET_MAX_BLOCK_SIZE_48000HZ || in init_stream_internal_()
853 …ed)((double)encoder->protected_->sample_rate * 0.4 / (double)encoder->protected_->blocksize + 0.5); in init_stream_internal_()
860 FLAC__ASSERT(encoder->protected_->blocksize <= 65535); in init_stream_internal_()
861 …_->sample_rate) * (FLAC__uint64)(26214)) << 16) / (encoder->protected_->blocksize<<16) + FLAC__FP_… in init_stream_internal_()
1089 if(!resize_buffers_(encoder, encoder->protected_->blocksize)) { in init_stream_internal_()
1107 encoder->private_->verify.input_fifo.size = encoder->protected_->blocksize+OVERREAD_; in init_stream_internal_()
1171 …encoder->private_->streaminfo.data.stream_info.min_blocksize = encoder->protected_->blocksize; /* … in init_stream_internal_()
1172 encoder->private_->streaminfo.data.stream_info.max_blocksize = encoder->protected_->blocksize; in init_stream_internal_()
1359 unsigned blocksize = FLAC__stream_encoder_get_blocksize(encoder); in init_FILE_internal_() local
1361 FLAC__ASSERT(blocksize != 0); in init_FILE_internal_()
1362 …(unsigned)((FLAC__stream_encoder_get_total_samples_estimate(encoder) + blocksize - 1) / blocksize); in init_FILE_internal_()
1451 …const FLAC__bool is_fractional_block = encoder->protected_->blocksize != encoder->private_->curren… in FLAC__stream_encoder_finish()
1452 encoder->protected_->blocksize = encoder->private_->current_sample_number; in FLAC__stream_encoder_finish()
1631 encoder->protected_->blocksize = value; in FLAC__stream_encoder_set_blocksize()
2052 return encoder->protected_->blocksize; in FLAC__stream_encoder_get_blocksize()
2146 …onst unsigned channels = encoder->protected_->channels, blocksize = encoder->protected_->blocksize; in FLAC__stream_encoder_process() local
2154 …const unsigned n = flac_min(blocksize+OVERREAD_-encoder->private_->current_sample_number, samples-… in FLAC__stream_encoder_process()
2169 for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) { in FLAC__stream_encoder_process()
2180 if(encoder->private_->current_sample_number > blocksize) { in FLAC__stream_encoder_process()
2181 FLAC__ASSERT(encoder->private_->current_sample_number == blocksize+OVERREAD_); in FLAC__stream_encoder_process()
2187 …oder->private_->integer_signal[channel][0] = encoder->private_->integer_signal[channel][blocksize]; in FLAC__stream_encoder_process()
2189 …private_->integer_signal_mid_side[0][0] = encoder->private_->integer_signal_mid_side[0][blocksize]; in FLAC__stream_encoder_process()
2190 …private_->integer_signal_mid_side[1][0] = encoder->private_->integer_signal_mid_side[1][blocksize]; in FLAC__stream_encoder_process()
2203 …onst unsigned channels = encoder->protected_->channels, blocksize = encoder->protected_->blocksize; in FLAC__stream_encoder_process_interleaved() local
2221 …d_(&encoder->private_->verify.input_fifo, buffer, j, channels, flac_min(blocksize+OVERREAD_-encode… in FLAC__stream_encoder_process_interleaved()
2224 for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) { in FLAC__stream_encoder_process_interleaved()
2236 if(i > blocksize) { in FLAC__stream_encoder_process_interleaved()
2240 FLAC__ASSERT(i == blocksize+OVERREAD_); in FLAC__stream_encoder_process_interleaved()
2242 encoder->private_->integer_signal[0][0] = encoder->private_->integer_signal[0][blocksize]; in FLAC__stream_encoder_process_interleaved()
2243 encoder->private_->integer_signal[1][0] = encoder->private_->integer_signal[1][blocksize]; in FLAC__stream_encoder_process_interleaved()
2244 …private_->integer_signal_mid_side[0][0] = encoder->private_->integer_signal_mid_side[0][blocksize]; in FLAC__stream_encoder_process_interleaved()
2245 …private_->integer_signal_mid_side[1][0] = encoder->private_->integer_signal_mid_side[1][blocksize]; in FLAC__stream_encoder_process_interleaved()
2256 …d_(&encoder->private_->verify.input_fifo, buffer, j, channels, flac_min(blocksize+OVERREAD_-encode… in FLAC__stream_encoder_process_interleaved()
2259 for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) { in FLAC__stream_encoder_process_interleaved()
2265 if(i > blocksize) { in FLAC__stream_encoder_process_interleaved()
2269 FLAC__ASSERT(i == blocksize+OVERREAD_); in FLAC__stream_encoder_process_interleaved()
2272 …oder->private_->integer_signal[channel][0] = encoder->private_->integer_signal[channel][blocksize]; in FLAC__stream_encoder_process_interleaved()
2303 encoder->protected_->blocksize = 0; in set_defaults_()
2641 const unsigned blocksize = FLAC__stream_encoder_get_blocksize(encoder); in write_frame_() local
2643 const FLAC__uint64 frame_last_sample = frame_first_sample + (FLAC__uint64)blocksize - 1; in write_frame_()
2654 encoder->private_->seek_table->points[i].frame_samples = blocksize; in write_frame_()
3056 …e_->integer_signal, encoder->protected_->channels, encoder->protected_->blocksize, (encoder->prote… in process_frame_()
3092 if(!write_bitbuffer_(encoder, encoder->protected_->blocksize, is_last_block)) { in process_frame_()
3102 …rivate_->streaminfo.data.stream_info.total_samples += (FLAC__uint64)encoder->protected_->blocksize; in process_frame_()
3120 …n_order = FLAC__format_get_max_rice_partition_order_from_blocksize(encoder->protected_->blocksize); in process_subframes_()
3128 frame_header.blocksize = encoder->protected_->blocksize; in process_subframes_()
3167 …d w = get_wasted_bits_(encoder->private_->integer_signal[channel], encoder->protected_->blocksize); in process_subframes_()
3178 …_wasted_bits_(encoder->private_->integer_signal_mid_side[channel], encoder->protected_->blocksize); in process_subframes_()
3327 …if(!add_subframe_(encoder, frame_header.blocksize, left_bps , left_subframe , encoder->private_->f… in process_subframes_()
3329 …if(!add_subframe_(encoder, frame_header.blocksize, right_bps, right_subframe, encoder->private_->f… in process_subframes_()
3339 …if(!add_subframe_(encoder, frame_header.blocksize, encoder->private_->subframe_bps[channel], &enco… in process_subframes_()
3390 FLAC__ASSERT(frame_header->blocksize > 0); in process_subframe_()
3394 …if(encoder->private_->disable_verbatim_subframes && frame_header->blocksize >= FLAC__MAX_FIXED_ORD… in process_subframe_()
3397 …_best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subfram… in process_subframe_()
3399 if(frame_header->blocksize >= FLAC__MAX_FIXED_ORDER) { in process_subframe_()
3401 …if(subframe_bps + 4 + FLAC__bitmath_ilog2((frame_header->blocksize-FLAC__MAX_FIXED_ORDER)|1) <= 32) in process_subframe_()
3402 …pute_best_predictor(integer_signal+FLAC__MAX_FIXED_ORDER, frame_header->blocksize-FLAC__MAX_FIXED_… in process_subframe_()
3404 …best_predictor_wide(integer_signal+FLAC__MAX_FIXED_ORDER, frame_header->blocksize-FLAC__MAX_FIXED_… in process_subframe_()
3417 for(i = 1; i < frame_header->blocksize; i++) { in process_subframe_()
3425 …= evaluate_constant_subframe_(encoder, integer_signal[0], frame_header->blocksize, subframe_bps, s… in process_subframe_()
3441 if(max_fixed_order >= frame_header->blocksize) in process_subframe_()
3442 max_fixed_order = frame_header->blocksize - 1; in process_subframe_()
3467 frame_header->blocksize, in process_subframe_()
3489 if(encoder->protected_->max_lpc_order >= frame_header->blocksize) in process_subframe_()
3490 max_lpc_order = frame_header->blocksize-1; in process_subframe_()
3496 …signal, encoder->private_->window[a], encoder->private_->windowed_signal, frame_header->blocksize); in process_subframe_()
3497 …mpute_autocorrelation(encoder->private_->windowed_signal, frame_header->blocksize, max_lpc_order+1… in process_subframe_()
3509 frame_header->blocksize, in process_subframe_()
3518 if(max_lpc_order >= frame_header->blocksize) in process_subframe_()
3519 max_lpc_order = frame_header->blocksize - 1; in process_subframe_()
3521 …mpute_expected_bits_per_residual_sample(lpc_error[lpc_order-1], frame_header->blocksize-lpc_order); in process_subframe_()
3554 frame_header->blocksize, in process_subframe_()
3586 …_best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subfram… in process_subframe_()
3597 unsigned blocksize, in add_subframe_() argument
3611 …if(!FLAC__subframe_add_fixed(&(subframe->data.fixed), blocksize - subframe->data.fixed.order, subf… in add_subframe_()
3617 …if(!FLAC__subframe_add_lpc(&(subframe->data.lpc), blocksize - subframe->data.lpc.order, subframe_b… in add_subframe_()
3623 …if(!FLAC__subframe_add_verbatim(&(subframe->data.verbatim), blocksize, subframe_bps, subframe->was… in add_subframe_()
3639 unsigned blocksize, in spotcheck_subframe_estimate_() argument
3655 ret = add_subframe_(encoder, blocksize, subframe_bps, subframe, frame); in spotcheck_subframe_estimate_()
3669 unsigned blocksize, in evaluate_constant_subframe_() argument
3681 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_constant_subframe_()
3683 (void)encoder, (void)blocksize; in evaluate_constant_subframe_()
3695 unsigned blocksize, in evaluate_fixed_subframe_() argument
3709 const unsigned residual_samples = blocksize - order; in evaluate_fixed_subframe_()
3744 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_fixed_subframe_()
3758 unsigned blocksize, in evaluate_lpc_subframe_() argument
3775 const unsigned residual_samples = blocksize - order; in evaluate_lpc_subframe_()
3830 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_lpc_subframe_()
3840 unsigned blocksize, in evaluate_verbatim_subframe_() argument
3851 …YPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + (blocksize * subframe_bps); in evaluate_verbatim_subframe_()
3854 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate); in evaluate_verbatim_subframe_()
3882 const unsigned blocksize = residual_samples + predictor_order; in find_best_partition_order_() local
3884 …der_from_blocksize_limited_max_and_predictor_order(max_partition_order, blocksize, predictor_order… in find_best_partition_order_()
4027 const unsigned blocksize = residual_samples + predictor_order; in precompute_partition_info_escapes_() local
4035 const unsigned default_partition_samples = blocksize >> partition_order; in precompute_partition_info_escapes_()
4396 const unsigned blocksize = frame->header.blocksize; local
4397 const unsigned bytes_per_block = sizeof(FLAC__int32) * blocksize;
4406 for(i = 0; i < blocksize; i++) {
4414 FLAC__ASSERT(i < blocksize);
4417 …ate_->verify.error_stats.frame_number = (unsigned)(frame->header.number.sample_number / blocksize);
4427 encoder->private_->verify.input_fifo.tail -= blocksize;
4430 …o.data[channel][0], &encoder->private_->verify.input_fifo.data[channel][blocksize], encoder->priva…