]> granicus.if.org Git - libvpx/commitdiff
Cosmetic change of update_encode_frame_result()
authorangiebird <angiebird@google.com>
Fri, 13 Dec 2019 00:14:05 +0000 (16:14 -0800)
committerangiebird <angiebird@google.com>
Fri, 13 Dec 2019 19:15:12 +0000 (11:15 -0800)
Move output parameter to the end.

Change-Id: I579a118768d29cb1ae2e3c8995a952ef11cfeb8d

vp9/encoder/vp9_encoder.c

index d532acb1efbff9002eeaeea50b8f4fed5f72f583..cfd82d3e646954f69012264782091986b295bfb5 100644 (file)
@@ -7100,13 +7100,12 @@ static void init_encode_frame_result(ENCODE_FRAME_RESULT *encode_frame_result) {
 }
 
 #if !CONFIG_REALTIME_ONLY
-static void update_encode_frame_result(ENCODE_FRAME_RESULT *encode_frame_result,
-                                       int show_idx,
-                                       FRAME_UPDATE_TYPE update_type,
-                                       const YV12_BUFFER_CONFIG *source_frame,
-                                       const YV12_BUFFER_CONFIG *coded_frame,
-                                       int quantize_index, uint32_t bit_depth,
-                                       uint32_t input_bit_depth) {
+static void update_encode_frame_result(
+    int show_idx, FRAME_UPDATE_TYPE update_type,
+    const YV12_BUFFER_CONFIG *source_frame,
+    const YV12_BUFFER_CONFIG *coded_frame, int quantize_index,
+    uint32_t bit_depth, uint32_t input_bit_depth,
+    ENCODE_FRAME_RESULT *encode_frame_result) {
 #if CONFIG_RATE_CTRL
   PSNR_STATS psnr;
 #if CONFIG_VP9_HIGHBITDEPTH
@@ -7422,10 +7421,10 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
     // TODO(angiebird): Improve the codebase to make the update of frame
     // dependent variables more robust.
     update_encode_frame_result(
-        encode_frame_result, source->show_idx,
+        source->show_idx,
         cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index],
         cpi->Source, get_frame_new_buffer(cm), vp9_get_quantizer(cpi),
-        cpi->oxcf.input_bit_depth, cm->bit_depth);
+        cpi->oxcf.input_bit_depth, cm->bit_depth, encode_frame_result);
     vp9_twopass_postencode_update(cpi);
   } else if (cpi->use_svc) {
     SvcEncode(cpi, size, dest, frame_flags);