Lines Matching refs:subframe
169 FLAC__Subframe *subframe[2],
180 const FLAC__Subframe *subframe,
189 FLAC__Subframe *subframe
207 FLAC__Subframe *subframe,
229 FLAC__Subframe *subframe,
239 FLAC__Subframe *subframe
344 FLAC__int32 *residual_workspace[FLAC__MAX_CHANNELS][2]; /* each channel has a candidate and best workspace where the subframe residual signals will be stored */
356 unsigned best_subframe_bits[FLAC__MAX_CHANNELS]; /* size in bits of the best subframe for each channel */
2985 * Check for wasted bits; set effective bps for each subframe
3180 FLAC__Subframe *subframe[2],
3208 /* verbatim subframe is the baseline against which we measure other compressed subframes */
3213 _best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subframe_bps, subframe[_best_subframe]);
3218 /* check for constant subframe */
3238 _candidate_bits = evaluate_constant_subframe_(encoder, integer_signal[0], frame_header->blocksize, subframe_bps, subframe[!_best_subframe]);
3289 subframe[!_best_subframe],
3377 subframe[!_best_subframe],
3396 /* under rare circumstances this can happen when all but lpc subframe types are disabled: */
3399 _best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subframe_bps, subframe[_best_subframe]);
3412 const FLAC__Subframe *subframe,
3416 switch(subframe->type) {
3418 if(!FLAC__subframe_add_constant(&(subframe->data.constant), subframe_bps, subframe->wasted_bits, frame)) {
3424 if(!FLAC__subframe_add_fixed(&(subframe->data.fixed), blocksize - subframe->data.fixed.order, subframe_bps, subframe->wasted_bits, frame)) {
3430 if(!FLAC__subframe_add_lpc(&(subframe->data.lpc), blocksize - subframe->data.lpc.order, subframe_bps, subframe->wasted_bits, frame)) {
3436 if(!FLAC__subframe_add_verbatim(&(subframe->data.verbatim), blocksize, subframe_bps, subframe->wasted_bits, frame)) {
3454 const FLAC__Subframe *subframe,
3468 ret = add_subframe_(encoder, blocksize, subframe_bps, subframe, frame);
3473 fprintf(stderr, "EST: bad, frame#%u sub#%%d type=%8s est=%u, actual=%u, delta=%d\n", encoder->private_->current_frame_number, FLAC__SubframeTypeString[subframe->type], estimate, actual, (int)actual-(int)estimate);
3484 FLAC__Subframe *subframe
3488 subframe->type = FLAC__SUBFRAME_TYPE_CONSTANT;
3489 subframe->data.constant.value = signal;
3491 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + subframe_bps;
3494 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);
3517 FLAC__Subframe *subframe,
3526 subframe->type = FLAC__SUBFRAME_TYPE_FIXED;
3528 subframe->data.fixed.entropy_coding_method.type = FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE;
3529 subframe->data.fixed.entropy_coding_method.data.partitioned_rice.contents = partitioned_rice_contents;
3530 subframe->data.fixed.residual = residual;
3547 &subframe->data.fixed.entropy_coding_method
3550 subframe->data.fixed.order = order;
3552 subframe->data.fixed.warmup[i] = signal[i];
3554 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + (order * subframe_bps) + residual_bits;
3557 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);
3581 FLAC__Subframe *subframe,
3599 return 0; /* this is a hack to indicate to the caller that we can't do lp at this order on this subframe */
3609 subframe->type = FLAC__SUBFRAME_TYPE_LPC;
3611 subframe->data.lpc.entropy_coding_method.type = FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE;
3612 subframe
3613 subframe->data.lpc.residual = residual;
3630 &subframe->data.lpc.entropy_coding_method
3633 subframe->data.lpc.order = order;
3634 subframe->data.lpc.qlp_coeff_precision = qlp_coeff_precision;
3635 subframe->data.lpc.quantization_level = quantization;
3636 memcpy(subframe->data.lpc.qlp_coeff, qlp_coeff, sizeof(FLAC__int32)*FLAC__MAX_LPC_ORDER);
3638 subframe->data.lpc.warmup[i] = signal[i];
3640 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN + FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN + (order * (qlp_coeff_precision + subframe_bps)) + residual_bits;
3643 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);
3655 FLAC__Subframe *subframe
3660 subframe->type = FLAC__SUBFRAME_TYPE_VERBATIM;
3662 subframe->data.verbatim.data = signal;
3664 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + (blocksize * subframe_bps);
3667 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);