projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abb914
)
Cleanup: remove duplicated code.
author
Carl Hetherington
<cth@carlh.net>
Thu, 11 Aug 2022 14:37:57 +0000
(16:37 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 11 Aug 2022 14:37:57 +0000
(16:37 +0200)
test/test.cc
patch
|
blob
|
history
diff --git
a/test/test.cc
b/test/test.cc
index fd9c6941be30e4aac818a3debf3f2b6706df865b..a761eb520c2b79352b21c836809c4d61c088d633 100644
(file)
--- a/
test/test.cc
+++ b/
test/test.cc
@@
-715,15
+715,13
@@
png_error_fn (png_structp, char const * message)
void
write_image (shared_ptr<const Image> image, boost::filesystem::path file)
{
- int png_color_type =
0
;
+ int png_color_type =
PNG_COLOR_TYPE_RGB
;
int bits_per_pixel = 0;
switch (image->pixel_format()) {
case AV_PIX_FMT_RGB24:
- png_color_type = PNG_COLOR_TYPE_RGB;
bits_per_pixel = 8;
break;
case AV_PIX_FMT_XYZ12LE:
- png_color_type = PNG_COLOR_TYPE_RGB;
bits_per_pixel = 16;
break;
default: