VirtualBox

Ignore:
Timestamp:
Jul 24, 2024 10:11:32 AM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164130
Message:

libpng-1.6.43: Applied and adjusted our libpng changes to 1.6.43. bugref:8515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libpng-1.6.43/contrib/libtests/pngvalid.c

    r103316 r105469  
    7171
    7272/* pngvalid requires write support and one of the fixed or floating point APIs.
     73 * progressive read is also required currently as the progressive read pointer
     74 * is used to record the 'display' structure.
    7375 */
    74 #if defined(PNG_WRITE_SUPPORTED) &&\
    75    (defined(PNG_FIXED_POINT_SUPPORTED) || defined(PNG_FLOATING_POINT_SUPPORTED))
     76#if defined PNG_WRITE_SUPPORTED &&\
     77   (defined PNG_PROGRESSIVE_READ_SUPPORTED) &&\
     78   (defined PNG_FIXED_POINT_SUPPORTED || defined PNG_FLOATING_POINT_SUPPORTED)
    7679
    7780#if PNG_LIBPNG_VER < 10500
     
    1001010013               case ALPHA_MODE_OFFSET + PNG_ALPHA_OPTIMIZED:
    1001110014#           endif /* ALPHA_MODE_SUPPORTED */
     10015#           if (defined PNG_READ_BACKGROUND_SUPPORTED) ||\
     10016               (defined PNG_READ_ALPHA_MODE_SUPPORTED)
    1001210017               do_compose = (alpha > 0 && alpha < 1);
    1001310018               use_input = (alpha != 0);
    1001410019               break;
     10020#           endif
    1001510021
    1001610022            default:
     
    1192511931
    1192611932      else if (strcmp(*argv, "--expand16") == 0)
    11927          pm.test_gamma_expand16 = 1;
     11933      {
     11934#        ifdef PNG_READ_EXPAND_16_SUPPORTED
     11935            pm.test_gamma_expand16 = 1;
     11936#        else
     11937            fprintf(stderr, "pngvalid: --expand16: no read support\n");
     11938            return SKIP;
     11939#        endif
     11940      }
    1192811941
    1192911942      else if (strcmp(*argv, "--noexpand16") == 0)
     
    1194011953            pm.test_lbg_gamma_composition = 0;
    1194111954
    11942 #     ifdef PNG_WRITE_tRNS_SUPPORTED
    11943          else if (strcmp(*argv, "--tRNS") == 0)
     11955      else if (strcmp(*argv, "--tRNS") == 0)
     11956      {
     11957#        ifdef PNG_WRITE_tRNS_SUPPORTED
    1194411958            pm.test_tRNS = 1;
    11945 #     endif
     11959#        else
     11960            fprintf(stderr, "pngvalid: --tRNS: no write support\n");
     11961            return SKIP;
     11962#        endif
     11963      }
    1194611964
    1194711965      else if (strcmp(*argv, "--notRNS") == 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette