Add aligment fix for 4:2 planar video#332
Conversation
|
Trying to fix a Resident Evil 0 video issue. The problem is that we have a video in 4:2:0 format, and the uv planes have a width that is not a multiple of 4. Gstreamer forces the stride to be aligned to 4, while the game expects the original stride. This causes visual green/red line artifacts. I've attached the fix to a NV12 fix that was already present since they're from the same family of problems. First time trying to fix something in Proton, so give it a hard look. |
|
Should be good after some minor fixes. This loop: The height is the same for plane 2, so instead of being duplicated for plane2, it can be inside an outer loop:
Extra condition lines are always only double-indented (4 spaces x 2), so it would be: Trace messages should mention I420 too, so it doesn't look like a format snafu occurred, e.g. something like I think it should be ok to just call The commit message should be something like:
|
Issue: ValveSoftware/Proton#576