History

Cosmetic change of update_encode_frame_result()

Move output parameter to the end.

angiebird committed 6 years ago

Commit 01347cd1 parent bfa9d011 file · +8 −9Browse files

Unified · Split

vp9/encoder/vp9_encoder.c+8−9
@@ -7100,13 +7100,12 @@ static void init_encode_frame_result(ENCODE_FRAME_RESULT *encode_frame_result) { · 7099 unmodified lines
71007100 }
71017101
71027102 #if !CONFIG_REALTIME_ONLY
7103−static void update_encode_frame_result(ENCODE_FRAME_RESULT *encode_frame_result,
7104− int show_idx,
7105− FRAME_UPDATE_TYPE update_type,
7106− const YV12_BUFFER_CONFIG *source_frame,
7107− const YV12_BUFFER_CONFIG *coded_frame,
7108− int quantize_index, uint32_t bit_depth,
7109− uint32_t input_bit_depth) {
7103+static void update_encode_frame_result(
7104+ int show_idx, FRAME_UPDATE_TYPE update_type,
7105+ const YV12_BUFFER_CONFIG *source_frame,
7106+ const YV12_BUFFER_CONFIG *coded_frame, int quantize_index,
7107+ uint32_t bit_depth, uint32_t input_bit_depth,
7108+ ENCODE_FRAME_RESULT *encode_frame_result) {
71107109 #if CONFIG_RATE_CTRL
71117110 PSNR_STATS psnr;
71127111 #if CONFIG_VP9_HIGHBITDEPTH
@@ -7422,10 +7421,10 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags, · 309 unmodified lines
74227421 // TODO(angiebird): Improve the codebase to make the update of frame
74237422 // dependent variables more robust.
74247423 update_encode_frame_result(
7425− encode_frame_result, source->show_idx,
7424+ source->show_idx,
74267425 cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index],
74277426 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);
74297428 vp9_twopass_postencode_update(cpi);
74307429 } else if (cpi->use_svc) {
74317430 SvcEncode(cpi, size, dest, frame_flags);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t