Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
#pragma once
#include "veyra/pipeline/FramePacket.h"
#include <cstdint>
#include <string>
namespace veyra::source {
enum class DolbyBaseLayer : uint8_t { None, Unsupported, Hdr10, Sdr, Hlg };
struct DolbyVisionInfo {
bool present=false, baseLayer=false, enhancementLayer=false, rpuDeclared=false, rpuObserved=false;
uint8_t profile=0, level=0, compatibility=0;
DolbyBaseLayer route() const {
if(!present)return DolbyBaseLayer::None;
if(!baseLayer)return DolbyBaseLayer::Unsupported;
if(profile==7)return DolbyBaseLayer::Hdr10;
if(profile!=8&&profile!=10)return DolbyBaseLayer::Unsupported;
switch(compatibility){
case 1:return DolbyBaseLayer::Hdr10;
case 2:return DolbyBaseLayer::Sdr;
case 4:return DolbyBaseLayer::Hlg;
default:return DolbyBaseLayer::Unsupported;
}
}
std::wstring description() const {
if(!present)return {};
const auto layer=route();
const wchar_t* name=layer==DolbyBaseLayer::Hdr10?L"HDR10":layer==DolbyBaseLayer::Hlg?L"HLG":L"SDR";
if(layer==DolbyBaseLayer::Unsupported)return L"Dolby Vision P"+std::to_wstring(profile)+L":此类型需要 RPU 重建,当前不能正确显示";
return L"Dolby Vision P"+std::to_wstring(profile)+L" · "+name+L" 基础层兼容(不应用 RPU/增强层,不输出原生 DV)";
}
bool matches(const pipeline::ColorDescription& c) const {
using namespace pipeline;
switch(route()){
case DolbyBaseLayer::Hdr10:return c.transfer==TransferFunction::PQ&&c.matrix==YuvMatrix::BT2020NCL&&c.primaries==ColorPrimaries::BT2020;
case DolbyBaseLayer::Hlg:return c.transfer==TransferFunction::HLG&&c.matrix==YuvMatrix::BT2020NCL&&c.primaries==ColorPrimaries::BT2020;
case DolbyBaseLayer::Sdr:return !c.isHdrPath()&&c.matrix==YuvMatrix::BT709&&c.primaries==ColorPrimaries::BT709;
case DolbyBaseLayer::None:return true;
default:return false;
}
}
};
}