png_reader.cpp File Reference

Implementation of the claw::graphic::png::reader class. More...

#include <claw/png.hpp>
#include <claw/exception.hpp>
#include <claw/assert.hpp>
#include <limits>

Go to the source code of this file.

Functions

void claw__graphic__png__source_manager__read (png_structp png_ptr, png_bytep data, png_size_t length)
 Read data from the input stream.

Detailed Description

Implementation of the claw::graphic::png::reader class.

Author:
Julien Jorge

Definition in file png_reader.cpp.


Function Documentation

void claw__graphic__png__source_manager__read ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
)

Read data from the input stream.

Parameters:
png_ptr Informations about the PNG we are reading.
data (out) Array of the bytes we have read.
length Number of bytes to read.

Definition at line 45 of file png_reader.cpp.

Referenced by claw::graphic::png::reader::read_from_file().

00046 {
00047   claw::graphic::png::reader::source_manager* self =
00048     (claw::graphic::png::reader::source_manager*)png_get_io_ptr(png_ptr);
00049 
00050   self->read(data, length);
00051 } // claw__graphic__png__source_manager__read()


Generated on 9 Nov 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.6.1