Skip to content

Commit

Permalink
color transfer force 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 29, 2023
1 parent 7ff2561 commit 3dbae0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ private MediaFormat createBaseMediaFormat(String mimeType) {
// rather than us hardcoding them into the MediaFormat.
if (getActiveVideoFormat() != MoonBridge.VIDEO_FORMAT_H265_MAIN10) {
// Set color format keys when not in HDR mode, since we know they won't change
videoFormat.setInteger(MediaFormat.KEY_COLOR_TRANSFER, MediaFormat.COLOR_TRANSFER_SDR_VIDEO);
//force to zero for testing if this reflects mode under vpud
videoFormat.setInteger(MediaFormat.KEY_COLOR_TRANSFER, 0);
switch (getPreferredColorSpace()) {
case MoonBridge.COLORSPACE_REC_601:
videoFormat.setInteger(MediaFormat.KEY_COLOR_STANDARD, MediaFormat.COLOR_STANDARD_BT601_NTSC);
Expand Down

0 comments on commit 3dbae0c

Please sign in to comment.