mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
printf, which are unnecessary from pictureviewer.cpp and png.cpp removed
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1761 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: c4514851fe
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2011-10-19 (Wed, 19 Oct 2011)
Origin message was:
------------------
- printf, which are unnecessary from pictureviewer.cpp and png.cpp removed
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1761 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -74,7 +74,6 @@ int int_png_load(const char *name, unsigned char **buffer, int* xp, int* yp, int
|
||||
}
|
||||
// 24bit PNGs with alpha-channel
|
||||
int_bpp = 4;
|
||||
printf("##### [png.cpp]: Image: %s, bit_depth: %d, bpp: %d\n", name, bit_depth, *bpp);
|
||||
// png_set_swap_alpha(png_ptr);
|
||||
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
|
||||
png_set_tRNS_to_alpha(png_ptr);
|
||||
@@ -92,7 +91,6 @@ int int_png_load(const char *name, unsigned char **buffer, int* xp, int* yp, int
|
||||
png_set_gray_to_rgb(png_ptr);
|
||||
png_set_background(png_ptr, (png_color_16*)&my_background, PNG_BACKGROUND_GAMMA_SCREEN, 0, 1.0);
|
||||
}
|
||||
printf("##### [png.cpp]: Image: %s, bit_depth: %d\n", name, bit_depth);
|
||||
/* this test does not trigger for 8bit-paletted PNGs with newer libpng (1.2.36 at least),
|
||||
but the data delivered is with alpha channel anyway, so always strip alpha for now
|
||||
*/
|
||||
|
Reference in New Issue
Block a user