Changeset 105469 in vbox for trunk/src/libs/libpng-1.6.43/contrib/libtests
- Timestamp:
- Jul 24, 2024 10:11:32 AM (7 months ago)
- svn:sync-xref-src-repo-rev:
- 164130
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/libpng-1.6.43/contrib/libtests/pngvalid.c
r103316 r105469 71 71 72 72 /* 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. 73 75 */ 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) 76 79 77 80 #if PNG_LIBPNG_VER < 10500 … … 10010 10013 case ALPHA_MODE_OFFSET + PNG_ALPHA_OPTIMIZED: 10011 10014 # endif /* ALPHA_MODE_SUPPORTED */ 10015 # if (defined PNG_READ_BACKGROUND_SUPPORTED) ||\ 10016 (defined PNG_READ_ALPHA_MODE_SUPPORTED) 10012 10017 do_compose = (alpha > 0 && alpha < 1); 10013 10018 use_input = (alpha != 0); 10014 10019 break; 10020 # endif 10015 10021 10016 10022 default: … … 11925 11931 11926 11932 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 } 11928 11941 11929 11942 else if (strcmp(*argv, "--noexpand16") == 0) … … 11940 11953 pm.test_lbg_gamma_composition = 0; 11941 11954 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 11944 11958 pm.test_tRNS = 1; 11945 # endif 11959 # else 11960 fprintf(stderr, "pngvalid: --tRNS: no write support\n"); 11961 return SKIP; 11962 # endif 11963 } 11946 11964 11947 11965 else if (strcmp(*argv, "--notRNS") == 0)
Note:
See TracChangeset
for help on using the changeset viewer.