Re: [PATCH v4 14/17] media: mtk-vcodec: venc: use platform data for ENUM_FRAMESIZES

2020-08-24 Thread Tiffany Lin
On Fri, 2020-08-21 at 19:36 +0900, Alexandre Courbot wrote: > vidioc_enum_framesizes() assumes that all encoders support H.264 and VP8, > which is not necessarily true and requires to duplicate information about > the supported codecs which is already stored in the platform data. > > Fix this by r

[PATCH v4 14/17] media: mtk-vcodec: venc: use platform data for ENUM_FRAMESIZES

2020-08-21 Thread Alexandre Courbot
vidioc_enum_framesizes() assumes that all encoders support H.264 and VP8, which is not necessarily true and requires to duplicate information about the supported codecs which is already stored in the platform data. Fix this by referring to the platform data to find out whether a given format is su