mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Return raw frame in "-vo wayland"

Open gfvehlhg opened this issue 10 years ago • 7 comments

I suppose when using -vo wayland a frame is converted to a format xrgb8888, but the wayland protocol allows returns in the format yuv420, for example. Will this increase the performance with this implementation?

gfvehlhg avatar Feb 03 '16 13:02 gfvehlhg

Not sure what you're asking. That vo_wayland should send yuv frames to wayland?

ghost avatar Feb 03 '16 13:02 ghost

Yes, now the player only supports xrgb8888, argb8888 and rgb565.

gfvehlhg avatar Feb 03 '16 13:02 gfvehlhg

The supported frame format depends on the compositor. Which compositor supports yuv formats?

giselher avatar Feb 03 '16 19:02 giselher

I checked and both weston and sway only support rgb8888.

giselher avatar Feb 03 '16 19:02 giselher

@giselher

The supported frame format depends on the compositor. Which compositor supports yuv formats?

The reference implementation of compositor weston does not fully support the wayland protocol?

I checked and both weston and sway only support rgb8888.

Want to say that these flags do nothing?

$ mpv -vo wayland:help
Options:

 alpha                          Flag (default: no)
 rgb565                         Flag (default: no)

Total: 2 options

gfvehlhg avatar Feb 05 '16 14:02 gfvehlhg

The supported frame format depends on the compositor. Which compositor supports yuv formats?

The reference implementation of compositor weston does not fully support the wayland protocol?

It fully supports the protocol. It has a mechanism that tells you what frame formats it supports. The specs just lists all possible formats it can support.

giselher avatar Feb 07 '16 11:02 giselher

I checked and both weston and sway only support rgb8888.

Want to say that these flags do nothing?

$ mpv -vo wayland:help Options:

alpha Flag (default: no) rgb565 Flag (default: no)

Total: 2 options

Yeah, it supports rgb8888, argb8888 and rgb565. But not yuv420 and other formats.

giselher avatar Feb 07 '16 11:02 giselher