PD#OPS-1192
Problem:
In the dec_slt test, since max_pic_h and max_pic_w were not
configured via config at the upper level, the decoding driver
allocated memory according to the maximum resolution supported
by the chip, this will cause the codec_mm to be insufficient
and lead the test to fail.
Solution:
max_pic_h and max_pic_w are configured via the upper sys_info.
Verify:
AC214
Change-Id: Ib2006c51ecef3d98ebd6cce89610f636c60c60ed
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
} else
#endif
{
+ if (pdata->sys_info) {
+ pbi->vvp9_amstream_dec_info = *pdata->sys_info;
+ if ((pbi->vvp9_amstream_dec_info.width != 0) &&
+ (pbi->vvp9_amstream_dec_info.height != 0)) {
+ pbi->max_pic_w = pbi->vvp9_amstream_dec_info.width;
+ pbi->max_pic_h = pbi->vvp9_amstream_dec_info.height;
+ }
+ }
/*pbi->vvp9_amstream_dec_info.width = 0;
pbi->vvp9_amstream_dec_info.height = 0;
pbi->vvp9_amstream_dec_info.rate = 30;*/