"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/heif/heif_im2im.c" between
libgd-2.3.2.tar.gz and libgd-2.3.3.tar.gz

About: LibGD is a library for the dynamic creation of images by programmers (PNG, JPEG, GIF, WebP, XPM, BMP support).

heif_im2im.c  (libgd-2.3.2):heif_im2im.c  (libgd-2.3.3)
skipping to change at line 13 skipping to change at line 13
* decoded `4:4:4` HEIF lossless image. * decoded `4:4:4` HEIF lossless image.
*/ */
#include "gd.h" #include "gd.h"
#include "gdtest.h" #include "gdtest.h"
#include <libheif/heif.h> #include <libheif/heif.h>
int main() int main()
{ {
gdImagePtr src, dst; gdImagePtr src = NULL, dst = NULL;
int r, g, b; int r, g, b;
void *p; void *p = NULL;
int size = 0; int size = 0;
CuTestImageResult result = {0, 0}; CuTestImageResult result = {0, 0};
if (!gdTestAssertMsg(heif_get_version_number_major() == 1 && heif_get_ver
sion_number_minor() >= 9, "changing chroma subsampling is not supported in this
libheif version\n"))
return 77;
if (!gdTestAssertMsg(heif_have_decoder_for_format(heif_compression_HEVC) && heif_have_encoder_for_format(heif_compression_HEVC), "HEVC codec support miss ing from libheif\n")) if (!gdTestAssertMsg(heif_have_decoder_for_format(heif_compression_HEVC) && heif_have_encoder_for_format(heif_compression_HEVC), "HEVC codec support miss ing from libheif\n"))
return 77; return 77;
src = gdImageCreateTrueColor(100, 100); src = gdImageCreateTrueColor(100, 100);
gdTestAssertMsg(src != NULL, "could not create src\n"); gdTestAssertMsg(src != NULL, "could not create src\n");
/* libheif seems to have some rounding issues */ /* libheif seems to have some rounding issues */
r = gdImageColorAllocate(src, 0xFE, 0, 0); r = gdImageColorAllocate(src, 0xFE, 0, 0);
g = gdImageColorAllocate(src, 0, 0xFE, 0); g = gdImageColorAllocate(src, 0, 0xFE, 0);
b = gdImageColorAllocate(src, 0, 0, 0xFE); b = gdImageColorAllocate(src, 0, 0, 0xFE);
gdImageFilledRectangle(src, 0, 0, 99, 99, r); gdImageFilledRectangle(src, 0, 0, 99, 99, r);
 End of changes. 3 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)