Thanks for interesting. Ok, I will submit it using VIDIOC_S_CTRL. Best regards, > -----Original Message----- > From: Hans Verkuil [mailto:hverkuil@xxxxxxxxx] > Sent: Monday, January 17, 2011 3:52 PM > To: Jonghun Han > Cc: linux-media@xxxxxxxxxxxxxxx; pawel@xxxxxxxxxx; 'Marek Szyprowski' > Subject: Re: How to set global alpha to V4L2_BUF_TYPE_CAPTURE ? > > On Monday, January 17, 2011 04:44:54 Jonghun Han wrote: > > > > Hello, > > > > How to set global alpha to V4L2_BUF_TYPE_CAPTURE ? > > > > Samsung SoC S5PC210 has Camera interface and Video post processor > > named FIMC which can set the alpha value to V4L2_BUF_TYPE_CAPTURE. > > For example during color space conversion from YUV422 to ARGB8888, > > FIMC can set the alpha value to V4L2_BUF_TYPE_CAPTURE. > > > > I tried to find an available command to set it but I couldn't found it. > > That's right, there isn't. > > > But there is fmt.win.global_alpha for Video Overlay Interface. > > So in my opinion VIDIOC_S_FMT is also suitable for > V4L2_BUF_TYPE_CAPTURE*. > > How about using fmt.pix.priv in struct v4l2_format and > > fmt.pix_mp.reserved[0] in struct v4l2_format ? > > Not a good idea. This is really ideal for a control. We already have a somewhat > similar control in the form of V4L2_CID_BG_COLOR. It's perfectly reasonable to > add a V4L2_CID_ALPHA_COLOR (or something similar) where you set this up. > > The little available space in the format structs is too precious to use for something > trivial like this :-) > > Regards, > > Hans > > -- > Hans Verkuil - video4linux developer - sponsored by Cisco -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html