本帖最后由 Zivlv781 于 2023-4-1 23:14 编辑
看了你的编码,分辨不清HDR还是SDR,60hz描述也有错误,我是这样写的:
说明:
480p:SD (Standard Definition)
720p:HD (High Definition)
1080p:FHD (Full High Definition)
4K:UHD (Ultra High Definition)
8K:FUHD (Full Ultra High Definition)
建立8个分组:SD;HD;FHD;UHD HDR;UHD SDR;UHD 60hz HDR;UHD 60hz SDR;FUHD。
编码为:
if (srcWidth <= 720) "SD"
if (srcWidth <= 1280) and (srcWidth > 720) "HD"
if (srcWidth <= 1920) and (srcWidth > 1280) "FHD"
if (srcWidth <= 4096) and (srcWidth > 1920) and (HDR) and (srcFps < 50) "UHD HDR"
if (srcWidth <= 4096) and (srcWidth > 1920) and (not HDR) and (srcFps < 50) "UHD SDR"
if (srcWidth <= 4096) and (srcWidth > 1920) and (HDR) and (srcFps >= 50) "UHD 60hz HDR"
if (srcWidth <= 4096) and (srcWidth > 1920) and (not HDR) and (srcFps >= 50) "UHD 60hz SDR"
if (srcWidth > 4096) "FUHD"
你如果不想更名你的分组,可以用下面的编码:
if (srcWidth <= 720) "SSD 480p"
if (srcWidth <= 1280) and (srcWidth > 720) "SD"
if (srcWidth <= 1920) and (srcWidth > 1280) "HD"
if (srcWidth <= 4096) and (srcWidth > 1920) and (HDR) and (srcFps < 50) "4K HDR"
if (srcWidth <= 4096) and (srcWidth > 1920) and (not HDR) and (srcFps < 50) "4K SDR"
if (srcWidth <= 4096) and (srcWidth > 1920) and (HDR) and (srcFps >= 50) "60hz HDR"
if (srcWidth <= 4096) and (srcWidth > 1920) and (not HDR) and (srcFps >= 50) "60hz SDR"
if (srcWidth > 4096) "8K"
|