summaryrefslogtreecommitdiffstatshomepage
path: root/ini/examples
diff options
context:
space:
mode:
author Westley M. Martinez <anikom15@gmail.com>2018-10-07 08:42:30 -0700
committer R. Belmont <rb6502@users.noreply.github.com>2018-10-07 11:42:30 -0400
commitb5a54b761c94c543ce950dee0bc4aa0610ba8cba (patch)
tree9593e366a3f3da82074dec2b431c3dc8ada08d1c /ini/examples
parent7b42e2f79950adc1dd6d3c07df5513eda87b507c (diff)
HLSL Color Transforms and 3D LUT (#4043)
* Remove broken scanline uniform from post_pass * Add 3D LUT to HLSL * Allow individual LUTs for screen and UI * WIP: Port 3D LUT to BGFX * Finish porting LUT to BGFX * Add individual phosphor color conversion for HLSL new file: hlsl/chroma.fx Shader for converting xyY3 to sRGB modified: hlsl/phosphor.fx Minor changes to emphasize idea that phosphors are color agnostic modified: hlsl/post.fx Conversion from signal RGB to xyY3 modified: src/osd/modules/render/d3d/d3dhlsl.cpp modified: src/osd/modules/render/d3d/d3dhlsl.h modified: src/osd/windows/winmain.cpp modified: src/osd/windows/winmain.h * Add phosphor examples and update presets * Port phosphor color shaders to BGFX * Fix missing newlines at EOF
Diffstat (limited to 'ini/examples')
-rw-r--r--ini/examples/bt601-525.ini21
-rw-r--r--ini/examples/bt601-625.ini21
-rw-r--r--ini/examples/bt709.ini16
-rw-r--r--ini/examples/ntscj.ini16
-rw-r--r--ini/examples/p1.ini12
-rw-r--r--ini/examples/p14.ini15
-rw-r--r--ini/examples/p2.ini12
-rw-r--r--ini/examples/p3.ini12
-rw-r--r--ini/examples/p35.ini12
-rw-r--r--ini/examples/p4.ini19
-rw-r--r--ini/examples/p55.ini13
-rw-r--r--ini/examples/p7.ini15
12 files changed, 184 insertions, 0 deletions
diff --git a/ini/examples/bt601-525.ini b/ini/examples/bt601-525.ini
new file mode 100644
index 00000000000..e2b08f5c282
--- /dev/null
+++ b/ini/examples/bt601-525.ini
@@ -0,0 +1,21 @@
+# Example for BT.601 525-line Color Space
+#
+# BT.601 is a standard for converting analog video into the digital domain,
+# and serves as a reference for the color space of analog video, but the color
+# spaces defined existed before the standard.
+#
+# Due to historical differences, there are two color spaces in BT.601: one for
+# 525-line television (developed in the U.S.), and one for 625-line television
+# (developed in Europe). The color spaces, along with NTSC-J, converged upon
+# the development of HD television with the BT.709 standard.
+#
+# This color space should be used for most 60 Hz arcade systems, consoles, and
+# computer systems.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 3
+chroma_a 0.630,0.340
+chroma_b 0.310,0.595
+chroma_c 0.155,0.070
+chroma_y_gain 0.2124,0.7011,0.0866
diff --git a/ini/examples/bt601-625.ini b/ini/examples/bt601-625.ini
new file mode 100644
index 00000000000..1dac1a33583
--- /dev/null
+++ b/ini/examples/bt601-625.ini
@@ -0,0 +1,21 @@
+# Example for BT.601 625-line Color Space
+#
+# BT.601 is a standard for converting analog video into the digital domain,
+# and serves as a reference for the color space of analog video, but the color
+# spaces defined existed before the standard.
+#
+# Due to historical differences, there are two color spaces in BT.601: one for
+# 525-line television (developed in the U.S.), and one for 625-line television
+# (developed in Europe). The color spaces, along with NTSC-J, converged upon
+# the development of HD television with the BT.709 standard.
+#
+# This color space should be used for most 50 Hz arcade systems, consoles, and
+# computer systems.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 3
+chroma_a 0.64,0.33
+chroma_b 0.29,0.60
+chroma_c 0.15,0.06
+chroma_y_gain 0.2220,0.7067,0.0713
diff --git a/ini/examples/bt709.ini b/ini/examples/bt709.ini
new file mode 100644
index 00000000000..e706a394a18
--- /dev/null
+++ b/ini/examples/bt709.ini
@@ -0,0 +1,16 @@
+# Example for BT.709 Color Space
+#
+# BT.709 was standardized in 1990 for HD television. The color space for
+# BT.709 would later be used for sRGB, the color space used for modern
+# operating systems.
+#
+# This color space should be used for post-1995 computer systems and HD game
+# systems.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 3
+chroma_a 0.64,0.33
+chroma_b 0.30,0.60
+chroma_c 0.15,0.06
+chroma_y_gain 0.2126,0.7152,0.0722
diff --git a/ini/examples/ntscj.ini b/ini/examples/ntscj.ini
new file mode 100644
index 00000000000..5e510798fc5
--- /dev/null
+++ b/ini/examples/ntscj.ini
@@ -0,0 +1,16 @@
+# Example for NTSC-J Color Space
+#
+# NTSC-J has identical colorimetry to the BT.601 525-line standard, but uses a
+# 9300K white-point 'D93'. Note that this white point is not necessarily
+# definitive for all Japanese works.
+#
+# This color space may be used for 60 Hz arcade systems and consoles as an
+# alternative to BT.601 525-line.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 3
+chroma_a 0.630,0.340
+chroma_b 0.310,0.595
+chroma_c 0.155,0.070
+chroma_gain 0.1875,0.6940,0.1185
diff --git a/ini/examples/p1.ini b/ini/examples/p1.ini
new file mode 100644
index 00000000000..9570eb1243e
--- /dev/null
+++ b/ini/examples/p1.ini
@@ -0,0 +1,12 @@
+# P1 Phosphor
+#
+# Multipurpose green phosphor
+#
+# Perhaps the most well-known phosphor, it has medium persistence.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 1
+chroma_a 0.218,0.712
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 1.0,0.0,0.0
diff --git a/ini/examples/p14.ini b/ini/examples/p14.ini
new file mode 100644
index 00000000000..cb2c7138861
--- /dev/null
+++ b/ini/examples/p14.ini
@@ -0,0 +1,15 @@
+# P14 Phosphor
+#
+# Dual-color phosphor for military RADAR
+#
+# Red channel should be set to medium-short persistence. Green
+# channel should be set to medium.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+phosphor_life 0.2,0.6,0.0
+chroma_mode 1
+chroma_a 0.150,0.093
+chroma_b 0.504,0.443
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 0.50,0.50,0.0
diff --git a/ini/examples/p2.ini b/ini/examples/p2.ini
new file mode 100644
index 00000000000..312a6648ae2
--- /dev/null
+++ b/ini/examples/p2.ini
@@ -0,0 +1,12 @@
+# P2 Phosphor
+#
+# Green phosphor for oscilloscopes
+#
+# This phosphor was developed as a fast response alternative to P1.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 1
+chroma_a 0.279,0.534
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 1.0,0.0,0.0
diff --git a/ini/examples/p3.ini b/ini/examples/p3.ini
new file mode 100644
index 00000000000..519d4ff233b
--- /dev/null
+++ b/ini/examples/p3.ini
@@ -0,0 +1,12 @@
+# P3 Phosphor
+#
+# Amber phosphor for monochrome monitors
+#
+# Medium persistence
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 1
+chroma_a 0.523,0.469
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 1.0,0.0,0.0
diff --git a/ini/examples/p35.ini b/ini/examples/p35.ini
new file mode 100644
index 00000000000..3cc31f78dcd
--- /dev/null
+++ b/ini/examples/p35.ini
@@ -0,0 +1,12 @@
+# P35 Phosphor
+#
+# Blue-green phosphor used for oscilloscopes.
+#
+# Medium-short persistence.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 1
+chroma_a 0.200,0.245
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 1.0,0.0,0.0
diff --git a/ini/examples/p4.ini b/ini/examples/p4.ini
new file mode 100644
index 00000000000..cc684505a0f
--- /dev/null
+++ b/ini/examples/p4.ini
@@ -0,0 +1,19 @@
+# P4 Phosphor
+#
+# White phosphor for black & white televisions
+#
+# This phosphor presents a clear white appearance that is perceptually similar
+# to a black and white photograph on highly reflective paper when the viewing
+# environment is sufficiently dim, and makes D65 look fairly dull and yellowish
+# in comparison, that said, next to saturated colors the blueish tint becomes
+# more apparent. This might explain why this white point was abandoned in
+# favor of the more neutral Illuminant C (and later D65) for color television.
+#
+# Medium-short persistence
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 1
+chroma_a 0.265,0.285
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 1.0,0.0,0.0
diff --git a/ini/examples/p55.ini b/ini/examples/p55.ini
new file mode 100644
index 00000000000..dcb4a6ebecb
--- /dev/null
+++ b/ini/examples/p55.ini
@@ -0,0 +1,13 @@
+# P55 Phosphor
+#
+# Trichromatic phosphors for CRT projectors
+#
+# Red and green have medium persistence, blue has medium-short.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+chroma_mode 3
+chroma_a 0.615,0.360
+chroma_b 0.300,0.600
+chroma_c 0.150,0.070
+chroma_y_gain 0.2555,0.6582,0.0863
diff --git a/ini/examples/p7.ini b/ini/examples/p7.ini
new file mode 100644
index 00000000000..4c6580d028d
--- /dev/null
+++ b/ini/examples/p7.ini
@@ -0,0 +1,15 @@
+# P7 Phosphor
+#
+# Dual-color phosphor for military RADAR
+#
+# Red channel should be set to medium-short persistence. Green
+# channel should be set to long.
+#
+# DIRECT3D POST-PROCESSING OPTIONS
+#
+phosphor_life 0.2,0.8,0.0
+chroma_mode 1
+chroma_a 0.151,0.032
+chroma_b 0.357,0.537
+chroma_conversion_gain 0.30,0.59,0.11
+chroma_y_gain 0.50,0.50,0.0