Discussion:
[Bug 797359] New: video format of endianness declared in vaapi need to be modified.
"GStreamer" (GNOME Bugzilla)
2018-10-31 05:51:29 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797359

Bug ID: 797359
Summary: video format of endianness declared in vaapi need to
be modified.
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gstreamer-vaapi
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@hotmail.com
QA Contact: gstreamer-***@lists.freedesktop.org
CC: ***@gmail.com, ***@igalia.com
GNOME version: ---

The code:

#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
DEF_RGB (BGRA, ('B', 'G', 'R', 'A'), LSB, 32,
32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000),
DEF_RGB (RGBA, ('R', 'G', 'B', 'A'), LSB, 32,
32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000),
DEF_RGB (BGRx, ('B', 'G', 'R', 'X'), LSB, 32,
24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000),
DEF_RGB (RGBx, ('R', 'G', 'B', 'X'), LSB, 32,
24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0x00000000),
-#endif

Make the ARGB xRGB kind video format not suppored when on little endian machine
like X86

The video format should not directly relate to endianness. For example,
ARGB on big endian should not be simplely seen as BGRA on little endian
machine.
We should provide endianess convert or format convert help functions if
endianness does not match.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-31 05:55:08 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797359

He Junyan <***@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@hotmail.com

--- Comment #1 from He Junyan <***@hotmail.com> ---
Created attachment 374114
--> https://bugzilla.gnome.org/attachment.cgi?id=374114&action=edit
THe patch
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-31 19:02:32 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797359

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #2 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
Hi,

Thanks for the patch.

Can you explain me what the use case if failing to you?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-01 07:46:45 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797359

--- Comment #3 from He Junyan <***@hotmail.com> ---
When we use command line:

gst-launch-1.0 videotestsrc ! videoparse width=320 height=240 format=argb !
vaapipostproc format=nv12 ! fakesink

It will cause

0:00:02.207389696 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:671:ensure_image_formats: 27 image formats
0:00:02.207407473 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: BGRA
0:00:02.207422660 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: ARGB
0:00:02.207438443 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: RGBA
0:00:02.207455803 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: ABGR
0:00:02.207469341 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: BGRX
0:00:02.207484450 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: XRGB
0:00:02.207501323 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: RGBX
0:00:02.207514956 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: XBGR
0:00:02.207530027 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: XBGR
0:00:02.207547047 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: NV12
0:00:02.207560671 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: NV21
0:00:02.207575506 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: YUY2
0:00:02.207592358 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: UYVY
0:00:02.207606027 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: YV12
0:00:02.207622001 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: IYUV
0:00:02.207635708 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: 422H
0:00:02.207651126 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: 422V
0:00:02.207664616 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: Y800
0:00:02.207680108 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: 411P
0:00:02.207693561 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: IMC3
0:00:02.207709181 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: 444P
0:00:02.207726128 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: RGBP
0:00:02.207739753 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: BGRP
0:00:02.207755126 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: P208
0:00:02.207772128 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: P010
0:00:02.207785479 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: AYUV
0:00:02.207801791 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:673:ensure_image_formats: Y410
0:00:02.207819440 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format ARGB
0:00:02.207834723 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format ABGR
0:00:02.207851431 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format XRGB
0:00:02.207866519 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format XBGR
0:00:02.207882500 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format XBGR
0:00:02.207899799 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format NV21
0:00:02.207915815 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format IYUV
0:00:02.207931079 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format 422H
0:00:02.207948698 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format 422V
0:00:02.207964825 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format 411P
0:00:02.207979586 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format IMC3
0:00:02.207994993 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format 444P
0:00:02.208011973 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format RGBP
0:00:02.208026171 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format BGRP
0:00:02.208041953 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format P208
0:00:02.208059440 14486 0x55832b526230 DEBUG vaapidisplay
gstvaapidisplay.c:199:append_formats: unsupported format Y410


VA report we support ARGB for example but we failed to recognize it in
gst-vaapi. This causes the input buffer pool failed to create and the pipeline
can't run.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-03 15:56:33 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797359

GStreamer system administrator <***@gstreamer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |OBSOLETE

--- Comment #4 from GStreamer system administrator <***@gstreamer.net> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance:
https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/112.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
Loading...