Classes | Functions

ut_png.cpp File Reference

#include <string.h>
#include <png.h>
#include "ut_assert.h"
#include "ut_bytebuf.h"
#include "ut_debugmsg.h"

Classes

struct  _bb

Functions

static void _png_read (png_structp png_ptr, png_bytep data, png_size_t length)
bool UT_PNG_getDimensions (const UT_ConstByteBufPtr &pBB, UT_sint32 &iImageWidth, UT_sint32 &iImageHeight)

Function Documentation

static void _png_read ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
) [static]

References _bb::iCurPos, _bb::pBB, and UT_WARNINGMSG.

Referenced by UT_PNG_getDimensions().

bool UT_PNG_getDimensions ( const UT_ConstByteBufPtr pBB,
UT_sint32 iImageWidth,
UT_sint32 iImageHeight 
)