Skip to content

Commit

Permalink
fixup! Support YUV 4:4:4 formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 committed Jun 25, 2024
1 parent 6b27398 commit ce151fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/streaming/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,11 @@ bool Session::initialize()

// H.264 is always supported
m_StreamConfig.supportedVideoFormats = VIDEO_FORMAT_H264;
/* Hardware decoders don't support this format, and libplacebo backend with software decoding is not yet fully implemented
if (m_Preferences->enableYUV444) {
m_StreamConfig.supportedVideoFormats |= VIDEO_FORMAT_H264_HIGH8_444;
}
*/

switch (m_Preferences->videoCodecConfig)
{
Expand Down Expand Up @@ -791,9 +796,6 @@ bool Session::initialize()
#endif
break;
case StreamingPreferences::VCC_FORCE_H264:
if (m_Preferences->enableYUV444) {
m_StreamConfig.supportedVideoFormats |= VIDEO_FORMAT_H264_HIGH8_444;
}
break;
case StreamingPreferences::VCC_FORCE_HEVC:
case StreamingPreferences::VCC_FORCE_HEVC_HDR_DEPRECATED:
Expand Down

0 comments on commit ce151fa

Please sign in to comment.