Searched refs:bpp (Results 1 - 25 of 116) sorted by relevance

12345

/external/qemu/distrib/sdl-1.2.12/src/video/xbios/
H A DSDL_xbios_sb3.c53 int bpp; local
55 /* Check if current SB3 mode is usable, i.e. 8 or 16bpp */
57 bpp = 1<<(SDL_XBIOS_scpn_planes_device[scrinfo->device]);
59 if ((bpp==8) || (bpp==16)) {
/external/qemu/distrib/sdl-1.2.12/src/video/photon/
H A DSDL_ph_modes_c.h39 extern int ph_GetVideoMode(int width, int height, int bpp);
40 extern int get_mode_any_format(int width, int height, int bpp);
H A DSDL_ph_gl.h38 int ph_SetupOpenGLContext(_THIS, int width, int height, int bpp, Uint32 flags);
H A DSDL_ph_modes.c113 /* return the mode associated with width, height and bpp */
115 int ph_GetVideoMode(int width, int height, int bpp) argument
141 (mode_info.bits_per_pixel == bpp))
148 (mode_info.bits_per_pixel == bpp))
165 /* return the mode associated with width, height and bpp */
166 /* if requested bpp is not found the mode with closest bpp is returned */
167 int get_mode_any_format(int width, int height, int bpp) argument
192 /* get closest bpp */
194 if (mode_info.bits_per_pixel == bpp)
[all...]
/external/webkit/Source/WebKit2/Shared/qt/
H A DUpdateChunk.cpp106 int bpp; local
108 bpp = 2;
110 bpp = 4;
112 return ((m_rect.width() * bpp + 3) & ~0x3)
123 int bpp; local
126 bpp = 2;
129 bpp = 4;
132 return QImage(reinterpret_cast<unsigned char*>(m_sharedMemory->data()), m_rect.width(), m_rect.height(), (m_rect.width() * bpp + 3) & ~0x3, format);
/external/chromium/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/
H A 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
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/
H A DSDL_pixels_c.h29 extern SDL_PixelFormat *SDL_AllocFormat(int bpp,
31 extern SDL_PixelFormat *SDL_ReallocFormat(SDL_Surface *surface, int bpp,
44 extern void SDL_DitherColors(SDL_Color *colors, int bpp);
H A DSDL_stretch.c58 static int generate_rowbytes(int src_w, int dst_w, int bpp) argument
61 int bpp; member in struct:__anon9204
73 (dst_w == last.dst_w) && (bpp == last.bpp) ) {
76 last.bpp = bpp;
80 switch (bpp) {
91 SDL_SetError("ASM stretch of %d bytes isn't supported\n", bpp);
99 if ( bpp == 2 ) {
105 if ( bpp
189 const int bpp = dst->format->BytesPerPixel; local
[all...]
H A DSDL_pixels.c37 SDL_PixelFormat *SDL_AllocFormat(int bpp, argument
53 format->BitsPerPixel = bpp;
54 format->BytesPerPixel = (bpp+7)/8;
93 } else if ( bpp > 8 ) { /* Packed pixels with standard mask */
95 if ( bpp > 24 )
96 bpp = 24;
97 format->Rloss = 8-(bpp/3);
98 format->Gloss = 8-(bpp/3)-(bpp%3);
99 format->Bloss = 8-(bpp/
224 SDL_ReallocFormat(SDL_Surface *surface, int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask) argument
266 SDL_DitherColors(SDL_Color *colors, int bpp) argument
467 int bpp; local
[all...]
H A DSDL_RLEaccel.c110 #define PIXEL_COPY(to, from, len, bpp) \
112 if(bpp == 4) { \
115 SDL_memcpy(to, from, (size_t)(len) * (bpp)); \
123 #define OPAQUE_BLIT(to, from, length, bpp, alpha) \
124 PIXEL_COPY(to, from, length, bpp)
128 #define ALPHA_BLIT32_888MMX(to, from, length, bpp, alpha) \
200 #define ALPHA_BLIT16_565MMX(to, from, length, bpp, alpha) \
290 #define ALPHA_BLIT16_555MMX(to, from, length, bpp, alpha) \
383 * For 32bpp pixels on the form 0x00rrggbb:
389 #define ALPHA_BLIT32_888(to, from, length, bpp, alph
1650 int bpp = surface->format->BytesPerPixel; local
1836 int bpp = df->BytesPerPixel; local
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
H A DSDL_fb3dfx.c54 int bpp; local
69 bpp = dst->format->BitsPerPixel;
70 format = dst->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13);
97 int bpp; local
117 bpp = src->format->BitsPerPixel;
118 src_format = src->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13);
120 bpp = dst->format->BitsPerPixel;
121 dst_format = dst->pitch | ((bpp
[all...]
/external/opencv/otherlibs/highgui/
H A Dgrfmt_imageio.cpp127 int bpp; // Bytes per pixel local
146 bpp = 1;
152 bpp = 4; /* CG only has 8 and 32 bit color spaces, so we waste a byte */
158 bitmap = (uchar*)malloc( bpp * m_height * m_width );
169 bpp * m_width, /* bytes per row */
213 bitmapIndex += bpp;
282 int bpp = (_channels == 1) ? 1 : 4; local
289 if( bpp == 1 )
291 else if( bpp == 4 )
296 bitmapData = (uchar*)malloc( bpp * heigh
[all...]
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
H A DImageFlipper.java58 int bpp = img.getFormat().getBitsPerPixel() / 8;
59 int scanline = w * bpp;
H A DDDSLoader.java111 private int bpp; field in class:DDSLoader
157 bpp = 8;
264 bpp = 4;
272 bpp = 8;
276 bpp = 8;
283 bpp = 4;
287 bpp = 8;
300 int size = ((width + 3) / 4) * ((height + 3) / 4) * bpp * 2;
319 bpp = in.readInt();
332 switch (bpp) {
[all...]
/external/qemu/android/utils/
H A Djpeg-compress.h81 * bpp - Number of bytes per pixel in the framebuffer.
94 int bpp, int bpl,
/external/skia/src/gpu/
H A DGrAtlas.cpp97 const int bpp = GrMaskFormatBytesPerPixel(fMaskFormat); local
98 const size_t dstRB = dstW * bpp;
103 dst = zerofill(dst, bpp); // zero left edge
104 memcpy(dst, image, width * bpp);
105 dst += width * bpp;
106 dst = zerofill(dst, bpp); // zero right edge
107 image = (const void*)((const char*)image + width * bpp);
/external/qemu/distrib/sdl-1.2.12/src/video/dummy/
H A DSDL_nullvideo.c54 static SDL_Surface *DUMMY_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
162 int width, int height, int bpp, Uint32 flags)
168 this->hidden->buffer = SDL_malloc(width * height * (bpp / 8));
176 SDL_memset(this->hidden->buffer, 0, width * height * (bpp / 8));
179 if ( ! SDL_ReallocFormat(current, bpp, 0, 0, 0, 0) ) {
190 current->pitch = current->w * (bpp / 8);
161 DUMMY_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
/external/qemu/android/
H A Dmultitouch-port.h70 int bpp; member in struct:MTFrameHeader
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/
H A DImageToAwt.java53 final int bpp, am, rm, gm, bm, as, rs, gs, bs, im, is; field in class:ImageToAwt.DecodeParams
55 public DecodeParams(int bpp, int am, int rm, int gm, int bm, int as, int rs, int gs, int bs, int im, int is) { argument
56 this.bpp = bpp;
69 public DecodeParams(int bpp, int rm, int rs, int im, int is, boolean alpha){ argument
70 this.bpp = bpp;
91 public DecodeParams(int bpp, int rm, int rs, int im, int is){ argument
92 this(bpp, rm, rs, im, is, false);
182 private static int readPixel(ByteBuffer buf, int idx, int bpp){ argument
191 writePixel(ByteBuffer buf, int idx, int pixel, int bpp) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
H A DSDL_wimpvideo.c47 SDL_Surface *WIMP_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
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)
95 switch(bpp)
126 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, 0) ) {
135 if (bpp == 15) bpp = 16;
136 buffer = WIMP_CreateBuffer(width, height, bpp);
144 if (bpp
82 WIMP_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
442 int bpp = this->screen->format->BitsPerPixel; local
[all...]
H A DSDL_riscossprite.c44 unsigned char *WIMP_CreateBuffer(int width, int height, int bpp) argument
54 switch(bpp)
93 if (bpp == 8)
96 regs.r[6] = 28; /* 8bpp 90x90dpi */
99 regs.r[6] = (((bpp == 16) ? 5 : 6) << 27) /* Type 6 = 32bpp sprite, 5 = 16bpp sprite */
106 if (bpp == 8)
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/
H A DSDL_nxvideo.c44 static SDL_Surface * NX_SetVideoMode (_THIS, SDL_Surface * current, int width, int height, int bpp, Uint32 flags) ;
210 SDL_Visual.bpp = si.bpp ;
234 vformat -> BitsPerPixel = SDL_Visual.bpp ;
301 int w, int h, int bpp, Uint32 flags)
317 if ( ! SDL_ReallocFormat (screen, bpp, SDL_Visual.red_mask,
364 int width, int height, int bpp, Uint32 flags)
371 bpp = SDL_Visual.bpp ;
372 if (NX_CreateWindow (this, current, width, height, bpp, flag
300 NX_CreateWindow(_THIS, SDL_Surface * screen, int w, int h, int bpp, Uint32 flags) argument
363 NX_SetVideoMode(_THIS, SDL_Surface * current, int width, int height, int bpp, Uint32 flags) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
H A DSDL_cgxvideo.c47 static SDL_Surface *CGX_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
256 Uint32 MakeBitMask(_THIS,int type,int format,int *bpp) argument
260 if(this->hidden->depth==*bpp)
381 switch(*bpp)
410 *bpp=24;
538 vformat->BitsPerPixel = this->hidden->visuals[i].depth; /* this->hidden->visuals[i].bpp; */
665 int w, int h, int bpp, Uint32 flags)
696 if ( this->hidden->visuals[i].depth == bpp ) /* era .depth */
727 if(bpp!=this->hidden->depth)
729 bpp
664 CGX_CreateWindow(_THIS, SDL_Surface *screen, int w, int h, int bpp, Uint32 flags) argument
900 CGX_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/svga/
H A DSDL_svgavideo.c56 static SDL_Surface *SVGA_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
340 int width, int height, int bpp, Uint32 flags)
354 bpp = (bpp+7)/8-1;
355 for ( mode=0; SDL_modelist[bpp][mode]; ++mode ) {
356 if ( (SDL_modelist[bpp][mode]->w == width) &&
357 (SDL_modelist[bpp][mode]->h == height) ) {
361 if ( SDL_modelist[bpp][mode] == NULL ) {
365 vgamode = SDL_vgamode[bpp][mode];
375 modeinfo = vga_getmodeinfo(SDL_vgamode[bpp][mod
339 SVGA_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
498 int bpp = this->screen->format->BytesPerPixel; local
[all...]
/external/qemu/android/protocol/
H A Dfb-updates-impl.c199 char* bpp = strstr(handshake, "bitsperpixel="); local
200 if (bpp != NULL) {
202 bpp += strlen("bitsperpixel=");
203 end = strchr(bpp, ' ');
205 end = bpp + strlen(bpp);
207 fbi->bits_per_pixel = strtol(bpp, &end, 0);

Completed in 368 milliseconds

12345