[Bug]: VP format conversion to VUYA results in pink artifacts.
- 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
```

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
Assessment
This issue has not been assessed yet.