mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 22:01:00 +00:00
cosmetics: indentation
Originally committed as revision 24609 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6d263f41ae
commit
724f34716b
@ -1114,36 +1114,36 @@ static void output_subframe(FlacEncodeContext *s, FlacSubframe *sub)
|
|||||||
while (res < frame_end)
|
while (res < frame_end)
|
||||||
put_sbits(&s->pb, sub->obits, *res++);
|
put_sbits(&s->pb, sub->obits, *res++);
|
||||||
} else {
|
} else {
|
||||||
/* warm-up samples */
|
/* warm-up samples */
|
||||||
for (i = 0; i < sub->order; i++)
|
|
||||||
put_sbits(&s->pb, sub->obits, *res++);
|
|
||||||
|
|
||||||
/* LPC coefficients */
|
|
||||||
if (sub->type == FLAC_SUBFRAME_LPC) {
|
|
||||||
int cbits = s->options.lpc_coeff_precision;
|
|
||||||
put_bits( &s->pb, 4, cbits-1);
|
|
||||||
put_sbits(&s->pb, 5, sub->shift);
|
|
||||||
for (i = 0; i < sub->order; i++)
|
for (i = 0; i < sub->order; i++)
|
||||||
put_sbits(&s->pb, cbits, sub->coefs[i]);
|
put_sbits(&s->pb, sub->obits, *res++);
|
||||||
}
|
|
||||||
|
|
||||||
/* rice-encoded block */
|
/* LPC coefficients */
|
||||||
put_bits(&s->pb, 2, 0);
|
if (sub->type == FLAC_SUBFRAME_LPC) {
|
||||||
|
int cbits = s->options.lpc_coeff_precision;
|
||||||
|
put_bits( &s->pb, 4, cbits-1);
|
||||||
|
put_sbits(&s->pb, 5, sub->shift);
|
||||||
|
for (i = 0; i < sub->order; i++)
|
||||||
|
put_sbits(&s->pb, cbits, sub->coefs[i]);
|
||||||
|
}
|
||||||
|
|
||||||
/* partition order */
|
/* rice-encoded block */
|
||||||
porder = sub->rc.porder;
|
put_bits(&s->pb, 2, 0);
|
||||||
psize = s->frame.blocksize >> porder;
|
|
||||||
put_bits(&s->pb, 4, porder);
|
|
||||||
|
|
||||||
/* residual */
|
/* partition order */
|
||||||
part_end = &sub->residual[psize ];
|
porder = sub->rc.porder;
|
||||||
for (p = 0; p < 1 << porder; p++) {
|
psize = s->frame.blocksize >> porder;
|
||||||
int k = sub->rc.params[p];
|
put_bits(&s->pb, 4, porder);
|
||||||
put_bits(&s->pb, 4, k);
|
|
||||||
while (res < part_end)
|
/* residual */
|
||||||
set_sr_golomb_flac(&s->pb, *res++, k, INT32_MAX, 0);
|
part_end = &sub->residual[psize];
|
||||||
part_end = FFMIN(frame_end, part_end + psize);
|
for (p = 0; p < 1 << porder; p++) {
|
||||||
}
|
int k = sub->rc.params[p];
|
||||||
|
put_bits(&s->pb, 4, k);
|
||||||
|
while (res < part_end)
|
||||||
|
set_sr_golomb_flac(&s->pb, *res++, k, INT32_MAX, 0);
|
||||||
|
part_end = FFMIN(frame_end, part_end + psize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user