Skip to content

testrender: output jpg/gif/png in sRGB#758

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:masterfrom
lgritz:lg-testrender
May 31, 2017
Merged

testrender: output jpg/gif/png in sRGB#758
lgritz merged 1 commit intoAcademySoftwareFoundation:masterfrom
lgritz:lg-testrender

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented May 31, 2017

Just like we recently did for testshade.

Comment thread src/testrender/testrender.cpp Outdated
// Local memory for the pixels
std::vector<Color3> pixels(xres * yres, Color3(0,0,0));
// Make an ImageBuf that wraps it
ImageBuf pixelbuf (ImageSpec(xres, yres, 3, TypeDesc::FLOAT), &pixels[0]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer pixels.data() these days.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I'll change that

@fpsunflower
Copy link
Copy Markdown
Contributor

LGTM!

Just like we recently did for testshade.
@lgritz lgritz merged commit c8ad35d into AcademySoftwareFoundation:master May 31, 2017
@lgritz lgritz deleted the lg-testrender branch May 31, 2017 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants