mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-13 23:37:22 +00:00
[idd] network: preserve desktop chroma detail
This commit is contained in:
@@ -2805,11 +2805,8 @@ struct CNetworkVideo::Impl
|
|||||||
LGNetVideoChromaSubsampling ChromaNL() const
|
LGNetVideoChromaSubsampling ChromaNL() const
|
||||||
{
|
{
|
||||||
if (!m_active)
|
if (!m_active)
|
||||||
return 0;
|
return static_cast<LGNetVideoChromaSubsampling>(0);
|
||||||
if (m_activeCfg.profile.signal == FrameSignal::PQ_BT2020 ||
|
return CHROMA_444;
|
||||||
(m_activeCfg.width & 1U) || (m_activeCfg.height & 1U))
|
|
||||||
return CHROMA_444;
|
|
||||||
return CHROMA_420;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LGNetVideoStreamConfig StreamConfigNL() const
|
LGNetVideoStreamConfig StreamConfigNL() const
|
||||||
@@ -3569,10 +3566,7 @@ struct CNetworkVideo::Impl
|
|||||||
|
|
||||||
if (m_encoder.Submit(std::move(pending.frame),
|
if (m_encoder.Submit(std::move(pending.frame),
|
||||||
std::move(pending.lease), pending.cfg,
|
std::move(pending.lease), pending.cfg,
|
||||||
static_cast<LGNetVideoChromaSubsampling>(
|
CHROMA_444,
|
||||||
pending.cfg.profile.signal == FrameSignal::PQ_BT2020 ||
|
|
||||||
(pending.cfg.width & 1U) || (pending.cfg.height & 1U) ?
|
|
||||||
CHROMA_444 : CHROMA_420),
|
|
||||||
frameLimit))
|
frameLimit))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@@ -4106,10 +4100,7 @@ CfgResult CNetworkVideo::Probe(const FrameCfg& cfg) const
|
|||||||
cfg.width > MAX_WIDTH || cfg.height > MAX_HEIGHT ||
|
cfg.width > MAX_WIDTH || cfg.height > MAX_HEIGHT ||
|
||||||
!SupportedProfile(cfg.profile))
|
!SupportedProfile(cfg.profile))
|
||||||
return CfgResult::NEXT;
|
return CfgResult::NEXT;
|
||||||
const LGNetVideoChromaSubsampling chroma =
|
const LGNetVideoChromaSubsampling chroma = CHROMA_444;
|
||||||
cfg.profile.signal == FrameSignal::PQ_BT2020 ||
|
|
||||||
(cfg.width & 1U) || (cfg.height & 1U) ?
|
|
||||||
CHROMA_444 : CHROMA_420;
|
|
||||||
if (!PlaneElementsFit(cfg.width, cfg.height, chroma))
|
if (!PlaneElementsFit(cfg.width, cfg.height, chroma))
|
||||||
return CfgResult::NEXT;
|
return CfgResult::NEXT;
|
||||||
return CfgResult::ACCEPTED;
|
return CfgResult::ACCEPTED;
|
||||||
|
|||||||
Reference in New Issue
Block a user