I'm looking for an Xcode project file that will let me trivially build a dynamic framework for libpng to embed in a Mac OS X application bundle. I found this project for libpng 1.2.8, but I need something reasonably current. I can make the project file myself, but I'd rather not reinvent the wheel if I don't have to. Does this already...
I'm looking for a way to decode some png file, I heard about libpng, but I don't understand how this one works. Does it convert the png file into an array of bytes in the ARGB8888 format or something else ?
...
I'm trying to link the libpng library to my iphone application, and getting this error:
ld: warning: in /opt/local/lib/libpng.dylib, file is not of required architecture
This happens when I build for the simulator or the device.
When I build a console application however, I can link in libpng just fine.
What am I doing wrong? Is the...
I'm currently using the following to write a PNG to a file:
#include <png.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
/* Pixels in this bitmap structure are stored as BGR. */
typedef struct _RGBPixel {
uint8_t blue;
uint8_t green;
uint8_t red;
} RGBPixel;
/* Structure for containing decompressed bitmaps. ...
What is new in the soon to be released libpng 1.4 series? The DLL is almost twice the size of 1.2.41
...
I'm trying to build cairo on Windows using MinGW (and MSYS). I am following the instrucions on Compiling GTK+ 2.16.4 for Windows, except that I'm using the latest versions whenever possible, i.e:
zlib-1.2.3
libpng-1.2.42
pixman-0.17.4
cairo-1.8.8
This works pretty well up until when I try to build the actual cairo. The configuration ...
I have been using Texture2D class from standard iPhone SDK samples for loading and displaying OpenGL textures . It works fine for me, although, there is still one small problem I would like to solve.
The performance of loading PNG textures is quite slow for me. I am trying to load about 10 PNG files with 512x512 size and it takes a whil...
I've written a program to process a bunch of png files that are generated by a seperate process. The capture mostly works, however there are times when the process dies and is restarting which leaves a corrupted image. I have no way to detect when the process dies or which file it dies one (there are ~3000 png files).
Is there a good wa...
Hi, I'm trying to compile a project that uses both libjpeg and libpng. I know that libpng needs zlib, so I compiled all the three independently and put them (libjpeg.a, libpng.a and libz.a) on a folder called linrel32. What I execude then is:
g++ -Llinrel32/ program.cpp otherfile.cpp -o linrel32/executable -Izlib/ -Ilpng140/ -Ijpeg/ -lp...
Hi, I always get this error when trying to compile my file with Boost::GIL PNG IO support:
(I'm running Mac OS X Leopard and Boost 1.42, LibPNG 1.4)
/usr/local/include/boost/gil/extension/io/png_io_private.hpp: In member function 'void boost::gil::detail::png_reader::init()':
/usr/local/include/boost/gil/extension/io/png_io_private.hpp...
Hi,
I'm trying to compile libpng & zlib using the RVCT 4.0 armcc compiler. However armcc cannot find 'fcntl.h', which I assume is a standard C library. Cygwin has fcntl.h (and the associated files types.h and _types.h), but when I use those, I get various compilation errors.
Should I be using Cygwin's version of standard C libraries, o...
I've got some custom metadata to put into a PNG file. It's being saved through libpng, and it's not difficult to write out a custom chunk. I just call png_write_chunk with the name, length and data. But I can't see how to get the data back out again. I'd expect there to be a png_read_chunk function that takes a chunk name and returns...
How to use compiled LibPng sample? I have compiled it (lib png) now I want to use it with bitmap data. Can any one please share some simple AS code for USING compiled lib png?
...
Here is my function... I don't know why it's not working. The resulting image looks nothing like what the .png looks like. But there's no errors either.
bool Bullet::read_png(std::string file_name, int pos)
{
png_structp png_ptr;
png_infop info_ptr;
FILE *fp;
if ((fp = fopen(file_name.c_str(), "rb")) == NULL) {
...
I'm trying to compile SDL_Image 1.2.10 with MinGW + MSys (gcc 4.5.0) on Windows, I have compiled all the requires libs (zlib 1.2.5, libpng 1.4.2, libjpeg 8a, libtiff 3.9.2). SDL_Image compiles fine, but fails to link to libpng, throwing .libs/IMG_png.o:IMG_png.c:(.text+0x16): undefined reference errors on various png structs.
If I run ....
Hey guys.
I'm trying to add PNG support to my application and thus I want to include libpng. I know it needs zlib and thus I downloaded that as well. I went into the png folder/projects/vstudio and I opened the solution. I compiled it and it went just fine. I added some headers from it into my application and I copied the lib files. My ...
I just built libpng on a 64-bit Windows machine using VS2008. It produces a libpng.lib file inside the \projects\visualc71\Win32_Lib_Release directory (Configuration used being "LIB Release").
I used dumpbin to inspect this LIB file:
C:\Temp\libpng-1.4.3>dumpbin projects\visualc71\Win32_LIB_Release\libpng.lib
Microsoft (R) COFF/PE Dum...
I have an HBITMAP and i would like to convert it to png format(in memory i have malloc'd)as fast as possible, so my question is should i go with GDI+ or libpng?
I've tried using GDI+, but it doesn't seem as fast as i would like it to be.
I've also tried FreeImage and it was way too slow.
P.S. - I'm using C++
Thanks for reading
...
Hello,
I am new to iphone game development so apologies if I ask something stupid. =(
What I'm trying to do is to use libpng in my opengl project to load sprites using xcode.
I've downloaded the package of libpng from internet and added its source to my project but when I try to build, it gives this error:
"Command Developer/Platform...
Hello developers,
I am new to iphone developmenet. I'm trying to load PNGs using libpng but I'm unable to add it to my project after trying so much. I've got following errors while adding libpng to my project. Plz help me how to get rid of these errors:
"_deflateReset", reference from...
"_inflateEnd", referenced from...
"_*inflate", ...