radeon/vce:Add support for frame_cropping_flag of VAEncSequenceParameterBufferH264
authorsuresh guttula <suresh.guttula@amd.com>
Thu, 11 Apr 2019 04:49:33 +0000 (10:19 +0530)
committerLeo Liu <leo.liu@amd.com>
Tue, 16 Apr 2019 14:15:09 +0000 (10:15 -0400)
commit05cc018ae6f91ccdb96bc0badcbb25124ee2275e
tree7700dcc4db5a9b9f2cc43135db42980783bc73c9
parent8becf5b46d3a97bafcc6df602d3a17069967ae9d
radeon/vce:Add support for frame_cropping_flag of VAEncSequenceParameterBufferH264

This patch will add support for frame_cropping when the input size is not
matched with aligned size. Currently vaapi driver ignores frame cropping
values provided by client. This change will update SPS nalu with proper
cropping values.

v2: Moving default crop setting to else when enc_frame_cropping_flag is not set.

Signed-off-by: Satyajit Sahu <satyajit.sahu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/drivers/radeon/radeon_vce_52.c