intel / intel/media-driver

[Bug]: VP format conversion to VUYA results in pink artifacts.

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

Description

### Which component impacted?

Video Processing

### Is it regression? Good in old configuration?

None

### What happened?

Converting for e.g. BGRx to VUYA using the gstreamer va plugins vapostproc, results in pink artifacts while converting to NV12 is fine. It only appears if the image height is not a multiple of 16.
Example gstreamer pipeline:
```
gst-launch-1.0 videotestsrc pattern=ball flip=true ! video/x-raw,format=BGRx,width=1920,height=1080 ! vapostproc ! "video/x-raw(memory:VAMemory),format=VUYA" ! vah265lpenc ! h265parse ! matroskamux ! filesink location=test.mkv
```
![Screenshot_20241029_102800](https://github.com/user-attachments/assets/881a99de-b845-45f5-80a0-0e18b20a48b9)

The same pipeline with height=1072 works fine.

### What's the usage scenario when you are seeing the problem?

Others

### What impacted?

We are currently developing an opensource vdi solution using Flex vGPUs for graphics acceleration and video stream encoding. For non chroma subsampling encoding, we need to convert BGRx into VUYA.

### Debug Information

1. vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.4.2 (18b64f08b)
2. exists
3. Intel Corporation ATS-M [Data Center GPU Flex 170] [8086:56c0] (rev 08)
4. [vainfo.log](https://github.com/user-attachments/files/17554685/vainfo.log)
5. [libva_trace.log](https://github.com/user-attachments/files/17554748/libva_trace.log)

### Do you want to contribute a patch to fix the issue?

None

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.