intel / intel/media-driver

Gstreamer can not convert the ARGB color to NV12 correctly.

Open
#644 8 comments 0 reactions 1 assignee Assigned to @MicroYY View on GitHub
Bug P3 verifying VP
Dominant language
C
Stars
1.2k
Forks
383
Avg merge
8d 18h
Merged PRs (30d)
4

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.