Skip to content
Snippets Groups Projects
Commit 2396497b authored by Wu-Cheng Li's avatar Wu-Cheng Li Committed by ChromeOS Commit Bot
Browse files

Rockchip: accept odd height of visible size.

WebRTC sends resolution like 240x135 when the network is bad.
The hardware can accept odd height, so remove the alignment check.

BUG=chrome-os-partner:38368
TEST=Run VEA test with 240x135 video. Run apprtc loopback.
http://apprtc.appspot.com/?debug=loopback&video=minWidth=240,
maxWidth=240,minHeight=135,maxHeight=135

Change-Id: I771961f8c405ce919d17fdd111bbcd632e51e6bc
Reviewed-on: https://chromium-review.googlesource.com/262543


Reviewed-by: default avatarPawel Osciak <posciak@chromium.org>
Tested-by: default avatarWu-cheng Li <wuchengli@chromium.org>
Commit-Queue: Wu-cheng Li <wuchengli@chromium.org>
Trybot-Ready: Wu-cheng Li <wuchengli@chromium.org>
parent f6e383a6
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,6 @@ int32_t VP8_EncAsicMemAlloc_V2(asicData_s* asic, uint32_t width, uint32_t height
ASSERT(asic != NULL);
ASSERT(width != 0);
ASSERT(height != 0);
ASSERT((height % 2) == 0);
ASSERT((width % 4) == 0);
regs = &asic->regs;
......
......@@ -51,9 +51,9 @@ bool_e VP8CheckCfg(const VP8EncConfig* pEncCfg) {
pEncCfg->width > VP8ENC_MAX_ENC_WIDTH || (pEncCfg->width & 0x3) != 0)
return ENCHW_NOK;
/* Encoded image height limits, multiple of 2 */
/* Encoded image height limits */
if (pEncCfg->height < VP8ENC_MIN_ENC_HEIGHT ||
pEncCfg->height > VP8ENC_MAX_ENC_HEIGHT || (pEncCfg->height & 0x1) != 0)
pEncCfg->height > VP8ENC_MAX_ENC_HEIGHT)
return ENCHW_NOK;
/* total macroblocks per picture limit */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment