Skip to content

Gstreamer can not convert the ARGB color to NV12 correctly. #644

@HeJunyan

Description

@HeJunyan

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

Metadata

Metadata

Assignees

Labels

BugIssue: identify as a bugP3Low priority no customer usage, no business requirements, not from communities, just from internalVPVideo ProcessingverifyingPR: fix ready and verifying with build/test

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions