mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Don't print TRACE() output by default from gif_format.cpp
This commit is contained in:
parent
759326f1b6
commit
07077c139d
@ -48,6 +48,8 @@
|
||||
#define GifBitSize BitSize
|
||||
#endif
|
||||
|
||||
#define GIF_TRACE(...)
|
||||
|
||||
// GifBitSize can return 9 (it's a bug in giflib)
|
||||
#define GifBitSizeLimited(v) (MIN(GifBitSize(v), 8))
|
||||
|
||||
@ -217,8 +219,8 @@ public:
|
||||
, m_remap(256)
|
||||
, m_hasLocalColormaps(false)
|
||||
, m_firstLocalColormap(nullptr) {
|
||||
TRACE("GIF: background index=%d\n", (int)m_gifFile->SBackGroundColor);
|
||||
TRACE("GIF: global colormap=%d, ncolors=%d\n",
|
||||
GIF_TRACE("GIF: background index=%d\n", (int)m_gifFile->SBackGroundColor);
|
||||
GIF_TRACE("GIF: global colormap=%d, ncolors=%d\n",
|
||||
(m_gifFile->SColorMap ? 1: 0),
|
||||
(m_gifFile->SColorMap ? m_gifFile->SColorMap->ColorCount: 0));
|
||||
}
|
||||
@ -341,7 +343,7 @@ private:
|
||||
std::unique_ptr<Image> frameImage(
|
||||
readFrameIndexedImage(frameBounds));
|
||||
|
||||
TRACE("GIF: Frame[%d] transparent index = %d\n", (int)m_frameNum, m_localTransparentIndex);
|
||||
GIF_TRACE("GIF: Frame[%d] transparent index = %d\n", (int)m_frameNum, m_localTransparentIndex);
|
||||
|
||||
if (m_frameNum == 0) {
|
||||
if (m_localTransparentIndex >= 0)
|
||||
@ -356,7 +358,7 @@ private:
|
||||
// Convert the sprite to RGB if we have more than 256 colors
|
||||
if ((m_sprite->pixelFormat() == IMAGE_INDEXED) &&
|
||||
(m_sprite->palette(m_frameNum)->size() > 256)) {
|
||||
TRACE("GIF: Converting to RGB because we have %d colors\n",
|
||||
GIF_TRACE("GIF: Converting to RGB because we have %d colors\n",
|
||||
m_sprite->palette(m_frameNum)->size());
|
||||
|
||||
convertIndexedSpriteToRgb();
|
||||
@ -475,7 +477,7 @@ private:
|
||||
int ncolors = colormap->ColorCount;
|
||||
bool isLocalColormap = (m_gifFile->Image.ColorMap ? true: false);
|
||||
|
||||
TRACE("GIF: Local colormap=%d, ncolors=%d\n", isLocalColormap, ncolors);
|
||||
GIF_TRACE("GIF: Local colormap=%d, ncolors=%d\n", isLocalColormap, ncolors);
|
||||
|
||||
// We'll calculate the list of used colormap indexes in this
|
||||
// frameImage.
|
||||
@ -558,7 +560,7 @@ private:
|
||||
// Number of colors in the image that aren't in the palette.
|
||||
int missing = (usedNColors - found);
|
||||
|
||||
TRACE("GIF: Bg index=%d,\n"
|
||||
GIF_TRACE("GIF: Bg index=%d,\n"
|
||||
" Local transparent index=%d,\n"
|
||||
" Need extra index to show bg color=%d,\n "
|
||||
" Found colors in palette=%d,\n"
|
||||
@ -695,7 +697,7 @@ private:
|
||||
m_localTransparentIndex = (extension[1] & 1) ? extension[4]: -1;
|
||||
m_frameDelay = (extension[3] << 8) | extension[2];
|
||||
|
||||
TRACE("GIF: Disposal method: %d\n Transparent index: %d\n Frame delay: %d\n",
|
||||
GIF_TRACE("GIF: Disposal method: %d\n Transparent index: %d\n Frame delay: %d\n",
|
||||
m_disposalMethod, m_localTransparentIndex, m_frameDelay);
|
||||
}
|
||||
}
|
||||
@ -1133,7 +1135,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
TRACE("GIF: frameBounds=%d %d %d %d prev=%d %d %d %d next=%d %d %d %d\n",
|
||||
GIF_TRACE("GIF: frameBounds=%d %d %d %d prev=%d %d %d %d next=%d %d %d %d\n",
|
||||
frameBounds.x, frameBounds.y, frameBounds.w, frameBounds.h,
|
||||
prev.x, prev.y, prev.w, prev.h,
|
||||
next.x, next.y, next.w, next.h);
|
||||
|
Loading…
Reference in New Issue
Block a user