-
Notifications
You must be signed in to change notification settings - Fork 364
Description
The gstreamer pipeline
./build/bin/gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=ARGB ! vaapipostproc ! video/x-raw,format=NV12 ! vaapisink
get wrong result
while
./build/bin/gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=RGBA ! vaapipostproc ! video/x-raw,format=NV12 ! vaapisink
and
./build/bin/gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=BGRA ! vaapipostproc ! video/x-raw,format=NV12 ! vaapisink
works OK.
Notice
const VAImageFormat m_supportedImageformatsG11[] =
{ {VA_FOURCC_BGRA, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000},
{VA_FOURCC_ARGB, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000},
BGRA and ARGB have the same RGB channel mask,
may be wrong