Bug 84478

Summary: Add support for YUY2 in XV GLAMOR Textured Video
Product: xorg Reporter: higuita
Component: Server/Acceleration/glamorAssignee: Xorg Project Team <xorg-team>
Status: CLOSED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: enhancement    
Priority: medium CC: flo, keel_lambert, oleg
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description higuita 2014-09-29 16:37:25 UTC
Just got one A10 CPU/APU with a KAVERI GPU and when trying to startup tvtimeit gave me this error:

$ tvtime
Running tvtime 1.0.4.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/higuita/.tvtime/tvtime.xml
xvoutput: No XVIDEO port found which supports YUY2 images.

In my previous system, a radeon R600, tvtime worked fine.

checking the xvinfo, it confirms the missing YUY2 support.

$ xvinfo                                               
X-Video Extension version 2.2
screen #0
  Adaptor #0: "GLAMOR Textured Video"
    number of ports: 16
    port base: 63
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
    number of attributes: 5
      "XV_BRIGHTNESS" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_HUE" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_COLORSPACE" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 8192 x 8192
    Number of image formats: 2
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)

AS tvtime is the best analog tv viewer for linux, i'm asking for adding support to this.

i'm using the latest glamor git, mesa 1.3.0, video-ati 7.4.0 and xserver 1.15.2 on a slackware64-current with the kernel 3.16.3
Comment 1 Michel Dänzer 2015-01-26 07:20:01 UTC
*** Bug 88791 has been marked as a duplicate of this bug. ***
Comment 2 higuita 2015-01-27 22:48:42 UTC
Sorry about the dupe, but is glamor still being developed?

I see no activity what so ever on the mailling list since about june of last year:

http://lists.freedesktop.org/archives/glamor/
http://cgit.freedesktop.org/xorg/driver/glamor/
Comment 3 Michel Dänzer 2015-01-28 01:42:38 UTC
glamor is now being developed (more actively than before) as part of the xserver tree and on the xorg-devel mailing list.
Comment 4 keellambert 2017-05-29 09:09:10 UTC
same outputs are now being seen with Leap 42.3 Alpha/Beta updates

tvtime was working with Leap 42.2? but has not worked with Tumbleweed for the past couple of years

hw/sw: 
Advanced Micro Devices [AMD/ATI] RS780 [Radeon HD 3200]
Display Server: X.Org 1.18.3 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
Resolution: 1680x1050@59.95hz, 1920x1080@60.00hz
GLX Renderer: Gallium 0.4 on AMD RS780 (DRM 2.49.0 / 4.11.3-2-default, LLVM 3.8.0)
GLX Version: 3.0 Mesa 17.0.5 Direct Rendering: Yes

an upgrade or patch would be appreciated to rectify this regression.
Comment 5 higuita 2017-05-29 23:00:01 UTC
Tvtime finally got one update and since version 1.0.9 have this patch: 

"Add support for planar yuv formats"

I'm using tvtime 1.0.11, the latest version, and it works fine in mesa 17.1 using AMDGPU, so GLAMOR as xv

So tvtime do not need anymore the YUY2, i do not know if any other app uses YUY2
Comment 6 keellambert 2017-05-30 07:49:42 UTC
tvtime-1.0.2-269.2.x86_64 replaced with tvtime-1.0.11-1.mga6.x86_64
with Mesa-17.0.5-171.4.x86_64

tvtime starts and runs ok

thanks for the info
Comment 7 Oleh Kravchenko 2017-05-31 05:59:50 UTC
Looks like in nowadays YUY2 is present :)

> $ xvinfo
> X-Video Extension version 2.2
> screen #0
>   Adaptor #0: "Radeon Textured Video"
>     number of ports: 16
>     port base: 63
>     operations supported: PutImage 
>     supported visuals:
>       depth 24, visualID 0x21
>     number of attributes: 7
>       "XV_VSYNC" (range 0 to 1)
>               client settable attribute
>               client gettable attribute (current value is 1)
>       "XV_BRIGHTNESS" (range -1000 to 1000)
>               client settable attribute
>               client gettable attribute (current value is 0)
>       "XV_CONTRAST" (range -1000 to 1000)
>               client settable attribute
>               client gettable attribute (current value is 0)
>       "XV_SATURATION" (range -1000 to 1000)
>               client settable attribute
>               client gettable attribute (current value is 0)
>       "XV_HUE" (range -1000 to 1000)
>               client settable attribute
>               client gettable attribute (current value is 0)
>       "XV_COLORSPACE" (range 0 to 1)
>               client settable attribute
>               client gettable attribute (current value is 0)
>       "XV_CRTC" (range -1 to 5)
>               client settable attribute
>               client gettable attribute (current value is -1)
>     maximum XvImage size: 16384 x 16384
>     Number of image formats: 4
>       id: 0x32595559 (YUY2)
>         guid: 59555932-0000-0010-8000-00aa00389b71
>         bits per pixel: 16
>         number of planes: 1
>         type: YUV (packed)
>       id: 0x32315659 (YV12)
>         guid: 59563132-0000-0010-8000-00aa00389b71
>         bits per pixel: 12
>         number of planes: 3
>         type: YUV (planar)
>       id: 0x30323449 (I420)
>         guid: 49343230-0000-0010-8000-00aa00389b71
>         bits per pixel: 12
>         number of planes: 3
>         type: YUV (planar)
>       id: 0x59565955 (UYVY)
>         guid: 55595659-0000-0010-8000-00aa00389b71
>         bits per pixel: 16
>         number of planes: 1
>         type: YUV (packed)

=media-libs/mesa-13.0.5
=x11-base/xorg-server-1.19.2
=x11-drivers/xf86-video-ati-7.8.0
Comment 8 higuita 2017-06-01 08:27:25 UTC
@Oleh Kravchenko

Notice that you are not using glamor, and that glamor is where YUY2 is missing.


The older "Radeon Textured Video" do support YUY2, but is not available in newer cards

I think the question here is: is there any other app using YUY2 other than tvtime? if no, tvtime added support for another format and this can be closed.
If yes, then this may need to be reopen.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.