GNOME Bugzilla – Bug 796749
omxvideoenc: include vertical padding in nFilledLen when copying
Last modified: 2018-07-13 12:51:53 UTC
.
Created attachment 372951 [details] [review] omxvideoenc: include vertical padding in nFilledLen when copying According to the OMX spec (3.1.3.7.1) nFilledLen is meant to include any padding. We use to include the horizontal one (stride) but not the vertical one if nSliceHeight is bigger than the actual height. The calculated nFilledLen was wrong as it didn't include the padding between planes.
Tested on zynq and rpi. On the rpi, a 1920x1080 stream has 1088 as nSliceHeight. The pi OMX is happy with either nFilledLen containing the padding or not (tested with both NV12 and I420).
Review of attachment 372951 [details] [review]: .
Attachment 372951 [details] pushed as 1e9d7a6 - omxvideoenc: include vertical padding in nFilledLen when copying
re-opening as I found a bug in my patch.
Created attachment 373006 [details] [review] omxvideoenc: fix vertical padding in NV16 formats My previous patch to calculate the vertical padding was always halfing the height of the chroma plane which is incorrect for NV16 formats.
Created attachment 373047 [details] [review] omxvideoenc: fix vertical padding in NV16 formats My previous patch to calculate the vertical padding was always halfing the height of the chroma plane which is incorrect for NV16 formats.
Review of attachment 373047 [details] [review]: Looks good.
Attachment 373047 [details] pushed as a863893 - omxvideoenc: fix vertical padding in NV16 formats