hi,

i havent tried per fb or video device level., but should be possible..

can you check with local alpha flags, local to framebuffer and overlay devices?
V4L2_FBUF_FLAG_LOCAL_ALPHA, V4L2_FBUF_FLAG_LOCAL_INV_ALPHA


On Mon, May 10, 2010 at 12:37 PM, Svetozar Miuchin
<[email protected]> wrote:
> Yes, but what I need to do is make all of the Android's surfaces
> beneath (and including) the video surface transparent, but leave the
> global alpha as is for the possible player's media controls. Any
> ideas?
>
> On May 6, 5:20 pm, Deva R <[email protected]> wrote:
>> you can chose the transparency level by tuning alpha blend..
>>
>> on enabling global alpha blending, the final ouptput pixel will be arrived 
>> as,
>>     output = (framebuffer pixel * alpha + video pixel * (255 - alpha)) / 255
>>
>> you need to set this alpha field with below ioctl commands..
>>
>>         ret = v4l2_ioctl(fd, VIDIOC_G_FMT, &fmt);
>>         fmt.fmt.win.global_alpha = alpha & 0xFF;
>>         ret = v4l2_overlay_ioctl(fd, VIDIOC_S_FMT, &fmt);
>>
>> you can check complete source in our tree 
>> -http://git.omapzoom.org/?p=platform/hardware/ti/omap3.git;a=blob;f=li...
>>
>> On Thu, May 6, 2010 at 7:55 PM, Svetozar Miuchin
>>
>>
>>
>> <[email protected]> wrote:
>> > You mean setting the global alpha to fully transparent? If so, I've
>> > thought about that, but that destroys the possibility of having on-
>> > screen media controls.. Right?
>>
>> > On May 6, 4:18 pm, Deva R <[email protected]> wrote:
>> >> You can enable alpha blending in your display driver, so both graphics
>> >> and video overlay blend..
>>
>> >> my call sequence for this are like (get fb handle, toggle alpha
>> >> blending, set the fb options)
>>
>> >>         v4l2_ioctl(fd, VIDIOC_G_FBUF, &fbuf);
>> >>         fbuf.flags |= V4L2_FBUF_FLAG_GLOBAL_ALPHA;
>> >>         v4l2_ioctl(fd, VIDIOC_S_FBUF, &fbuf);
>>
>> >> more info:http://v4l2spec.bytesex.org/spec/r10595.htm-> framebuffer flags 
>> >> ->
>> >> V4L2_FBUF_FLAG_GLOBAL_ALPHA
>>
>> >> On Thu, May 6, 2010 at 7:20 PM, Svetozar Miuchin
>>
>> >> <[email protected]> wrote:
>> >> > Hi,
>> >> > I'm porting Android to a board with hardware video decoding support.
>> >> > The board hardware draws the video into a video layer beneath the
>> >> > graphic layer. I've implemented a custom media player that passes the
>> >> > calls to the hardware decoders, but I need to make Android's surfaces
>> >> > transparent. Is there any way this is possible with the current
>> >> > Android architecture? I'm using the Eclair version for MIPS
>> >> > architectures.
>> >> > Thanks in advance,
>> >> >  Svetozar
>>
>> >> > --
>> >> > unsubscribe: [email protected]
>> >> > website:http://groups.google.com/group/android-porting
>>
>> >> --
>> >> unsubscribe: [email protected]
>> >> website:http://groups.google.com/group/android-porting
>>
>> > --
>> > unsubscribe: [email protected]
>> > website:http://groups.google.com/group/android-porting
>>
>> --
>> unsubscribe: [email protected]
>> website:http://groups.google.com/group/android-porting
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to