mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
CoCg-only channel handling
This commit is contained in:
@@ -4730,6 +4730,11 @@ class GraphicsJSR223Delegate(private val vm: VM) {
|
||||
}
|
||||
}
|
||||
|
||||
// write Y=127 if there's no luma channel
|
||||
if (channelLayout == CHANNEL_LAYOUT_COCG || channelLayout == CHANNEL_LAYOUT_COCG_A) {
|
||||
Arrays.fill(finalYTile, 127f)
|
||||
}
|
||||
|
||||
// Convert to RGB based on TAV version and mode
|
||||
// v1,v3 = YCoCg-R, v2,v4 = ICtCp
|
||||
if (tavVersion == 2 || tavVersion == 4) {
|
||||
@@ -5232,6 +5237,11 @@ class GraphicsJSR223Delegate(private val vm: VM) {
|
||||
}
|
||||
}
|
||||
|
||||
// write Y=127 if there's no luma channel
|
||||
if (channelLayout == CHANNEL_LAYOUT_COCG || channelLayout == CHANNEL_LAYOUT_COCG_A) {
|
||||
Arrays.fill(finalYTile, 127f)
|
||||
}
|
||||
|
||||
// Convert to RGB based on TAV version and mode
|
||||
// v1,v3 = YCoCg-R, v2,v4 = ICtCp
|
||||
if (tavVersion == 2 || tavVersion == 4) {
|
||||
|
||||
Reference in New Issue
Block a user