Searched refs:color_type (Results 1 - 25 of 46) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/
H A Dpng.c60 int ff_png_get_nb_channels(int color_type) argument
64 if ((color_type & (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)) ==
67 if (color_type & PNG_COLOR_MASK_ALPHA)
H A Dimgconvert.c64 uint8_t color_type; /**< color type (see FF_COLOR_xxx constants) */ member in struct:PixFmtInfo
75 .color_type = FF_COLOR_YUV,
81 .color_type = FF_COLOR_YUV,
87 .color_type = FF_COLOR_YUV,
93 .color_type = FF_COLOR_YUV,
99 .color_type = FF_COLOR_YUV,
105 .color_type = FF_COLOR_YUV,
111 .color_type = FF_COLOR_YUV,
117 .color_type = FF_COLOR_YUV,
123 .color_type
[all...]
H A Dpng.h65 int ff_png_get_nb_channels(int color_type);
H A Dpngdec.c45 int color_type; member in struct:PNGDecContext
82 int color_type, const uint8_t *src)
110 if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
291 if (s->color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
308 s->color_type == PNG_COLOR_TYPE_RGB && s->y > 0)
314 s->color_type == PNG_COLOR_TYPE_RGB)
334 s->color_type, s->last_row);
441 s->color_type = bytestream2_get_byte(&s->gb);
447 av_dlog(avctx, "width=%d height=%d depth=%d color_type=%d compression_type=%d filter_type=%d interlace_type=%d\n",
448 s->width, s->height, s->bit_depth, s->color_type,
80 png_put_interlaced_row(uint8_t *dst, int width, int bits_per_pixel, int pass, int color_type, const uint8_t *src) argument
[all...]
H A Dpngenc.c236 int bit_depth, color_type, y, len, row_size, ret, is_progressive; local
257 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
261 color_type = PNG_COLOR_TYPE_RGB;
265 color_type = PNG_COLOR_TYPE_GRAY;
269 color_type = PNG_COLOR_TYPE_GRAY;
273 color_type = PNG_COLOR_TYPE_PALETTE;
278 bits_per_pixel = ff_png_get_nb_channels(color_type) * bit_depth;
300 if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
305 if (is_progressive || color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
318 s->buf[9] = color_type;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/
H A Dpng.c49 int ff_png_get_nb_channels(int color_type) argument
53 if ((color_type & (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)) ==
56 if (color_type & PNG_COLOR_MASK_ALPHA)
H A Dpng.h62 int ff_png_get_nb_channels(int color_type);
H A Dpngenc.c239 int bit_depth, color_type, y, len, row_size, ret, is_progressive; local
252 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
256 color_type = PNG_COLOR_TYPE_RGB;
260 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
264 color_type = PNG_COLOR_TYPE_RGB;
268 color_type = PNG_COLOR_TYPE_GRAY;
272 color_type = PNG_COLOR_TYPE_GRAY;
276 color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
280 color_type = PNG_COLOR_TYPE_GRAY;
284 color_type
[all...]
H A Dpngdec.c46 int color_type; member in struct:PNGDecContext
92 int color_type, const uint8_t *src)
307 s->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
310 s->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
319 s->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
322 s->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
343 s->color_type, s->last_row);
587 s->color_type = bytestream2_get_byte(&s->gb);
594 av_log(avctx, AV_LOG_DEBUG, "width=%d height=%d depth=%d color_type=%d "
596 s->width, s->height, s->bit_depth, s->color_type,
90 png_put_interlaced_row(uint8_t *dst, int width, int bits_per_pixel, int pass, int color_type, const uint8_t *src) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpng/libpng-1.2.50/contrib/gregbook/
H A Dreadppm.c68 int bit_depth, color_type, channels; variable
96 color_type = 2;
99 color_type = 6;
102 color_type = 0;
H A Dreadpng.c72 int bit_depth, color_type; variable
134 * etc., but want bit_depth and color_type for later [don't care about
137 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
173 * and blue values, regardless of color_type: */
185 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
226 if (color_type == PNG_COLOR_TYPE_PALETTE)
228 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
234 if (color_type == PNG_COLOR_TYPE_GRAY ||
235 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
H A Dreadpng2.c381 int color_type, bit_depth; local
418 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
434 * green and blue values, regardless of color_type: */
443 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
466 if (color_type == PNG_COLOR_TYPE_PALETTE)
468 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
474 if (color_type == PNG_COLOR_TYPE_GRAY ||
475 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
H A Dwritepng.c87 int color_type, interlace_type; local
141 color_type = PNG_COLOR_TYPE_GRAY;
143 color_type = PNG_COLOR_TYPE_RGB;
145 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
155 mainprog_ptr->sample_depth, color_type, interlace_type,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpng/libpng-1.2.50/contrib/pngminus/
H A Dpng2pnm.c202 int color_type; local
247 &width, &height, &bit_depth, &color_type,
253 if (color_type == PNG_COLOR_TYPE_PALETTE)
256 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
267 if (color_type == PNG_COLOR_TYPE_GRAY ||
268 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
281 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
294 if (color_type == PNG_COLOR_TYPE_GRAY)
296 else if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
298 else if (color_type
[all...]
H A Dpnm2png.c199 int color_type; local
222 color_type = PNG_COLOR_TYPE_GRAY;
228 color_type = PNG_COLOR_TYPE_GRAY;
249 color_type = PNG_COLOR_TYPE_RGB;
276 if (color_type == PNG_COLOR_TYPE_GRAY)
277 color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
278 if (color_type == PNG_COLOR_TYPE_RGB)
279 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
319 if (color_type == PNG_COLOR_TYPE_GRAY)
321 else if (color_type
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpng/libpng-1.2.50/
H A Dpngwtran.c39 /* png_byte color_type; color type of pixels */
228 row_info->color_type != PNG_COLOR_TYPE_PALETTE)
233 if (row_info->color_type & PNG_COLOR_MASK_COLOR)
251 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
352 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
392 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
441 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
483 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
532 (row_info->color_type & PNG_COLOR_MASK_COLOR))
541 if (row_info->color_type
[all...]
H A Dpngrtran.c560 (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
[all...]
H A Dpngtrans.c136 if (png_ptr->color_type == PNG_COLOR_TYPE_RGB)
144 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
216 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
228 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
241 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
439 if ((row_info->color_type == PNG_COLOR_TYPE_RGB ||
440 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA &&
520 else if ((row_info->color_type == PNG_COLOR_TYPE_GRAY ||
521 (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
577 row_info->color_type
[all...]
H A Dexample.c89 int bit_depth, color_type, interlace_type;
101 int bit_depth, color_type, interlace_type;
177 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
204 if (color_type == PNG_COLOR_TYPE_PALETTE)
208 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
277 if (color_type & PNG_COLOR_MASK_COLOR)
319 if (color_type & PNG_COLOR_MASK_COLOR)
635 * the color_type selected. color_type is one of PNG_COLOR_TYPE_GRAY,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/png/
H A Dpngwtran.c34 /* png_byte color_type; color type of pixels */
221 row_info->color_type != PNG_COLOR_TYPE_PALETTE)
226 if (row_info->color_type & PNG_COLOR_MASK_COLOR)
244 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
344 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
384 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
432 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
468 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
513 (row_info->color_type & PNG_COLOR_MASK_COLOR))
522 if (row_info->color_type
[all...]
H A Dpngrtran.c94 /* Note: if need_expand is set and color_type is either RGB or RGB_ALPHA
100 if ((need_expand && !(png_ptr->color_type & PNG_COLOR_MASK_COLOR)) ||
535 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) ||
536 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE))
632 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
699 int color_type = png_ptr->color_type; local
706 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */
733 else if (color_type == PNG_COLOR_TYPE_PALETTE)
768 if ((color_type
[all...]
H A Dexample.c83 int bit_depth, color_type, interlace_type;
94 int bit_depth, color_type, interlace_type;
169 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
196 if (color_type == PNG_COLOR_TYPE_PALETTE)
200 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
268 if (color_type & PNG_COLOR_MASK_COLOR)
310 if (color_type & PNG_COLOR_MASK_COLOR)
623 * the color_type selected. color_type is one of PNG_COLOR_TYPE_GRAY,
H A Dpngset.c247 int color_type, int interlace_type, int compression_type,
279 if (color_type < 0 || color_type == 1 ||
280 color_type == 5 || color_type > 6)
283 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
284 ((color_type == PNG_COLOR_TYPE_RGB ||
285 color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
286 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
303 * 5. The color_type i
245 png_set_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument
[all...]
H A Dpngtrans.c108 if (png_ptr->color_type == PNG_COLOR_TYPE_RGB)
116 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
175 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
187 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
200 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
395 if (row_info->color_type == PNG_COLOR_TYPE_RGB &&
474 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY &&
542 (row_info->color_type & PNG_COLOR_MASK_COLOR))
547 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
559 else if (row_info->color_type
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/flac-1.2.1/src/share/grabbag/
H A Dpicture.c134 FLAC__bool need_palette = false; /* if IHDR has color_type=3, we need to also read the PLTE chunk to get the #colors */
143 unsigned color_type = data[17]; local
146 if(color_type == 3) {
147 /* even though the bit depth for color_type==3 can be 1,2,4,or 8,
157 if(color_type == 0) /* greyscale, 1 sample per pixel */
159 if(color_type == 2) /* truecolor, 3 samples per pixel */
161 if(color_type == 4) /* greyscale+alpha, 2 samples per pixel */
163 if(color_type == 6) /* truecolor+alpha, 4 samples per pixel */

Completed in 304 milliseconds

12