#ifndef __PNG_TEXT_H__
#define __PNG_TEXT_H__

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <png.h>
#include <math.h>

struct ihdrs{
   //Width:              4 bytes
    u_int32_t width;
   //Height:             4 bytes
    u_int32_t height;
   //Bit depth:          1 byte
    char bit_depth;
   //Color type:         1 byte
    char color_type;
   //Compression method: 1 byte
    char compression_method;
   //Filter method:      1 byte
    char filter_method;
   //Interlace method:   1 byte
    char interlace_method;

};


int Valid_Png(char *filename);




#endif
