Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:subframe

149 	FLAC__Subframe *subframe[2],
160 const FLAC__Subframe *subframe,
169 FLAC__Subframe *subframe
187 FLAC__Subframe *subframe,
209 FLAC__Subframe *subframe,
219 FLAC__Subframe *subframe
324 FLAC__int32 *residual_workspace[FLAC__MAX_CHANNELS][2]; /* each channel has a candidate and best workspace where the subframe residual signals will be stored */
336 unsigned best_subframe_bits[FLAC__MAX_CHANNELS]; /* size in bits of the best subframe for each channel */
3177 * Check for wasted bits; set effective bps for each subframe
3372 FLAC__Subframe *subframe[2],
3400 /* verbatim subframe is the baseline against which we measure other compressed subframes */
3405 _best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subframe_bps, subframe[_best_subframe]);
3410 /* check for constant subframe */
3430 _candidate_bits = evaluate_constant_subframe_(encoder, integer_signal[0], frame_header->blocksize, subframe_bps, subframe[!_best_subframe]);
3481 subframe[!_best_subframe],
3569 subframe[!_best_subframe],
3588 /* under rare circumstances this can happen when all but lpc subframe types are disabled: */
3591 _best_bits = evaluate_verbatim_subframe_(encoder, integer_signal, frame_header->blocksize, subframe_bps, subframe[_best_subframe]);
3604 const FLAC__Subframe *subframe,
3608 switch(subframe->type) {
3610 if(!FLAC__subframe_add_constant(&(subframe->data.constant), subframe_bps, subframe->wasted_bits, frame)) {
3616 if(!FLAC__subframe_add_fixed(&(subframe->data.fixed), blocksize - subframe->data.fixed.order, subframe_bps, subframe->wasted_bits, frame)) {
3622 if(!FLAC__subframe_add_lpc(&(subframe->data.lpc), blocksize - subframe->data.lpc.order, subframe_bps, subframe->wasted_bits, frame)) {
3628 if(!FLAC__subframe_add_verbatim(&(subframe->data.verbatim), blocksize, subframe_bps, subframe->wasted_bits, frame)) {
3646 const FLAC__Subframe *subframe,
3660 ret = add_subframe_(encoder, blocksize, subframe_bps, subframe, frame);
3665 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);
3676 FLAC__Subframe *subframe
3680 subframe->type = FLAC__SUBFRAME_TYPE_CONSTANT;
3681 subframe->data.constant.value = signal;
3683 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + subframe_bps;
3686 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);
3709 FLAC__Subframe *subframe,
3718 subframe->type = FLAC__SUBFRAME_TYPE_FIXED;
3720 subframe->data.fixed.entropy_coding_method.type = FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE;
3721 subframe->data.fixed.entropy_coding_method.data.partitioned_rice.contents = partitioned_rice_contents;
3722 subframe->data.fixed.residual = residual;
3739 &subframe->data.fixed.entropy_coding_method
3742 subframe->data.fixed.order = order;
3744 subframe->data.fixed.warmup[i] = signal[i];
3746 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + (order * subframe_bps) + residual_bits;
3749 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);
3773 FLAC__Subframe *subframe,
3791 return 0; /* this is a hack to indicate to the caller that we can't do lp at this order on this subframe */
3801 subframe->type = FLAC__SUBFRAME_TYPE_LPC;
3803 subframe->data.lpc.entropy_coding_method.type = FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE;
3804 subframe->data.lpc.entropy_coding_method.data.partitioned_rice.contents = partitioned_rice_contents;
3805 subframe->data.lpc.residual = residual;
3822 &subframe->data.lpc.entropy_coding_method
3825 subframe->data.lpc.order = order;
3826 subframe->data.lpc.qlp_coeff_precision = qlp_coeff_precision;
3827 subframe->data.lpc.quantization_level = quantization;
3828 memcpy(subframe->data.lpc.qlp_coeff, qlp_coeff, sizeof(FLAC__int32)*FLAC__MAX_LPC_ORDER);
3830 subframe->data.lpc.warmup[i] = signal[i];
3832 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;
3835 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);
3847 FLAC__Subframe *subframe
3852 subframe->type = FLAC__SUBFRAME_TYPE_VERBATIM;
3854 subframe->data.verbatim.data = signal;
3856 estimate = FLAC__SUBFRAME_ZERO_PAD_LEN + FLAC__SUBFRAME_TYPE_LEN + FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN + subframe->wasted_bits + (blocksize * subframe_bps);
3859 spotcheck_subframe_estimate_(encoder, blocksize, subframe_bps, subframe, estimate);