mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Use higher jpeg quality by default
This commit is contained in:
parent
c054c757bd
commit
a524db2c1d
2
main.py
2
main.py
@ -36,7 +36,7 @@ profiles = {
|
||||
def save(rframe):
|
||||
noalpha = rframe.buf[:,:,:3]
|
||||
img = scipy.misc.toimage(noalpha, cmin=0, cmax=1)
|
||||
img.save(rframe.idx, quality=95)
|
||||
img.save(rframe.idx, quality=98)
|
||||
print rframe.idx, rframe.gpu_time
|
||||
|
||||
def main(args, prof):
|
||||
|
@ -58,7 +58,7 @@ def push_frame(r, out):
|
||||
noalpha = out.buf[:,:,:3]
|
||||
img = scipy.misc.toimage(noalpha, cmin=0, cmax=1)
|
||||
buf = StringIO()
|
||||
img.save(buf, 'jpeg', quality=95)
|
||||
img.save(buf, 'jpeg', quality=98)
|
||||
buf.seek(0)
|
||||
head = ' '.join([sidx, str(out.gpu_time), ftag])
|
||||
r.rpush(sid + ':queue', head + '\0' + buf.read())
|
||||
|
Loading…
Reference in New Issue
Block a user