Hi all,
I am still in the process of porting a driver to v4l2 framework. This
device is capable of decoding MPEG-1 and MPEG-2 streams.
See http://dxr3.sourceforge.net/about.html for more details.
So I have programmed this:
static int vidioc_enum_fmt_vid_out(struct file *file, void *fh,
struct v4l2_fmtdesc *fmt)
{
if (fmt->index > 0)
return -EINVAL;
fmt->flags = V4L2_FMT_FLAG_COMPRESSED;
fmt->pixelformat = V4L2_PIX_FMT_MPEG;
strlcpy(fmt->description, "MPEG 1/2", sizeof(fmt->description));
return 0;
}
There is nothing in struct v4l2_format which indicates MPEG1, MPEG2 or
MPEG4. As a result
of this, it is not possible to return -EINVAL if somebody wants to
decode/playback MPEG4 content.
Any ideas how to achieve it?
Thanks
--
Christian Gmeiner, MSc
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html