Skip to content

Commit

Permalink
Explain the purpose of introducing dt_imageio_png_read_header and dt_…
Browse files Browse the repository at this point in the history
…imageio_png_read_image
  • Loading branch information
victoryforce committed Dec 19, 2024
1 parent 3decb94 commit eb91d4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/imageio/imageio_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
#include "imageio_common.h"
#include "imageio_png.h"


// Reading of PNG files also takes place in the LUT 3D module in order to obtain
// LUTs encoded in this format. To minimize code duplication, we put the code
// common to both uses (reading the header and reading the image itself) into
// two functions, dt_imageio_png_read_header and dt_imageio_png_read_image.

gboolean dt_imageio_png_read_header(const char *filename, dt_imageio_png_t *png)
{
png->f = g_fopen(filename, "rb");
Expand Down

0 comments on commit eb91d4c

Please sign in to comment.