def setUp(self): resource = TestContextManager.current_context().resource self.txunit, self.rxunit = resource.acquire_pair() self.tx_gen3_1 = self.txunit.device.gen3_1 self.tx_gen3_2 = self.txunit.device.gen3_2 self.rx_gen3_1 = self.rxunit.device.gen3_1 self.rx_gen3_2 = self.rxunit.device.gen3_2 self.qd = self.txunit.avproducer self.vg876 = VG876(host="172.16.132.250") self.capture_image_dir = os.path.join(self.logdir, "images") fs.mkpath(self.capture_image_dir) self.capture_image_name = os.path.join(self.capture_image_dir, self.name + ".jpg") if re.match("DVI_", self.format, re.IGNORECASE): self.iface = "DVI" self.format = re.sub("DVI_", "", self.format) elif re.match("HDMI_", self.format, re.IGNORECASE): self.iface = "HDMI" self.format = re.sub("HDMI_", "", self.format) else: self.iface = "HDMI" # if self.rx_gen3_2.nvramget(0x66) != 0x0: # self.rx_gen3_2.nvramset(0x66, 0x0) # self.rxunit.reset() # time.sleep(10) self.make_connected(self.txunit.device, self.rxunit.device) self.connect_HD980()
def setUp(self): super(CSCYCbCr420BT709TestCase, self).setUp() self.vg876 = VG876("172.16.131.188") self.vg876.set_csc_params(ext_color="AdobeRGB", avi_range="Limited Range") self.vg876.load_video('EIA4096x2160p@30', 'Color Bar 100/100-H', 'YCbCr420', '8-bit')
def setUp(self): super(CSCYCbCr420BT2020TestCase, self).setUp() self.vg876 = VG876("172.16.131.188") self.vg876.set_csc_params(ext_color="ITU-BT2020YCC", avi_range="Limited Range", basic_color="Extend") self.vg876.load_video('EIA4096x2160p@30', 'Color Bar 100/100-H', 'YCbCr420', '8-bit')
def setUp(self): super(CSCRGB444LimitedRangeTestCase, self).setUp() self.vg876 = VG876("172.16.131.188") self.vg876.set_csc_params(ext_color="AdobeRGB", avi_range="Limited Range", basic_color="No Data") self.vg876.load_video('EIA4096x2160p@30', 'Color Bar 100/100-H', 'RGB', '8-bit')