mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Autoselect number of columns to use for VP9
This commit is contained in:
parent
e08444f74b
commit
8dc629d91e
@ -284,6 +284,10 @@ class VPxOutput(Output, ClsMod):
|
||||
|
||||
def _spawn(self):
|
||||
extras = ['-w', self.dim.w, '-h', self.dim.h]
|
||||
num_columns = int(max(0, min(3, np.log2(self.dim.w) - 8.9)))
|
||||
if num_columns:
|
||||
extras.append('--tile-columns=%d' % num_columns)
|
||||
|
||||
self.outf = tempfile.TemporaryFile(bufsize=0)
|
||||
self.subp = Popen(map(str, self.args + extras),
|
||||
stdin=PIPE, stderr=PIPE, stdout=self.outf)
|
||||
|
Loading…
Reference in New Issue
Block a user