You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/mlpenc: fix indentation
This commit is contained in:
@@ -130,7 +130,7 @@ typedef struct MLPEncodeContext {
|
|||||||
int32_t *write_buffer; ///< Pointer to data currently being written to bitstream.
|
int32_t *write_buffer; ///< Pointer to data currently being written to bitstream.
|
||||||
int32_t *sample_buffer; ///< Pointer to current access unit samples.
|
int32_t *sample_buffer; ///< Pointer to current access unit samples.
|
||||||
int32_t *major_scratch_buffer; ///< Scratch buffer big enough to fit all data for one entire major frame interval.
|
int32_t *major_scratch_buffer; ///< Scratch buffer big enough to fit all data for one entire major frame interval.
|
||||||
int32_t last_frames; ///< Signal last frames.
|
int32_t last_frames; ///< Signal last frames.
|
||||||
|
|
||||||
int32_t *lpc_sample_buffer;
|
int32_t *lpc_sample_buffer;
|
||||||
|
|
||||||
@@ -1509,28 +1509,28 @@ static void lossless_matrix_coeffs(MLPEncodeContext *ctx)
|
|||||||
|
|
||||||
mode = estimate_stereo_mode(ctx);
|
mode = estimate_stereo_mode(ctx);
|
||||||
|
|
||||||
switch(mode) {
|
switch (mode) {
|
||||||
/* TODO: add matrix for MID_SIDE */
|
/* TODO: add matrix for MID_SIDE */
|
||||||
case MLP_CHMODE_MID_SIDE:
|
case MLP_CHMODE_MID_SIDE:
|
||||||
case MLP_CHMODE_LEFT_RIGHT:
|
case MLP_CHMODE_LEFT_RIGHT:
|
||||||
mp->count = 0;
|
mp->count = 0;
|
||||||
break;
|
break;
|
||||||
case MLP_CHMODE_LEFT_SIDE:
|
case MLP_CHMODE_LEFT_SIDE:
|
||||||
mp->count = 1;
|
mp->count = 1;
|
||||||
mp->outch[0] = 1;
|
mp->outch[0] = 1;
|
||||||
mp->coeff[0][0] = 1 << 14; mp->coeff[0][1] = -(1 << 14);
|
mp->coeff[0][0] = 1 << 14; mp->coeff[0][1] = -(1 << 14);
|
||||||
mp->coeff[0][2] = 0 << 14; mp->coeff[0][2] = 0 << 14;
|
mp->coeff[0][2] = 0 << 14; mp->coeff[0][2] = 0 << 14;
|
||||||
mp->forco[0][0] = 1 << 14; mp->forco[0][1] = -(1 << 14);
|
mp->forco[0][0] = 1 << 14; mp->forco[0][1] = -(1 << 14);
|
||||||
mp->forco[0][2] = 0 << 14; mp->forco[0][2] = 0 << 14;
|
mp->forco[0][2] = 0 << 14; mp->forco[0][2] = 0 << 14;
|
||||||
break;
|
break;
|
||||||
case MLP_CHMODE_RIGHT_SIDE:
|
case MLP_CHMODE_RIGHT_SIDE:
|
||||||
mp->count = 1;
|
mp->count = 1;
|
||||||
mp->outch[0] = 0;
|
mp->outch[0] = 0;
|
||||||
mp->coeff[0][0] = 1 << 14; mp->coeff[0][1] = 1 << 14;
|
mp->coeff[0][0] = 1 << 14; mp->coeff[0][1] = 1 << 14;
|
||||||
mp->coeff[0][2] = 0 << 14; mp->coeff[0][2] = 0 << 14;
|
mp->coeff[0][2] = 0 << 14; mp->coeff[0][2] = 0 << 14;
|
||||||
mp->forco[0][0] = 1 << 14; mp->forco[0][1] = -(1 << 14);
|
mp->forco[0][0] = 1 << 14; mp->forco[0][1] = -(1 << 14);
|
||||||
mp->forco[0][2] = 0 << 14; mp->forco[0][2] = 0 << 14;
|
mp->forco[0][2] = 0 << 14; mp->forco[0][2] = 0 << 14;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (mat = 0; mat < mp->count; mat++)
|
for (mat = 0; mat < mp->count; mat++)
|
||||||
@@ -2091,13 +2091,13 @@ static void set_major_params(MLPEncodeContext *ctx)
|
|||||||
ctx->prev_channel_params = restart_channel_params;
|
ctx->prev_channel_params = restart_channel_params;
|
||||||
|
|
||||||
for (index = 0; index < MAJOR_HEADER_INTERVAL + 1; index++) {
|
for (index = 0; index < MAJOR_HEADER_INTERVAL + 1; index++) {
|
||||||
ctx->cur_decoding_params = &ctx->major_decoding_params[index][substr];
|
ctx->cur_decoding_params = &ctx->major_decoding_params[index][substr];
|
||||||
ctx->cur_channel_params = ctx->major_channel_params[index];
|
ctx->cur_channel_params = ctx->major_channel_params[index];
|
||||||
|
|
||||||
ctx->major_params_changed[index][substr] = compare_decoding_params(ctx);
|
ctx->major_params_changed[index][substr] = compare_decoding_params(ctx);
|
||||||
|
|
||||||
ctx->prev_decoding_params = ctx->cur_decoding_params;
|
ctx->prev_decoding_params = ctx->cur_decoding_params;
|
||||||
ctx->prev_channel_params = ctx->cur_channel_params;
|
ctx->prev_channel_params = ctx->cur_channel_params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2114,7 +2114,6 @@ static void analyze_sample_buffer(MLPEncodeContext *ctx)
|
|||||||
unsigned int substr;
|
unsigned int substr;
|
||||||
|
|
||||||
for (substr = 0; substr < ctx->num_substreams; substr++) {
|
for (substr = 0; substr < ctx->num_substreams; substr++) {
|
||||||
|
|
||||||
ctx->cur_restart_header = &ctx->restart_header[substr];
|
ctx->cur_restart_header = &ctx->restart_header[substr];
|
||||||
ctx->cur_decoding_params = seq_dp + 1*(ctx->num_substreams) + substr;
|
ctx->cur_decoding_params = seq_dp + 1*(ctx->num_substreams) + substr;
|
||||||
ctx->cur_channel_params = seq_cp + 1*(ctx->avctx->channels);
|
ctx->cur_channel_params = seq_cp + 1*(ctx->avctx->channels);
|
||||||
|
Reference in New Issue
Block a user