Home
last modified time | relevance | path

Searched refs:bits_per_pixel (Results 1 – 25 of 52) sorted by relevance

123

/external/ImageMagick/coders/
Dpalm.c259 bits_per_pixel, in ReadPALMImage() local
321 bits_per_pixel=(size_t) ReadBlobByte(image); in ReadPALMImage()
322 if ((bits_per_pixel != 1) && (bits_per_pixel != 2) && in ReadPALMImage()
323 (bits_per_pixel != 4) && (bits_per_pixel != 8) && in ReadPALMImage()
324 (bits_per_pixel != 16)) in ReadPALMImage()
342 if ((bits_per_pixel < 16) && in ReadPALMImage()
343 (AcquireImageColormap(image,one << bits_per_pixel,exception) == MagickFalse)) in ReadPALMImage()
346 if (bits_per_pixel == 16) /* Direct Color */ in ReadPALMImage()
360 if (bits_per_pixel == 8) in ReadPALMImage()
381 for (i=0; i < (ssize_t) (1L << bits_per_pixel); i++) in ReadPALMImage()
[all …]
Ddib.c86 bits_per_pixel; member
531 dib_info.bits_per_pixel=ReadBlobLSBShort(image); in ReadDIBImage()
532 if (dib_info.bits_per_pixel > 32) in ReadDIBImage()
540 if ((dib_info.bits_per_pixel != 1) && (dib_info.bits_per_pixel != 4) && in ReadDIBImage()
541 (dib_info.bits_per_pixel != 8) && (dib_info.bits_per_pixel != 16) && in ReadDIBImage()
542 (dib_info.bits_per_pixel != 24) && (dib_info.bits_per_pixel != 32)) in ReadDIBImage()
545 ((dib_info.bits_per_pixel == 16) || (dib_info.bits_per_pixel == 32))) in ReadDIBImage()
559 if ((dib_info.bits_per_pixel != 1) && (dib_info.bits_per_pixel != 4) && in ReadDIBImage()
560 (dib_info.bits_per_pixel != 8) && (dib_info.bits_per_pixel != 16) && in ReadDIBImage()
561 (dib_info.bits_per_pixel != 24) && (dib_info.bits_per_pixel != 32)) in ReadDIBImage()
[all …]
Dfits.c145 static inline double GetFITSPixel(Image *image,int bits_per_pixel) in GetFITSPixel() argument
155 if (bits_per_pixel > 0) in GetFITSPixel()
161 if (bits_per_pixel > 0) in GetFITSPixel()
171 const int bits_per_pixel,double *minima,double *maxima) in GetFITSPixelExtrema() argument
189 *minima=GetFITSPixel(image,bits_per_pixel); in GetFITSPixelExtrema()
193 pixel=GetFITSPixel(image,bits_per_pixel); in GetFITSPixelExtrema()
208 const size_t bits_per_pixel,const EndianType endian,unsigned char *pixels) in SetFITSUnsignedPixels() argument
214 pixels+=(bits_per_pixel >> 3)-1; in SetFITSUnsignedPixels()
218 pixels+=bits_per_pixel >> 3; in SetFITSUnsignedPixels()
232 bits_per_pixel, in ReadFITSImage() member
[all …]
Dpix.c110 bits_per_pixel, in ReadPIXImage() local
142 bits_per_pixel=ReadBlobMSBShort(image); in ReadPIXImage()
143 if ((width == 0UL) || (height == 0UL) || ((bits_per_pixel != 8) && in ReadPIXImage()
144 (bits_per_pixel != 24))) in ReadPIXImage()
153 if (bits_per_pixel == 8) in ReadPIXImage()
189 if (bits_per_pixel == 8) in ReadPIXImage()
236 bits_per_pixel=ReadBlobMSBShort(image); in ReadPIXImage()
237 status=(width != 0UL) && (height == 0UL) && ((bits_per_pixel == 8) || in ReadPIXImage()
238 (bits_per_pixel == 24)) ? MagickTrue : MagickFalse; in ReadPIXImage()
Dicon.c92 bits_per_pixel; member
124 bits_per_pixel; member
245 icon_file.directory[i].bits_per_pixel=(unsigned short) in ReadICONImage()
269 icon_info.bits_per_pixel=ReadBlobLSBShort(image); in ReadICONImage()
276 if (((icon_info.planes == 18505) && (icon_info.bits_per_pixel == 21060)) || in ReadICONImage()
303 png[14]=(unsigned char) icon_info.bits_per_pixel; in ReadICONImage()
304 png[15]=(unsigned char) (icon_info.bits_per_pixel >> 8); in ReadICONImage()
325 if (icon_info.bits_per_pixel > 32) in ReadICONImage()
346 image->depth=icon_info.bits_per_pixel; in ReadICONImage()
364 " bpp = %.20g",(double) icon_info.bits_per_pixel); in ReadICONImage()
[all …]
Dpcx.c77 bits_per_pixel; member
319 bits_per_pixel; in ReadPCXImage() local
328 bits_per_pixel=ReadBlobByte(image); in ReadPCXImage()
329 if (bits_per_pixel == -1) in ReadPCXImage()
331 pcx_info.bits_per_pixel=(unsigned char) bits_per_pixel; in ReadPCXImage()
344 ((pcx_info.bits_per_pixel != 1) && (pcx_info.bits_per_pixel != 2) && in ReadPCXImage()
345 (pcx_info.bits_per_pixel != 4) && (pcx_info.bits_per_pixel != 8))) in ReadPCXImage()
349 image->depth=pcx_info.bits_per_pixel; in ReadPCXImage()
373 if ((pcx_info.bits_per_pixel*pcx_info.planes) >= 64) in ReadPCXImage()
376 if ((pcx_info.bits_per_pixel != 8) || (pcx_info.planes == 1)) in ReadPCXImage()
[all …]
Dbmp.c138 bits_per_pixel; member
639 bmp_info.bits_per_pixel=ReadBlobLSBShort(image); in ReadBMPImage()
663 bmp_info.bits_per_pixel=ReadBlobLSBShort(image); in ReadBMPImage()
684 " Bits per pixel: %.20g",(double) bmp_info.bits_per_pixel); in ReadBMPImage()
855 if ((bmp_info.bits_per_pixel != 1) && (bmp_info.bits_per_pixel != 4) && in ReadBMPImage()
856 (bmp_info.bits_per_pixel != 8) && (bmp_info.bits_per_pixel != 16) && in ReadBMPImage()
857 (bmp_info.bits_per_pixel != 24) && (bmp_info.bits_per_pixel != 32)) in ReadBMPImage()
859 if (bmp_info.bits_per_pixel < 16 && in ReadBMPImage()
860 bmp_info.number_colors > (1U << bmp_info.bits_per_pixel)) in ReadBMPImage()
862 if ((bmp_info.compression == BI_RLE8) && (bmp_info.bits_per_pixel != 8)) in ReadBMPImage()
[all …]
Dpdb.c301 bits_per_pixel, in ReadPDBImage() local
408 bits_per_pixel=pdb_image.type == 0 ? 2UL : pdb_image.type == 2 ? 4UL : 1UL; in ReadPDBImage()
410 if (AcquireImageColormap(image,one << bits_per_pixel,exception) == MagickFalse) in ReadPDBImage()
422 packets=(bits_per_pixel*image->columns+7)/8; in ReadPDBImage()
459 switch (bits_per_pixel) in ReadPDBImage()
775 bits_per_pixel, in WritePDBImage() local
805 bits_per_pixel=1; in WritePDBImage()
807 bits_per_pixel=2; in WritePDBImage()
809 bits_per_pixel=3; in WritePDBImage()
811 bits_per_pixel=4; in WritePDBImage()
[all …]
Dtim.c106 bits_per_pixel, in ReadTIMImage() local
174 case 0: bits_per_pixel=4; break; in ReadTIMImage()
175 case 1: bits_per_pixel=8; break; in ReadTIMImage()
176 case 2: bits_per_pixel=16; break; in ReadTIMImage()
177 case 3: bits_per_pixel=24; break; in ReadTIMImage()
178 default: bits_per_pixel=4; break; in ReadTIMImage()
238 width=(width*16)/bits_per_pixel; in ReadTIMImage()
260 switch (bits_per_pixel) in ReadTIMImage()
Dtga.c109 bits_per_pixel, member
229 tga_info.bits_per_pixel=(unsigned char) ReadBlobByte(image); in ReadTGAImage()
233 if ((((tga_info.bits_per_pixel <= 1) || (tga_info.bits_per_pixel >= 17)) && in ReadTGAImage()
234 (tga_info.bits_per_pixel != 24) && (tga_info.bits_per_pixel != 32))) in ReadTGAImage()
245 image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) || in ReadTGAImage()
250 image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 : in ReadTGAImage()
251 (tga_info.bits_per_pixel <= 16) ? 5 : 8); in ReadTGAImage()
279 image->colors=one << tga_info.bits_per_pixel; in ReadTGAImage()
453 switch (tga_info.bits_per_pixel) in ReadTGAImage()
797 tga_info.bits_per_pixel=8; in WriteTGAImage()
[all …]
Dxwd.c248 if (header.bits_per_pixel != 1) in ReadXWDImage()
255 if ((header.bits_per_pixel < 1) || (header.bits_per_pixel > 15) || in ReadXWDImage()
263 if ((header.bits_per_pixel != 16) && (header.bits_per_pixel != 24) && in ReadXWDImage()
264 (header.bits_per_pixel != 32)) in ReadXWDImage()
352 ximage->bits_per_pixel=(int) header.bits_per_pixel; in ReadXWDImage()
360 (ximage->bits_per_pixel < 0)) in ReadXWDImage()
370 if ((ximage->bits_per_pixel > 32) || (ximage->bitmap_unit > 32)) in ReadXWDImage()
772 bits_per_pixel, in WriteXWDImage() local
829 bits_per_pixel=(size_t) (image->storage_class == DirectClass ? 24 : 8); in WriteXWDImage()
830 xwd_info.bits_per_pixel=(CARD32) bits_per_pixel; in WriteXWDImage()
[all …]
Dtim2.c237 Image *image,TIM2ImageHeader *header,char clut_depth,char bits_per_pixel, in ReadTIM2ImageData() argument
278 bits_per_line=image->columns*bits_per_pixel; in ReadTIM2ImageData()
293 switch (bits_per_pixel) in ReadTIM2ImageData()
379 switch (bits_per_pixel) in ReadTIM2ImageData()
692 bits_per_pixel; in ReadTIM2Image() local
730 bits_per_pixel=16; in ReadTIM2Image()
733 bits_per_pixel=24; in ReadTIM2Image()
736 bits_per_pixel=32; in ReadTIM2Image()
739 bits_per_pixel=4; /* Implies CLUT */ in ReadTIM2Image()
742 bits_per_pixel=8; /* Implies CLUT */ in ReadTIM2Image()
[all …]
Ddps.c140 bits_per_pixel; in ReadDPSImage() local
221 &bits_per_pixel,&page); in ReadDPSImage()
233 GetBlobFileHandle(image),(int) bits_per_pixel.height,visual_info->depth, in ReadDPSImage()
246 dps_image=XGetImage(display,pixmap,0,0,bits_per_pixel.width, in ReadDPSImage()
247 bits_per_pixel.height,AllPlanes,ZPixmap); in ReadDPSImage()
481 GetBlobFileHandle(image),1,pixels_per_point,&pixmap,&bits_per_pixel,&page); in ReadDPSImage()
485 GetBlobFileHandle(image),(int) bits_per_pixel.height,1,&page,-page.x, in ReadDPSImage()
495 matte_image=XGetImage(display,pixmap,0,0,bits_per_pixel.width, in ReadDPSImage()
496 bits_per_pixel.height,AllPlanes,ZPixmap); in ReadDPSImage()
Dpict.c101 bits_per_pixel, member
329 const unsigned char *magick_restrict pixels,const unsigned int bits_per_pixel, in UnpackScanline() argument
343 switch (bits_per_pixel) in UnpackScanline()
397 size_t bytes_per_line,const unsigned int bits_per_pixel,size_t *extent) in DecodeImage() argument
434 if (bits_per_pixel <= 8) in DecodeImage()
438 if (bits_per_pixel == 16) in DecodeImage()
444 if (bits_per_pixel == 32) in DecodeImage()
485 p=UnpackScanline(scanline,bits_per_pixel,unpack_buffer,&number_pixels); in DecodeImage()
524 p=UnpackScanline(scanline+j+1,bits_per_pixel,unpack_buffer, in DecodeImage()
535 p=UnpackScanline(scanline+j+1,bits_per_pixel,unpack_buffer, in DecodeImage()
[all …]
Dpcl.c701 bits_per_pixel, in WritePCLImage() local
752 bits_per_pixel=1; in WritePCLImage()
760 bits_per_pixel=24; in WritePCLImage()
774 bits_per_pixel=8; in WritePCLImage()
778 (void) WriteBlobByte(image,bits_per_pixel); /* bits per index */ in WritePCLImage()
791 for (one=1; i < (ssize_t) (one << bits_per_pixel); i++) in WritePCLImage()
804 length=(image->columns*bits_per_pixel+7)/8; in WritePCLImage()
871 switch (bits_per_pixel) in WritePCLImage()
Dcin.c143 bits_per_pixel, member
297 size_t samples_per_pixel,size_t bits_per_pixel, in GetBytesPerRow() argument
303 switch (bits_per_pixel) in GetBytesPerRow()
308 bits_per_pixel+31)/32); in GetBytesPerRow()
315 bits_per_pixel+31)/32); in GetBytesPerRow()
323 bits_per_pixel+31)/32); in GetBytesPerRow()
334 bits_per_pixel+31)/32); in GetBytesPerRow()
343 bits_per_pixel+8)/16); in GetBytesPerRow()
349 bits_per_pixel+31)/32); in GetBytesPerRow()
355 bits_per_pixel+63)/64); in GetBytesPerRow()
[all …]
Dgif.c1536 bits_per_pixel, in WriteGIFImage() local
1671 for (bits_per_pixel=1; bits_per_pixel < 8; bits_per_pixel++) in WriteGIFImage()
1672 if ((one << bits_per_pixel) >= image->colors) in WriteGIFImage()
1681 for ( ; i < (ssize_t) (one << bits_per_pixel); i++) in WriteGIFImage()
1695 c|=(bits_per_pixel-1); /* size of global colormap */ in WriteGIFImage()
1703 length=(size_t) (3*(one << bits_per_pixel)); in WriteGIFImage()
1913 c|=(bits_per_pixel-1); /* size of local colormap */ in WriteGIFImage()
1915 length=(size_t) (3*(one << bits_per_pixel)); in WriteGIFImage()
1921 c=(int) MagickMax(bits_per_pixel,2); in WriteGIFImage()
1923 status=EncodeImage(write_info,image,(size_t) MagickMax(bits_per_pixel,2)+1, in WriteGIFImage()
Drle.c180 bits_per_pixel, in ReadRLEImage() local
234 bits_per_pixel=(size_t) ReadBlobByte(image); in ReadRLEImage()
244 ((number_planes <= 2) || number_planes > 254)) || (bits_per_pixel != 8)) in ReadRLEImage()
277 number_planes*bits_per_pixel/8)/GetBlobSize(image)) > 254)) in ReadRLEImage()
/external/libjpeg-turbo/
Dwrbmp.c232 int bits_per_pixel, cmap_entries; in write_bmp_header() local
238 bits_per_pixel = 8; in write_bmp_header()
242 bits_per_pixel = 24; in write_bmp_header()
247 bits_per_pixel = 24; in write_bmp_header()
251 bits_per_pixel = 8; in write_bmp_header()
274 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header()
301 int bits_per_pixel, cmap_entries; in write_os2_header() local
307 bits_per_pixel = 8; in write_os2_header()
311 bits_per_pixel = 24; in write_os2_header()
316 bits_per_pixel = 24; in write_os2_header()
[all …]
Drdbmp.c64 int bits_per_pixel; /* remembers 8-, 24-, or 32-bit format */ member
387 switch (source->bits_per_pixel) { in preload_image()
464 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 10); in start_input_bmp()
466 switch (source->bits_per_pixel) { in start_input_bmp()
474 source->bits_per_pixel); in start_input_bmp()
488 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 14); in start_input_bmp()
495 switch (source->bits_per_pixel) { in start_input_bmp()
502 TRACEMS3(cinfo, 1, JTRC_BMP, biWidth, biHeight, source->bits_per_pixel); in start_input_bmp()
560 switch (source->bits_per_pixel) { in start_input_bmp()
619 switch (source->bits_per_pixel) { in start_input_bmp()
/external/webrtc/modules/desktop_capture/linux/
Dx_server_pixel_buffer.cc59 return image->bits_per_pixel == 32 && image->red_mask == 0xff0000 && in IsXImageRGBFormat()
108 int bits_per_pixel = x_image->bits_per_pixel; in SlowBlit() local
123 if (bits_per_pixel == 32) { in SlowBlit()
125 } else if (bits_per_pixel == 16) { in SlowBlit()
353 rect.left() * image->bits_per_pixel / 8; in CaptureRect()
/external/webrtc/modules/desktop_capture/mac/
Ddesktop_frame_cgimage.mm48 int bits_per_pixel = CGImageGetBitsPerPixel(cg_image.get());
49 if (bits_per_pixel / 8 != DesktopFrame::kBytesPerPixel) {
50 RTC_LOG(LS_ERROR) << "CGDisplayCreateImage() returned imaged with " << bits_per_pixel
/external/mesa3d/src/glx/
Ddrisw_glx.c112 if (pdp->ximage->bits_per_pixel == 24) in XCreateDrawable()
113 pdp->ximage->bits_per_pixel = 32; in XCreateDrawable()
196 ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastXPutImage()
199 ximage->width = ximage->bytes_per_line / ((ximage->bits_per_pixel + 7)/ 8); in swrastXPutImage()
278 ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastGetImage2()
317 ximage->bytes_per_line = bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastGetImageShm2()
/external/pdfium/fpdfsdk/
Dfpdf_editimg.cpp328 metadata->bits_per_pixel = 0; in FPDFImageObj_GetImageMetadata()
342 metadata->bits_per_pixel = pSource->GetBPP(); in FPDFImageObj_GetImageMetadata()
/external/webp/src/dsp/
Dlossless.c345 const int bits_per_pixel = 8 >> transform->bits_; \
348 if (bits_per_pixel < 8) { \
351 const uint32_t bit_mask = (1 << bits_per_pixel) - 1; \
362 packed_pixels >>= bits_per_pixel; \

123