Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: third_party/libpng/pngget.c

Issue 1467263003: third_party/libpng: update to 1.2.54 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 /* pngget.c - retrieval of values from info struct 2 /* pngget.c - retrieval of values from info struct
3 * 3 *
4 * Last changed in libpng 1.2.51 [February 6, 2014] 4 * Last changed in libpng 1.2.53 [February 26, 2015]
5 * Copyright (c) 1998-2014 Glenn Randers-Pehrson 5 * Copyright (c) 1998-2015 Glenn Randers-Pehrson
6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) 7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
8 * 8 *
9 * This code is released under the libpng license. 9 * This code is released under the libpng license.
10 * For conditions of distribution and use, see the disclaimer 10 * For conditions of distribution and use, see the disclaimer
11 * and license in png.h 11 * and license in png.h
12 * 12 *
13 */ 13 */
14 14
15 #define PNG_INTERNAL 15 #define PNG_INTERNAL
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 return (png_uint_32)(png_ptr? png_ptr->zbuf_size : 0L); 878 return (png_uint_32)(png_ptr? png_ptr->zbuf_size : 0L);
879 } 879 }
880 880
881 #ifdef PNG_ASSEMBLER_CODE_SUPPORTED 881 #ifdef PNG_ASSEMBLER_CODE_SUPPORTED
882 #ifndef PNG_1_0_X 882 #ifndef PNG_1_0_X
883 /* This function was added to libpng 1.2.0 and should exist by default */ 883 /* This function was added to libpng 1.2.0 and should exist by default */
884 png_uint_32 PNGAPI 884 png_uint_32 PNGAPI
885 png_get_asm_flags (png_structp png_ptr) 885 png_get_asm_flags (png_structp png_ptr)
886 { 886 {
887 /* Obsolete, to be removed from libpng-1.4.0 */ 887 /* Obsolete, to be removed from libpng-1.4.0 */
888 return (png_ptr? 0L: 0L); 888 PNG_UNUSED(png_ptr)
889 return 0L;
889 } 890 }
890 891
891 /* This function was added to libpng 1.2.0 and should exist by default */ 892 /* This function was added to libpng 1.2.0 and should exist by default */
892 png_uint_32 PNGAPI 893 png_uint_32 PNGAPI
893 png_get_asm_flagmask (int flag_select) 894 png_get_asm_flagmask (int flag_select)
894 { 895 {
895 /* Obsolete, to be removed from libpng-1.4.0 */ 896 /* Obsolete, to be removed from libpng-1.4.0 */
896 PNG_UNUSED(flag_select) 897 PNG_UNUSED(flag_select)
897 return 0L; 898 return 0L;
898 } 899 }
899 900
900 /* GRR: could add this: && defined(PNG_MMX_CODE_SUPPORTED) */ 901 /* GRR: could add this: && defined(PNG_MMX_CODE_SUPPORTED) */
901 /* This function was added to libpng 1.2.0 */ 902 /* This function was added to libpng 1.2.0 */
902 png_uint_32 PNGAPI 903 png_uint_32 PNGAPI
903 png_get_mmx_flagmask (int flag_select, int *compilerID) 904 png_get_mmx_flagmask (int flag_select, int *compilerID)
904 { 905 {
905 /* Obsolete, to be removed from libpng-1.4.0 */ 906 /* Obsolete, to be removed from libpng-1.4.0 */
906 PNG_UNUSED(flag_select) 907 PNG_UNUSED(flag_select)
907 *compilerID = -1; /* unknown (i.e., no asm/MMX code compiled) */ 908 *compilerID = -1; /* unknown (i.e., no asm/MMX code compiled) */
908 return 0L; 909 return 0L;
909 } 910 }
910 911
911 /* This function was added to libpng 1.2.0 */ 912 /* This function was added to libpng 1.2.0 */
912 png_byte PNGAPI 913 png_byte PNGAPI
913 png_get_mmx_bitdepth_threshold (png_structp png_ptr) 914 png_get_mmx_bitdepth_threshold (png_structp png_ptr)
914 { 915 {
915 /* Obsolete, to be removed from libpng-1.4.0 */ 916 /* Obsolete, to be removed from libpng-1.4.0 */
916 return (png_ptr? 0: 0); 917 PNG_UNUSED(png_ptr)
918 return 0L;
917 } 919 }
918 920
919 /* This function was added to libpng 1.2.0 */ 921 /* This function was added to libpng 1.2.0 */
920 png_uint_32 PNGAPI 922 png_uint_32 PNGAPI
921 png_get_mmx_rowbytes_threshold (png_structp png_ptr) 923 png_get_mmx_rowbytes_threshold (png_structp png_ptr)
922 { 924 {
923 /* Obsolete, to be removed from libpng-1.4.0 */ 925 /* Obsolete, to be removed from libpng-1.4.0 */
924 return (png_ptr? 0L: 0L); 926 PNG_UNUSED(png_ptr)
927 return 0L;
925 } 928 }
926 #endif /* ?PNG_1_0_X */ 929 #endif /* ?PNG_1_0_X */
927 #endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */ 930 #endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */
928 931
929 #ifdef PNG_SET_USER_LIMITS_SUPPORTED 932 #ifdef PNG_SET_USER_LIMITS_SUPPORTED
930 /* These functions were added to libpng 1.2.6 but not enabled 933 /* These functions were added to libpng 1.2.6 but not enabled
931 * by default. They will be enabled in libpng-1.4.0 */ 934 * by default. They will be enabled in libpng-1.4.0 */
932 png_uint_32 PNGAPI 935 png_uint_32 PNGAPI
933 png_get_user_width_max (png_structp png_ptr) 936 png_get_user_width_max (png_structp png_ptr)
934 { 937 {
935 return (png_ptr? png_ptr->user_width_max : 0); 938 return (png_ptr? png_ptr->user_width_max : 0);
936 } 939 }
937 png_uint_32 PNGAPI 940 png_uint_32 PNGAPI
938 png_get_user_height_max (png_structp png_ptr) 941 png_get_user_height_max (png_structp png_ptr)
939 { 942 {
940 return (png_ptr? png_ptr->user_height_max : 0); 943 return (png_ptr? png_ptr->user_height_max : 0);
941 } 944 }
942 #endif /* ?PNG_SET_USER_LIMITS_SUPPORTED */ 945 #endif /* ?PNG_SET_USER_LIMITS_SUPPORTED */
943 946
944 #endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */ 947 #endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698