Skip to content

media: platform: mtk-mdp3: implement enum_framesizes with platform data

  • remove hardcoded image width/height
  • return continuous stepwise with platform def_limit data

Signed-off-by: Macross Chen macross.chen@mediatek.com

Test: To reproduce it with playing a 64x64 H264 video file (Big-Buck-Bunny-64x64-h264.mp4):

gst-launch-1.0 -v filesrc location=/data/Big-Buck-Bunny-64x64-h264.mp4 ! parsebin ! v4l2h264dec ! v4l2convert output-io-mode=dmabuf-import capture-io-mode=dmabuf ! waylandsink

The MDP3 must support 64x64 in the enum_framesizes() result to play this file normally.

Edited by Alexandre Mergnat

Merge request reports

Loading