Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
|
The image_pgm class provides methods to read and write PGM images with various bit depths. More...
#include <image_pgm.hpp>
Static Public Member Functions | |
static uint8_t | lire_image_pgm_and_get_maxgrey (char nom_image[], uint8_t *pt_image, int taille_image) |
Reads a PGM image with 8-bit depth and returns the maximum grey value. | |
static void | ecrire_image_pgm_variable_size (char nom_image[], uint8_t *pt_image, int nb_lignes, int nb_colonnes, uint8_t max_value) |
Writes a PGM image with variable size. | |
static uint16_t | lire_image_pgm_and_get_maxgrey (char nom_image[], uint16_t *pt_image, int taille_image) |
Reads a PGM image with 16-bit depth and returns the maximum grey value. | |
static void | ecrire_image_pgm_variable_size (char nom_image[], uint16_t *pt_image, int nb_lignes, int nb_colonnes, uint16_t max_value) |
Writes a PGM image with variable size and 16-bit depth. | |
static void | write_image_pgm_compressed_variable_size (char nom_image[], uint16_t *pt_image, int nb_lignes, int nb_colonnes, uint16_t max_value, int imgSize, int nHOriginal, int nWOriginal) |
Writes a compressed PGM image with variable size and 16-bit depth. | |
static pair< int, int > | read_image_pgm_compressed_and_get_originalDimension (char nom_image[], uint16_t *pt_image) |
Reads a compressed PGM image with 16-bit depth and returns the original dimensions. | |
static uint32_t | lire_image_pgm_and_get_maxgrey (char nom_image[], uint32_t *pt_image, int taille_image) |
Reads a PGM image with 32-bit depth and returns the maximum grey value. | |
static void | ecrire_image_pgm_variable_size (char nom_image[], uint32_t *pt_image, int nb_lignes, int nb_colonnes, uint32_t max_value) |
Writes a PGM image with variable size and 32-bit depth. | |
static uint64_t | lire_image_pgm_and_get_maxgrey (char nom_image[], uint64_t *pt_image, int taille_image) |
Reads a PGM image with 64-bit depth and returns the maximum grey value. | |
static void | ecrire_image_pgm_variable_size (char nom_image[], uint64_t *pt_image, int nb_lignes, int nb_colonnes, uint64_t max_value) |
Writes a PGM image with variable size and 64-bit depth. | |
static void | lire_image_pgm_variable_size (char nom_image[], uint64_t *pt_image, int taille_image) |
Reads a PGM image with variable size and 64-bit depth. | |
static void | lire_nb_lignes_colonnes_image_p (char nom_image[], int *nb_lignes, int *nb_colonnes) |
Reads the number of lines and columns of a PGM image. | |
static void | lire_image_p (char nom_image[], OCTET *pt_image, int taille_image) |
Reads a PGM image with variable size and stores it in an OCTET array. | |
static void | ecrire_image_p (char nom_image[], OCTET *pt_image, int nb_lignes, int nb_colonnes) |
Writes a PGM image from an OCTET array with given dimensions. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from image_portable | |
static void | ignorer_commentaires (FILE *f) |
A base class for different image formats. | |
The image_pgm class provides methods to read and write PGM images with various bit depths.
|
static |
Writes a PGM image from an OCTET array with given dimensions.
nom_image | The name of the image file. |
pt_image | The pointer to the OCTET array. |
nb_lignes | The number of lines in the image. |
nb_colonnes | The number of columns in the image. |
|
static |
Writes a PGM image with variable size and 16-bit depth.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
nb_lignes | The number of lines in the image. |
nb_colonnes | The number of columns in the image. |
max_value | The maximum value in the image. |
|
static |
Writes a PGM image with variable size and 32-bit depth.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
nb_lignes | The number of lines in the image. |
nb_colonnes | The number of columns in the image. |
max_value | The maximum value in the image. |
|
static |
Writes a PGM image with variable size and 64-bit depth.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
nb_lignes | The number of lines in the image. |
nb_colonnes | The number of columns in the image. |
max_value | The maximum value in the image. |
|
static |
Writes a PGM image with variable size.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
nb_lignes | The number of lines in the image. |
nb_colonnes | The number of columns in the image. |
max_value | The maximum value in the image. |
|
static |
Reads a PGM image with variable size and stores it in an OCTET array.
nom_image | The name of the image file. |
pt_image | The pointer to the OCTET array. |
taille_image | The size of the image. |
|
static |
Reads a PGM image with 16-bit depth and returns the maximum grey value.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
taille_image | The size of the image. |
|
static |
Reads a PGM image with 32-bit depth and returns the maximum grey value.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
taille_image | The size of the image. |
|
static |
Reads a PGM image with 64-bit depth and returns the maximum grey value.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
taille_image | The size of the image. |
|
static |
Reads a PGM image with 8-bit depth and returns the maximum grey value.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
taille_image | The size of the image. |
|
static |
Reads a PGM image with variable size and 64-bit depth.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
taille_image | The size of the image. |
|
static |
Reads the number of lines and columns of a PGM image.
nom_image | The name of the image file. |
nb_lignes | The pointer to store the number of lines. |
nb_colonnes | The pointer to store the number of columns. |
|
static |
Reads a compressed PGM image with 16-bit depth and returns the original dimensions.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
|
static |
Writes a compressed PGM image with variable size and 16-bit depth.
nom_image | The name of the image file. |
pt_image | The pointer to the image data. |
nb_lignes | The number of lines in the image. |
nb_colonnes | The number of columns in the image. |
max_value | The maximum value in the image. |
imgSize | The size of the image. |
nHOriginal | The original number of lines. |
nWOriginal | The original number of columns. |