ref: 67b1d7f1740158e795a26a722491424e6257c0dc
parent: 8ed23d5f7fd1a003ecd1eb543f3a662772306155
author: Angie Chiang <angiebird@google.com>
date: Thu Dec 17 12:32:26 EST 2020
Correct pixel_count in encode_frame_result Change-Id: I3270af4f793f8e453e10d1caf8ffa1a8d5d584a7
--- a/vp9/encoder/vp9_ext_ratectrl.c
+++ b/vp9/encoder/vp9_ext_ratectrl.c
@@ -134,8 +134,8 @@
vpx_rc_encodeframe_result_t encode_frame_result;
encode_frame_result.bit_count = bit_count;
encode_frame_result.pixel_count =
- source_frame->y_width * source_frame->y_height +
- 2 * source_frame->uv_width * source_frame->uv_height;
+ source_frame->y_crop_width * source_frame->y_crop_height +
+ 2 * source_frame->uv_crop_width * source_frame->uv_crop_height;
#if CONFIG_VP9_HIGHBITDEPTH
vpx_calc_highbd_psnr(source_frame, coded_frame, &psnr, bit_depth,
input_bit_depth);