only one place to define height
This commit is contained in:
parent
a0a85ca1b4
commit
48e7697310
1 changed files with 1 additions and 2 deletions
|
@ -94,8 +94,7 @@ class GstTimeline:
|
||||||
self.bar = Image.new("RGB", (self.width_part + 1 ,bar_height))
|
self.bar = Image.new("RGB", (self.width_part + 1 ,bar_height))
|
||||||
|
|
||||||
img = Image.fromstring('RGB',input_d, gst_buffer)
|
img = Image.fromstring('RGB',input_d, gst_buffer)
|
||||||
height = 16
|
img = img.resize((1, bar_height), Image.ANTIALIAS)
|
||||||
img = img.resize((1, height), Image.ANTIALIAS)
|
|
||||||
self.frames += 1
|
self.frames += 1
|
||||||
for i in range(height):
|
for i in range(height):
|
||||||
self.bar.putpixel((self.frames, i), img.getpixel((0,i)))
|
self.bar.putpixel((self.frames, i), img.getpixel((0,i)))
|
||||||
|
|
Loading…
Reference in a new issue