Skip to content

Commit

Permalink
Minor rewording in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 committed Aug 11, 2023
1 parent fbe1ada commit cfcff38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video_colorspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace video {
colorspace_from_client_config(const config_t &config, bool hdr_display) {
sunshine_colorspace_t colorspace;

/* Look into video::config_t declaration for details */
/* See video::config_t declaration for details */

if (config.dynamicRange > 0 && hdr_display) {
// Rec. 2020 with ST 2084 perceptual quantizer
Expand Down Expand Up @@ -60,13 +60,13 @@ namespace video {
break;

default:
BOOST_LOG(error) << "Unknown dynamicRange value, falling back to 10-bit bit depth";
BOOST_LOG(error) << "Unknown dynamicRange value, falling back to 10-bit color depth";
colorspace.bit_depth = 10;
break;
}

if (colorspace.colorspace == colorspace_e::bt2020sdr && colorspace.bit_depth != 10) {
BOOST_LOG(error) << "BT.2020 SDR colorspace expects 10-bit bit depth, falling back to Rec. 709";
BOOST_LOG(error) << "BT.2020 SDR colorspace expects 10-bit color depth, falling back to Rec. 709";
colorspace.colorspace = colorspace_e::rec709;
}

Expand Down

0 comments on commit cfcff38

Please sign in to comment.