From b3c5cda8ace8247dc90eee4aac349e652e6c7dc9 Mon Sep 17 00:00:00 2001 From: iloveicedgreentea <31193909+iloveicedgreentea@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:14:47 -0400 Subject: [PATCH] add 3d settings --- jvc_projector/commands.py | 32 +++++++++++++++++++++++++++++--- setup.py | 2 +- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/jvc_projector/commands.py b/jvc_projector/commands.py index 6dac625..43681ab 100644 --- a/jvc_projector/commands.py +++ b/jvc_projector/commands.py @@ -87,6 +87,14 @@ class PictureModes(Enum): frame_adapt_hdr2 = b"18" # requires firmware 2.0 frame_adapt_hdr3 = b"19" # requires firmware 2.0 +class PictureModes3D(Enum): + natural = b"1" + user1 = b"2" + user2 = b"3" + user3 = b"4" + cinema = b"8" + film = b"9" + last = b"F" class InstallationModes(Enum): mode1 = b"0" @@ -165,7 +173,7 @@ class LaserDimModes(Enum): auto3 = b"3" # requires firmware 2.0 -class EnhanceModes(Enum): +class Numeric(Enum): """ JVC numeric values are the byte values of two complemented hex """ @@ -277,6 +285,11 @@ class SourceStatuses(Enum): no_signal = b"0" signal = b"1" +class ThreeD(Enum): + twoD = b"0" + auto = b"1" + sbs = b"3" + tb = b"4" class Commands(Enum): @@ -333,7 +346,7 @@ class Commands(Enum): # low latency enable/disable low_latency = b"PMLL", LowLatencyModes, ACKs.picture_ack # enhance - enhance = b"PMEN", EnhanceModes, ACKs.picture_ack + enhance = b"PMEN", Numeric, ACKs.picture_ack # motion enhance motion_enhance = b"PMME", MotionEnhanceModes, ACKs.picture_ack # graphic mode @@ -368,4 +381,17 @@ class Commands(Enum): eshift_mode = b"PMUS", EshiftModes, ACKs.picture_ack # source status - source_status = b"SC", SourceStatuses, ACKs.source_ack \ No newline at end of file + source_status = b"SC", SourceStatuses, ACKs.source_ack + + # 3d + signal_3d = b"IS3D", ThreeD, ACKs.hdmi_ack + # hdmi phase alignment + signal_3d_phase = b"IS3P", Numeric, ACKs.hdmi_ack + # 3d parallax (-8 to 8) + signal_3d_parallax = b"ISLV", Numeric, ACKs.hdmi_ack + # 3d crosstalk cancel (-8 to 8) + signal_3d_crosstalk = b"ISCA", Numeric, ACKs.hdmi_ack + # 3d pm + signal_3d_pm = b"ISS3", PictureModes3D, ACKs.hdmi_ack + # 2d signal + signal_2d_pm = b"ISS2", PictureModes3D, ACKs.hdmi_ack \ No newline at end of file diff --git a/setup.py b/setup.py index 3df902d..9d228de 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="jvc_projector_remote_improved2", - version="3.7.0", + version="3.7.2", author="iloveicedgreentea", description="A package to control JVC projectors over IP", long_description=long_description,