Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 130) sorted by relevance

123456

/external/chromium/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/
Dimageinfo.js68 var bpp = bpc;
69 if (ct == 4) bpp *= 2;
70 if (ct == 2) bpp *= 3;
71 if (ct == 6) bpp *= 4;
80 bpp : bpp,
91 var bpp = ((data.getByteAt(10) >> 4) & 7) + 1;
98 bpp : bpp,
135 bpp : comps * 8,
144 var bpp = data.getShortAt(28);
150 bpp : bpp,
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_stretch.c58 static int generate_rowbytes(int src_w, int dst_w, int bpp) in generate_rowbytes() argument
61 int bpp; in generate_rowbytes() member
73 (dst_w == last.dst_w) && (bpp == last.bpp) ) { in generate_rowbytes()
76 last.bpp = bpp; in generate_rowbytes()
80 switch (bpp) { in generate_rowbytes()
91 SDL_SetError("ASM stretch of %d bytes isn't supported\n", bpp); in generate_rowbytes()
99 if ( bpp == 2 ) { in generate_rowbytes()
105 if ( bpp == 2 ) { in generate_rowbytes()
189 const int bpp = dst->format->BytesPerPixel; in SDL_SoftStretch() local
253 dst_width = dstrect->w*bpp; in SDL_SoftStretch()
[all …]
DSDL_pixels.c37 SDL_PixelFormat *SDL_AllocFormat(int bpp, in SDL_AllocFormat() argument
53 format->BitsPerPixel = bpp; in SDL_AllocFormat()
54 format->BytesPerPixel = (bpp+7)/8; in SDL_AllocFormat()
93 } else if ( bpp > 8 ) { /* Packed pixels with standard mask */ in SDL_AllocFormat()
95 if ( bpp > 24 ) in SDL_AllocFormat()
96 bpp = 24; in SDL_AllocFormat()
97 format->Rloss = 8-(bpp/3); in SDL_AllocFormat()
98 format->Gloss = 8-(bpp/3)-(bpp%3); in SDL_AllocFormat()
99 format->Bloss = 8-(bpp/3); in SDL_AllocFormat()
100 format->Rshift = ((bpp/3)+(bpp%3))+(bpp/3); in SDL_AllocFormat()
[all …]
DSDL_RLEaccel.c110 #define PIXEL_COPY(to, from, len, bpp) \ argument
112 if(bpp == 4) { \
115 SDL_memcpy(to, from, (size_t)(len) * (bpp)); \
123 #define OPAQUE_BLIT(to, from, length, bpp, alpha) \ argument
124 PIXEL_COPY(to, from, length, bpp)
128 #define ALPHA_BLIT32_888MMX(to, from, length, bpp, alpha) \ argument
200 #define ALPHA_BLIT16_565MMX(to, from, length, bpp, alpha) \ argument
290 #define ALPHA_BLIT16_555MMX(to, from, length, bpp, alpha) \ argument
389 #define ALPHA_BLIT32_888(to, from, length, bpp, alpha) \ argument
413 #define ALPHA_BLIT16_565(to, from, length, bpp, alpha) \ argument
[all …]
DSDL_blit.h113 #define RETRIEVE_RGB_PIXEL(buf, bpp, Pixel) \ argument
115 switch (bpp) { \
140 #define DISEMBLE_RGB(buf, bpp, fmt, Pixel, r, g, b) \ argument
142 switch (bpp) { \
196 #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) \ argument
198 switch (bpp) { \
229 #define ASSEMBLE_RGB_AMASK(buf, bpp, fmt, r, g, b, Amask) \ argument
231 switch (bpp) { \
303 #define DISEMBLE_RGBA(buf, bpp, fmt, Pixel, r, g, b, a) \ argument
305 switch (bpp) { \
[all …]
/external/webkit/Source/WebKit2/Shared/qt/
DUpdateChunk.cpp106 int bpp; in size() local
108 bpp = 2; in size()
110 bpp = 4; in size()
112 return ((m_rect.width() * bpp + 3) & ~0x3) in size()
123 int bpp; in createImage() local
126 bpp = 2; in createImage()
129 bpp = 4; in createImage()
132 …_sharedMemory->data()), m_rect.width(), m_rect.height(), (m_rect.width() * bpp + 3) & ~0x3, format… in createImage()
/external/opencv/otherlibs/highgui/
Dgrfmt_imageio.cpp127 int bpp; // Bytes per pixel in ReadData() local
146 bpp = 1; in ReadData()
152 bpp = 4; /* CG only has 8 and 32 bit color spaces, so we waste a byte */ in ReadData()
158 bitmap = (uchar*)malloc( bpp * m_height * m_width ); in ReadData()
169 bpp * m_width, /* bytes per row */ in ReadData()
213 bitmapIndex += bpp; in ReadData()
282 int bpp = (_channels == 1) ? 1 : 4; in WriteImage() local
289 if( bpp == 1 ) in WriteImage()
291 else if( bpp == 4 ) in WriteImage()
296 bitmapData = (uchar*)malloc( bpp * height * width ); in WriteImage()
[all …]
Dimage.cpp70 bool CvvImage::Create( int w, int h, int bpp, int origin ) in Create() argument
74 if( (bpp != 8 && bpp != 24 && bpp != 32) || in Create()
82 if( !m_img || Bpp() != bpp || m_img->width != w || m_img->height != h ) in Create()
88 m_img = cvCreateImage( cvSize( w, h ), IPL_DEPTH_8U, bpp/8 ); in Create()
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
DSDL_fb3dfx.c54 int bpp; in FillHWRect() local
69 bpp = dst->format->BitsPerPixel; in FillHWRect()
70 format = dst->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); in FillHWRect()
97 int bpp; in HWAccelBlit() local
117 bpp = src->format->BitsPerPixel; in HWAccelBlit()
118 src_format = src->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); in HWAccelBlit()
120 bpp = dst->format->BitsPerPixel; in HWAccelBlit()
121 dst_format = dst->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); in HWAccelBlit()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
DDDSLoader.java111 private int bpp; field in DDSLoader
157 bpp = 8; in loadDX10Header()
264 bpp = 4; in readPixelFormat()
272 bpp = 8; in readPixelFormat()
276 bpp = 8; in readPixelFormat()
283 bpp = 4; in readPixelFormat()
287 bpp = 8; in readPixelFormat()
300 int size = ((width + 3) / 4) * ((height + 3) / 4) * bpp * 2; in readPixelFormat()
319 bpp = in.readInt(); in readPixelFormat()
332 switch (bpp) { in readPixelFormat()
[all …]
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/
DImageToAwt.java53 final int bpp, am, rm, gm, bm, as, rs, gs, bs, im, is; field in ImageToAwt.DecodeParams
55 …public DecodeParams(int bpp, int am, int rm, int gm, int bm, int as, int rs, int gs, int bs, int i… in DecodeParams() argument
56 this.bpp = bpp; in DecodeParams()
69 public DecodeParams(int bpp, int rm, int rs, int im, int is, boolean alpha){ in DecodeParams() argument
70 this.bpp = bpp; in DecodeParams()
91 public DecodeParams(int bpp, int rm, int rs, int im, int is){ in DecodeParams() argument
92 this(bpp, rm, rs, im, is, false); in DecodeParams()
182 private static int readPixel(ByteBuffer buf, int idx, int bpp){ in readPixel() argument
185 while ((--bpp) > 0){ in readPixel()
191 private static void writePixel(ByteBuffer buf, int idx, int pixel, int bpp){ in writePixel() argument
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/svga/
DSDL_svgavideo.c56 static SDL_Surface *SVGA_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, …
340 int width, int height, int bpp, Uint32 flags) in SVGA_SetVideoMode() argument
354 bpp = (bpp+7)/8-1; in SVGA_SetVideoMode()
355 for ( mode=0; SDL_modelist[bpp][mode]; ++mode ) { in SVGA_SetVideoMode()
356 if ( (SDL_modelist[bpp][mode]->w == width) && in SVGA_SetVideoMode()
357 (SDL_modelist[bpp][mode]->h == height) ) { in SVGA_SetVideoMode()
361 if ( SDL_modelist[bpp][mode] == NULL ) { in SVGA_SetVideoMode()
365 vgamode = SDL_vgamode[bpp][mode]; in SVGA_SetVideoMode()
375 modeinfo = vga_getmodeinfo(SDL_vgamode[bpp][mode]); in SVGA_SetVideoMode()
381 bpp = (bpp+1)*8; in SVGA_SetVideoMode()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
DSDL_wimpvideo.c47 SDL_Surface *WIMP_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 …
52 extern unsigned char *WIMP_CreateBuffer(int width, int height, int bpp);
68 extern int FULLSCREEN_SetMode(int width, int height, int bpp);
83 int width, int height, int bpp, Uint32 flags) in WIMP_SetVideoMode() argument
95 switch(bpp) in WIMP_SetVideoMode()
126 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, 0) ) { in WIMP_SetVideoMode()
135 if (bpp == 15) bpp = 16; in WIMP_SetVideoMode()
136 buffer = WIMP_CreateBuffer(width, height, bpp); in WIMP_SetVideoMode()
144 if (bpp == 8) this->hidden->bank[0] += 2048; /* 8bpp sprite have palette first */ in WIMP_SetVideoMode()
442 int bpp = this->screen->format->BitsPerPixel; in WIMP_ToggleFromFullScreen() local
[all …]
DSDL_riscosFullScreenVideo.c61 int FULLSCREEN_SetMode(int width, int height, int bpp);
80 static int FULLSCREEN_AddMode(_THIS, int bpp, int w, int h);
91 extern unsigned char *WIMP_CreateBuffer(int width, int height, int bpp);
97 int width, int height, int bpp, Uint32 flags) in FULLSCREEN_SetVideoMode() argument
105 switch(bpp) in FULLSCREEN_SetVideoMode()
130 if (FULLSCREEN_SetMode(width, height, bpp) == 0) in FULLSCREEN_SetVideoMode()
139 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, 0) ) { in FULLSCREEN_SetVideoMode()
194 this->hidden->bank[0] = WIMP_CreateBuffer(width, height, bpp); in FULLSCREEN_SetVideoMode()
215 if (bpp == 8) this->hidden->bank[0] += 2048; /* 8bpp sprite have palette first */ in FULLSCREEN_SetVideoMode()
573 static int FULLSCREEN_AddMode(_THIS, int bpp, int w, int h) in FULLSCREEN_AddMode() argument
[all …]
DSDL_riscosvideo.c55 static SDL_Surface *RISCOS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp
65 …FULLSCREEN_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
71 extern SDL_Surface *WIMP_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, …
252 int width, int height, int bpp, Uint32 flags) in RISCOS_SetVideoMode() argument
260 return FULLSCREEN_SetVideoMode(this, current, width, height, bpp, flags); in RISCOS_SetVideoMode()
264 return WIMP_SetVideoMode(this, current, width, height, bpp, flags); in RISCOS_SetVideoMode()
/external/qemu/distrib/sdl-1.2.12/src/video/xbios/
DSDL_xbios_sb3.c53 int bpp; in SDL_XBIOS_SB3Usable() local
57 bpp = 1<<(SDL_XBIOS_scpn_planes_device[scrinfo->device]); in SDL_XBIOS_SB3Usable()
59 if ((bpp==8) || (bpp==16)) { in SDL_XBIOS_SB3Usable()
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
DSDL_cgxvideo.c47 static SDL_Surface *CGX_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, U…
256 Uint32 MakeBitMask(_THIS,int type,int format,int *bpp) in MakeBitMask() argument
260 if(this->hidden->depth==*bpp) in MakeBitMask()
381 switch(*bpp) in MakeBitMask()
410 *bpp=24; in MakeBitMask()
665 int w, int h, int bpp, Uint32 flags) in CGX_CreateWindow() argument
696 if ( this->hidden->visuals[i].depth == bpp ) /* era .depth */ in CGX_CreateWindow()
727 if(bpp!=this->hidden->depth) in CGX_CreateWindow()
729 bpp=this->hidden->depth; in CGX_CreateWindow()
730 D(bug("Accel forces bpp to be equal (%ld)\n",bpp)); in CGX_CreateWindow()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/
DSDL_nxvideo.c44 static SDL_Surface * NX_SetVideoMode (_THIS, SDL_Surface * current, int width, int height, int bpp,…
210 SDL_Visual.bpp = si.bpp ; in NX_VideoInit()
234 vformat -> BitsPerPixel = SDL_Visual.bpp ; in NX_VideoInit()
301 int w, int h, int bpp, Uint32 flags) in NX_CreateWindow() argument
317 if ( ! SDL_ReallocFormat (screen, bpp, SDL_Visual.red_mask, in NX_CreateWindow()
364 int width, int height, int bpp, Uint32 flags) in NX_SetVideoMode() argument
371 bpp = SDL_Visual.bpp ; in NX_SetVideoMode()
372 if (NX_CreateWindow (this, current, width, height, bpp, flags) < 0) { in NX_SetVideoMode()
492 if (SDL_Visual.bpp != 32 && SDL_Visual.bpp != 24) return -1 ; in NX_SetGammaRamp()
527 if (SDL_Visual.bpp != 32 && SDL_Visual.bpp != 24) return -1 ; in NX_GetGammaRamp()
/external/quake/quake/src/WinQuake/
Dgl_vidnt.cpp47 int bpp; member
293 gdevmode.dmBitsPerPel = modelist[modenum].bpp; in VID_SetFullDIBMode()
1354 modelist[0].bpp = 0; in VID_InitDIB()
1369 int j, bpp, done; in VID_InitFullDIB() local
1399 modelist[nummodes].bpp = devmode.dmBitsPerPel; in VID_InitFullDIB()
1415 modelist[nummodes].bpp); in VID_InitFullDIB()
1423 (modelist[nummodes].bpp == modelist[i].bpp)) in VID_InitFullDIB()
1442 bpp = 16; in VID_InitFullDIB()
1449 devmode.dmBitsPerPel = bpp; in VID_InitFullDIB()
1464 modelist[nummodes].bpp = devmode.dmBitsPerPel; in VID_InitFullDIB()
[all …]
/external/quake/quake/src/QW/client/
Dgl_vidnt.c47 int bpp; member
293 gdevmode.dmBitsPerPel = modelist[modenum].bpp; in VID_SetFullDIBMode()
1354 modelist[0].bpp = 0; in VID_InitDIB()
1369 int j, bpp, done; in VID_InitFullDIB() local
1399 modelist[nummodes].bpp = devmode.dmBitsPerPel; in VID_InitFullDIB()
1415 modelist[nummodes].bpp); in VID_InitFullDIB()
1423 (modelist[nummodes].bpp == modelist[i].bpp)) in VID_InitFullDIB()
1442 bpp = 16; in VID_InitFullDIB()
1449 devmode.dmBitsPerPel = bpp; in VID_InitFullDIB()
1464 modelist[nummodes].bpp = devmode.dmBitsPerPel; in VID_InitFullDIB()
[all …]
/external/qemu/android/protocol/
Dfb-updates-impl.c199 char* bpp = strstr(handshake, "bitsperpixel="); in fbUpdatesImpl_create() local
200 if (bpp != NULL) { in fbUpdatesImpl_create()
202 bpp += strlen("bitsperpixel="); in fbUpdatesImpl_create()
203 end = strchr(bpp, ' '); in fbUpdatesImpl_create()
205 end = bpp + strlen(bpp); in fbUpdatesImpl_create()
207 fbi->bits_per_pixel = strtol(bpp, &end, 0); in fbUpdatesImpl_create()
/external/skia/src/gpu/
DGrAtlas.cpp97 const int bpp = GrMaskFormatBytesPerPixel(fMaskFormat); in addSubImage() local
98 const size_t dstRB = dstW * bpp; in addSubImage()
103 dst = zerofill(dst, bpp); // zero left edge in addSubImage()
104 memcpy(dst, image, width * bpp); in addSubImage()
105 dst += width * bpp; in addSubImage()
106 dst = zerofill(dst, bpp); // zero right edge in addSubImage()
107 image = (const void*)((const char*)image + width * bpp); in addSubImage()
/external/qemu/distrib/sdl-1.2.12/src/video/photon/
DSDL_ph_modes.c115 int ph_GetVideoMode(int width, int height, int bpp) in ph_GetVideoMode() argument
141 (mode_info.bits_per_pixel == bpp)) in ph_GetVideoMode()
148 (mode_info.bits_per_pixel == bpp)) in ph_GetVideoMode()
167 int get_mode_any_format(int width, int height, int bpp) in get_mode_any_format() argument
194 if (mode_info.bits_per_pixel == bpp) in get_mode_any_format()
199 min_delta = abs(mode_info.bits_per_pixel - bpp); in get_mode_any_format()
214 if (mode_info.bits_per_pixel == bpp) in get_mode_any_format()
221 delta = abs(mode_info.bits_per_pixel - bpp); in get_mode_any_format()
/external/qemu/distrib/sdl-1.2.12/src/video/dummy/
DSDL_nullvideo.c54 static SDL_Surface *DUMMY_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp,…
162 int width, int height, int bpp, Uint32 flags) in DUMMY_SetVideoMode() argument
168 this->hidden->buffer = SDL_malloc(width * height * (bpp / 8)); in DUMMY_SetVideoMode()
176 SDL_memset(this->hidden->buffer, 0, width * height * (bpp / 8)); in DUMMY_SetVideoMode()
179 if ( ! SDL_ReallocFormat(current, bpp, 0, 0, 0, 0) ) { in DUMMY_SetVideoMode()
190 current->pitch = current->w * (bpp / 8); in DUMMY_SetVideoMode()
/external/jmonkeyengine/engine/src/core/com/jme3/texture/
DImage.java260 private int bpp; field in Image.Format
265 private Format(int bpp){ in Format() argument
266 this.bpp = bpp; in Format()
269 private Format(int bpp, boolean isFP){ in Format() argument
270 this(bpp); in Format()
274 private Format(int bpp, boolean isDepth, boolean isCompressed, boolean isFP){ in Format() argument
275 this(bpp, isFP); in Format()
284 return bpp; in getBitsPerPixel()

123456