Move output parameter to the end.
Unified · Split
| @@ -7100,13 +7100,12 @@ static void init_encode_frame_result(ENCODE_FRAME_RESULT *encode_frame_result) { · 7099 unmodified lines | |||
| 7100 | } | 7100 | } |
| 7101 | 7101 | ||
| 7102 | #if !CONFIG_REALTIME_ONLY | 7102 | #if !CONFIG_REALTIME_ONLY |
| 7103 | static void update_encode_frame_result(ENCODE_FRAME_RESULT *encode_frame_result, | 7103 | static void update_encode_frame_result( |
| 7104 | int show_idx, | 7104 | int show_idx, FRAME_UPDATE_TYPE update_type, |
| 7105 | FRAME_UPDATE_TYPE update_type, | 7105 | const YV12_BUFFER_CONFIG *source_frame, |
| 7106 | const YV12_BUFFER_CONFIG *source_frame, | 7106 | const YV12_BUFFER_CONFIG *coded_frame, int quantize_index, |
| 7107 | const YV12_BUFFER_CONFIG *coded_frame, | 7107 | uint32_t bit_depth, uint32_t input_bit_depth, |
| 7108 | int quantize_index, uint32_t bit_depth, | 7108 | ENCODE_FRAME_RESULT *encode_frame_result) { |
| 7109 | uint32_t input_bit_depth) { | ||
| 7110 | #if CONFIG_RATE_CTRL | 7109 | #if CONFIG_RATE_CTRL |
| 7111 | PSNR_STATS psnr; | 7110 | PSNR_STATS psnr; |
| 7112 | #if CONFIG_VP9_HIGHBITDEPTH | 7111 | #if CONFIG_VP9_HIGHBITDEPTH |
| @@ -7422,10 +7421,10 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags, · 309 unmodified lines | |||
| 7422 | // TODO(angiebird): Improve the codebase to make the update of frame | 7421 | // TODO(angiebird): Improve the codebase to make the update of frame |
| 7423 | // dependent variables more robust. | 7422 | // dependent variables more robust. |
| 7424 | update_encode_frame_result( | 7423 | update_encode_frame_result( |
| 7425 | encode_frame_result, source->show_idx, | 7424 | source->show_idx, |
| 7426 | cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index], | 7425 | cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index], |
| 7427 | cpi->Source, get_frame_new_buffer(cm), vp9_get_quantizer(cpi), | 7426 | cpi->Source, get_frame_new_buffer(cm), vp9_get_quantizer(cpi), |
| 7428 | cpi->oxcf.input_bit_depth, cm->bit_depth); | 7427 | cpi->oxcf.input_bit_depth, cm->bit_depth, encode_frame_result); |
| 7429 | vp9_twopass_postencode_update(cpi); | 7428 | vp9_twopass_postencode_update(cpi); |
| 7430 | } else if (cpi->use_svc) { | 7429 | } else if (cpi->use_svc) { |
| 7431 | SvcEncode(cpi, size, dest, frame_flags); | 7430 | SvcEncode(cpi, size, dest, frame_flags); |