MCPcopy Create free account
hub / github.com/cinder/Cinder / ci_PNG_stream_reader

Function ci_PNG_stream_reader

src/cinder/ImageSourcePng.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36extern "C" {
37
38static void ci_PNG_stream_reader( png_structp mPngPtr, png_bytep data, png_size_t length )
39{
40 try {
41 ((ci_png_info*)png_get_io_ptr(mPngPtr))->srcStreamRef->readData( data, (size_t)length );
42 }
43 catch( std::exception &exc ) {
44 CI_LOG_W( "failed to read png, what: " << exc.what() );
45 longjmp( png_jmpbuf(mPngPtr), 1 );
46 }
47}
48
49static void ci_png_warning( png_structp /*mPngPtr*/, png_const_charp /*message*/ )
50{

Callers

nothing calls this directly

Calls 2

readDataMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected