Am Montag, den 16.06.2014, 10:08 +0200 schrieb Hans Verkuil: > On 06/13/2014 06:08 PM, Philipp Zabel wrote: > > This patch adds support for the VIDIOC_ENUM_FRAMESIZES ioctl. > > When decoding H.264, the output frame size is rounded up to the > > next multiple of the macroblock size (16 pixels). > > Why do you need this? Implementing VIDIOC_ENUM_FRAMESIZES for a m2m device > seems odd.
As soon as the OUTPUT side starts streaming, the possible buffer dimensions on the CAPTURE side are fixed, but not necessarily the same as on the OUTPUT side. Since GStreamer checks ENUM_FRAMESIZES before trying to find the possible min/max dimensions via TRY_FMT, I just implemented that. Right now I could (and probably should) also implement this using just TRY_FMT, but the JPEG decoder will also support decoding to half, 1/4 and 1/8 size, and I'd like to report that to userspace. I'll postpone this patch for now. regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html