HomeSort by relevance Sort by last modified time
    Searched defs:color_type (Results 1 - 25 of 29) sorted by null

1 2

  /external/libpng/contrib/gregbook/
readppm.c 68 int bit_depth, color_type, channels; variable
96 color_type = 2;
99 color_type = 6;
102 color_type = 0;
writepng.c 88 int color_type, interlace_type; local
143 color_type = PNG_COLOR_TYPE_GRAY;
145 color_type = PNG_COLOR_TYPE_RGB;
147 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
157 mainprog_ptr->sample_depth, color_type, interlace_type,
readpng.c 73 int bit_depth, color_type; variable
135 * etc., but want bit_depth and color_type for later [don't care about
138 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
174 * and blue values, regardless of color_type: */
186 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
231 if (color_type == PNG_COLOR_TYPE_PALETTE)
233 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
245 if (color_type == PNG_COLOR_TYPE_GRAY ||
246 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
readpng2.c 214 int color_type, bit_depth; local
255 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
271 * green and blue values, regardless of color_type: */
280 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
303 if (color_type == PNG_COLOR_TYPE_PALETTE)
305 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
317 if (color_type == PNG_COLOR_TYPE_GRAY ||
318 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
  /external/chromium_org/third_party/freetype/src/sfnt/
pngshim.c 194 int bitdepth, color_type, interlace; local
238 &bitdepth, &color_type, &interlace,
247 if ( color_type == PNG_COLOR_TYPE_PALETTE )
251 if ( color_type == PNG_COLOR_TYPE_GRAY )
271 if ( color_type == PNG_COLOR_TYPE_GRAY ||
272 color_type == PNG_COLOR_TYPE_GRAY_ALPHA )
284 &bitdepth, &color_type, &interlace,
288 !( color_type == PNG_COLOR_TYPE_RGB ||
289 color_type == PNG_COLOR_TYPE_RGB_ALPHA ) )
295 switch ( color_type )
    [all...]
  /external/chromium_org/ui/gfx/android/
java_bitmap.cc 45 static int SkColorTypeToBitmapFormat(SkColorType color_type) {
46 switch (color_type) {
64 SkColorType color_type) {
67 int java_bitmap_config = SkColorTypeToBitmapFormat(color_type);
75 SkColorType color_type = skbitmap->colorType(); local
76 DCHECK((color_type == kRGB_565_SkColorType) ||
77 (color_type == kN32_SkColorType));
79 skbitmap->width(), skbitmap->height(), color_type);
  /external/opencv/otherlibs/highgui/
grfmt_png.cpp 152 int bit_depth, color_type; local
158 &bit_depth, &color_type, 0, 0, 0 );
160 m_iscolor = color_type == PNG_COLOR_TYPE_RGB ||
161 color_type == PNG_COLOR_TYPE_RGB_ALPHA ||
162 color_type == PNG_COLOR_TYPE_PALETTE;
166 m_color_type = color_type;
  /bootable/recovery/minui/
resources.c 93 int color_type, bit_depth; local
95 &color_type, NULL, NULL, NULL);
99 if (bit_depth == 8 && *channels == 3 && color_type == PNG_COLOR_TYPE_RGB) {
101 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_GRAY) {
104 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) {
112 fprintf(stderr, "minui doesn't support PNG depth %d channels %d color_type %d\n",
113 bit_depth, *channels, color_type);
  /external/chromium_org/chrome/browser/ui/app_list/
fast_show_pickler.cc 122 SkColorType color_type = kUnknown_SkColorType; local
123 if (!FormatToColorType(format, &color_type))
136 width, height, color_type, kPremul_SkAlphaType)))
  /external/chromium_org/third_party/libvpx/source/libvpx/
vpxenc.h 41 ColorInputType color_type; member in struct:VpxEncoderConfig
  /external/freetype/src/sfnt/
pngshim.c 196 int bitdepth, color_type, interlace; local
249 &bitdepth, &color_type, &interlace,
280 if ( color_type == PNG_COLOR_TYPE_PALETTE )
284 if ( color_type == PNG_COLOR_TYPE_GRAY )
304 if ( color_type == PNG_COLOR_TYPE_GRAY ||
305 color_type == PNG_COLOR_TYPE_GRAY_ALPHA )
317 &bitdepth, &color_type, &interlace,
321 !( color_type == PNG_COLOR_TYPE_RGB ||
322 color_type == PNG_COLOR_TYPE_RGB_ALPHA ) )
328 switch ( color_type )
    [all...]
  /external/libpng/contrib/examples/
pngpixel.c 181 int bit_depth, color_type, interlace_method, local
216 &bit_depth, &color_type, &interlace_method,
  /external/libpng/contrib/pngminus/
png2pnm.c 203 int color_type; local
248 &width, &height, &bit_depth, &color_type,
254 if (color_type == PNG_COLOR_TYPE_PALETTE)
257 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
268 if (color_type == PNG_COLOR_TYPE_GRAY ||
269 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
282 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
295 if (color_type == PNG_COLOR_TYPE_GRAY)
297 else if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
299 else if (color_type == PNG_COLOR_TYPE_RGB
    [all...]
pnm2png.c 200 int color_type; local
230 color_type = PNG_COLOR_TYPE_GRAY;
247 color_type = PNG_COLOR_TYPE_GRAY;
272 color_type = PNG_COLOR_TYPE_RGB;
302 if (color_type == PNG_COLOR_TYPE_GRAY)
303 color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
304 if (color_type == PNG_COLOR_TYPE_RGB)
305 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
348 if (color_type == PNG_COLOR_TYPE_GRAY)
350 else if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA
    [all...]
  /development/tools/etc1tool/
etc1tool.cpp 195 int bit_depth, color_type; local
197 &color_type, NULL, NULL, NULL);
  /external/libpng/
pnginfo.h 67 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */ member in struct:png_info_def
pngrtran.c 957 /* Need the IHDR here because of the check on color_type below. */
981 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
2235 int color_type; local
    [all...]
pngrutil.c 823 int bit_depth, color_type, compression_type, filter_type; local
843 color_type = buf[9];
853 png_ptr->color_type = (png_byte)color_type;
860 switch (png_ptr->color_type)
889 color_type, interlace_type, compression_type, filter_type);
927 if (!(png_ptr->color_type & PNG_COLOR_MASK_COLOR))
935 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
946 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
987 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE
    [all...]
pngstruct.h 299 png_byte color_type; /* color type of file */ member in struct:png_struct_def
  /external/chromium_org/tools/imagediff/
image_diff_png.cc 149 int bit_depth, color_type, interlace_type, compression_type; local
152 png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
168 if (color_type == PNG_COLOR_TYPE_PALETTE ||
169 (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8))
181 if (color_type == PNG_COLOR_TYPE_GRAY ||
182 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
  /external/chromium_org/ui/gfx/codec/
png_codec.cc 162 int bit_depth, color_type, interlace_type, compression_type; local
165 png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
186 if (color_type == PNG_COLOR_TYPE_PALETTE ||
187 (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8))
191 bool input_has_alpha = ((color_type & PNG_COLOR_MASK_ALPHA) != 0);
243 if (color_type == PNG_COLOR_TYPE_GRAY ||
244 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
  /external/libpng/contrib/libtests/
makepng.c 111 channels_of_type(int color_type)
113 if (color_type & PNG_COLOR_MASK_PALETTE)
120 if (color_type & PNG_COLOR_MASK_COLOR)
123 if (color_type & PNG_COLOR_MASK_ALPHA)
132 pixel_depth_of_type(int color_type, int bit_depth)
134 return channels_of_type(color_type) * bit_depth;
138 image_size_of_type(int color_type, int bit_depth, unsigned int *colors)
145 int pixel_depth = pixel_depth_of_type(color_type, bit_depth);
310 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type,
314 png_uint_32 size_max = image_size_of_type(color_type, bit_depth, colors)-1
1281 int color_type = 8; \/* invalid *\/ local
    [all...]
pngimage.c 55 * 1) Color mask bits required - simply a mask to AND with color_type; one of
520 int color_type; member in struct:display
867 &dp->width, &dp->height, &dp->bit_depth, &dp->color_type,
878 int ct = dp->color_type;
919 int bit_depth, color_type; local
924 &color_type, &interlace_method, &compression_method, &filter_method);
934 C(color_type);
989 color_type == PNG_COLOR_TYPE_PALETTE)
1027 switch (color_type)
1057 color_type);
    [all...]
  /external/chromium_org/third_party/libpng/
pngrtran.c 560 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) ||
561 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE))
717 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
792 int color_type = png_ptr->color_type; local
801 * Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or
809 !(color_type & PNG_COLOR_MASK_COLOR))
826 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */
875 else if (color_type == PNG_COLOR_TYPE_PALETTE)
911 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0
    [all...]
pngrutil.c 445 int bit_depth, color_type, compression_type, filter_type; local
465 color_type = buf[9];
475 png_ptr->color_type = (png_byte)color_type;
482 switch (png_ptr->color_type)
510 color_type, interlace_type, compression_type, filter_type);
540 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR))
548 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
557 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
601 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE
    [all...]

Completed in 1181 milliseconds

1 2