Commit 9abd2b45 authored by Chuck Atkins's avatar Chuck Atkins
Browse files

Use PNG writer for Frame0 in benchmarks

parent f23556d3
Pipeline #103583 failed with stage
......@@ -31,10 +31,10 @@ def save_render_buffer(fname):
w2i.ShouldRerenderOff()
w2i.SetInput(w)
w2i.Modified()
tiff = TIFFWriter()
tiff.Input = w2i.GetOutput()
tiff.FileName = fname
tiff.UpdatePipeline()
png = PNGWriter()
png.Input = w2i.GetOutput()
png.FileName = fname
png.UpdatePipeline()
def flush_render_buffer():
......@@ -193,7 +193,7 @@ self.GetOutput().ShallowCopy(ap.GetOutput())
print('Saving frame 0 screenshot')
fdigits = int(math.ceil(math.log(num_frames, 10)))
frame_fname_fmt = output_basename + '.scene.f%(f)0' + str(fdigits) + 'd.tiff'
frame_fname_fmt = output_basename + '.scene.f%(f)0' + str(fdigits) + 'd.png'
SaveScreenshot(frame_fname_fmt % {'f': 0})
print('Gathering geometry counts')
......
......@@ -31,10 +31,10 @@ def save_render_buffer(fname):
w2i.ShouldRerenderOff()
w2i.SetInput(w)
w2i.Modified()
tiff = TIFFWriter()
tiff.Input = w2i.GetOutput()
tiff.FileName = fname
tiff.UpdatePipeline()
png = PNGWriter()
png.Input = w2i.GetOutput()
png.FileName = fname
png.UpdatePipeline()
def flush_render_buffer():
......@@ -125,7 +125,7 @@ def run(output_basename='log', dimension=100, view_size=(1920, 1080),
print('Saving frame 0 screenshot')
import math
fdigits = int(math.ceil(math.log(num_frames, 10)))
frame_fname_fmt = output_basename + '.scene.f%(f)0' + str(fdigits) + 'd.tiff'
frame_fname_fmt = output_basename + '.scene.f%(f)0' + str(fdigits) + 'd.png'
SaveScreenshot(frame_fname_fmt % {'f': 0})
print('Gathering geometry counts')
......
......@@ -31,10 +31,10 @@ def save_render_buffer(fname):
w2i.ShouldRerenderOff()
w2i.SetInput(w)
w2i.Modified()
tiff = TIFFWriter()
tiff.Input = w2i.GetOutput()
tiff.FileName = fname
tiff.UpdatePipeline()
png = PNGWriter()
png.Input = w2i.GetOutput()
png.FileName = fname
png.UpdatePipeline()
def flush_render_buffer():
......@@ -111,7 +111,7 @@ def run(output_basename='log', dimension=100, view_size=(1920, 1080),
print('Saving frame 0 screenshot')
import math
fdigits = int(math.ceil(math.log(num_frames, 10)))
frame_fname_fmt = output_basename + '.scene.f%(f)0' + str(fdigits) + 'd.tiff'
frame_fname_fmt = output_basename + '.scene.f%(f)0' + str(fdigits) + 'd.png'
SaveScreenshot(frame_fname_fmt % {'f': 0})
print('Gathering geometry counts')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment