Added #1564, #1676, #1697 to changelog of video.

Added support of alpha channel
This commit is contained in:
Jindra Petřík
2022-12-05 22:12:37 +01:00
parent e2628d6baf
commit b941cbba04
2 changed files with 6 additions and 3 deletions

View File

@@ -184,7 +184,8 @@ public class SimpleMediaPlayer {
@Override
public BufferFormat getBufferFormat(int sourceWidth, int sourceHeight) {
return new RV32BufferFormat(sourceWidth, sourceHeight);
//return new RV32BufferFormat(sourceWidth, sourceHeight);
return new BufferFormat("BGRA", sourceWidth, sourceHeight, new int[] {sourceWidth * 4}, new int[] {sourceHeight});
}
@Override