george84
16th October 2012, 06:00
SMILrootlayout_backgroundImage = "C:\Dokumente und Einstellungen\Kevin\Eigene Dateien\SMIL\BSG Prototyp\media\testchart1.png"
SMILrootlayout_width = 1920#
SMILrootlayout_height = 1080
# resizing background to width and height
SMILrootlayout = Lanczos4Resize(ImageSource(SMILrootlayout_backgroundImage,1,1,10,pixel_type="RGB32"), SMILrootlayout_width, SMILrootlayout_height).ConvertToYV12(matrix = "REC709").KillAudio()
S2_width = 360#
S2_height = 202#
S2_bgc = color_red#
S2_bgo = 1#
S2_Nframes = 0
# resizing background to width and height
yyy = BlankClip(length = 0, fps = 10, width = S2_width, height = S2_height, color = S2_bgc)
S2 = BlankClip(length = 0, fps = 10, width = S2_width, height = S2_height, color = S2_bgc).ConvertToYV12(matrix = "REC709").KillAudio()
SMILrootlayout = Overlay(SMILrootlayout, S2, x = 4, y = 4, pc_range = true)
res = Overlay(SMILrootlayout, S2.ConvertToRGB32(matrix = "REC709"), x = 4, y = 210, pc_range = true)
res
Color_red is defined as (255,0,0). In above example the first overlay will produce a red of (234,0,3) while the second overlay produces (255,0,0) as expected.
Is there an explanation for this behavior? The documentation is not clear on this.
SMILrootlayout_width = 1920#
SMILrootlayout_height = 1080
# resizing background to width and height
SMILrootlayout = Lanczos4Resize(ImageSource(SMILrootlayout_backgroundImage,1,1,10,pixel_type="RGB32"), SMILrootlayout_width, SMILrootlayout_height).ConvertToYV12(matrix = "REC709").KillAudio()
S2_width = 360#
S2_height = 202#
S2_bgc = color_red#
S2_bgo = 1#
S2_Nframes = 0
# resizing background to width and height
yyy = BlankClip(length = 0, fps = 10, width = S2_width, height = S2_height, color = S2_bgc)
S2 = BlankClip(length = 0, fps = 10, width = S2_width, height = S2_height, color = S2_bgc).ConvertToYV12(matrix = "REC709").KillAudio()
SMILrootlayout = Overlay(SMILrootlayout, S2, x = 4, y = 4, pc_range = true)
res = Overlay(SMILrootlayout, S2.ConvertToRGB32(matrix = "REC709"), x = 4, y = 210, pc_range = true)
res
Color_red is defined as (255,0,0). In above example the first overlay will produce a red of (234,0,3) while the second overlay produces (255,0,0) as expected.
Is there an explanation for this behavior? The documentation is not clear on this.