Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
image_portable.hpp File Reference

This file defines the image_portable class, which is a base class for different image formats. More...

#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <cstring>
Include dependency graph for image_portable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  image_portable
 Base class for portable image formats. This class provides an interface for reading and writing portable image formats, such as PGM and PPM. It defines pure virtual methods for reading the number of lines and columns of an image, reading an image into a buffer, and writing an image from a buffer. Derived classes must implement these methods to provide support for a specific image format. More...
 

Macros

#define allocation_tableau(nom, type, nombre)
 Allocate a dynamic array of a given type and size.
 

Typedefs

typedef unsigned char OCTET
 

Detailed Description

This file defines the image_portable class, which is a base class for different image formats.

Authors
Katia Auxilien, William Puech
Date
Mai 2024 - Tue Mar 31 13:26:36 2005

It provides a protected method for ignoring comments in a file. Source file is image.h, ICAR_Library, by William Puech, Tue Mar 31 13:26:36 2005

Macro Definition Documentation

◆ allocation_tableau

#define allocation_tableau ( nom,
type,
nombre )
Value:
if ((nom = (type *)calloc(nombre, sizeof(type))) == NULL) \
{ \
printf("\n Allocation dynamique impossible pour un pointeur-tableau \n"); \
exit(EXIT_FAILURE); \
}

Allocate a dynamic array of a given type and size.

Parameters
nomThe name of the pointer to the array.
typeThe type of the elements in the array.
nombreThe number of elements in the array.
Author
William Puech
Date
Tue Mar 31 13:26:36 2005

Typedef Documentation

◆ OCTET

typedef unsigned char OCTET