Searched refs:bpp (Results 26 - 50 of 116) sorted by relevance

12345

/external/jmonkeyengine/engine/src/core/com/jme3/texture/
H A DImage.java260 private int bpp; field in class:Image.Format
265 private Format(int bpp){ argument
266 this.bpp = bpp;
269 private Format(int bpp, boolean isFP){ argument
270 this(bpp);
274 private Format(int bpp, boolean isDepth, boolean isCompressed, boolean isFP){ argument
275 this(bpp, isFP);
284 return bpp;
/external/qemu/distrib/sdl-1.2.12/src/video/
H A DSDL_blit.h113 #define RETRIEVE_RGB_PIXEL(buf, bpp, Pixel) \
115 switch (bpp) { \
140 #define DISEMBLE_RGB(buf, bpp, fmt, Pixel, r, g, b) \
142 switch (bpp) { \
196 #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) \
198 switch (bpp) { \
229 #define ASSEMBLE_RGB_AMASK(buf, bpp, fmt, r, g, b, Amask) \
231 switch (bpp) { \
303 #define DISEMBLE_RGBA(buf, bpp, fmt, Pixel, r, g, b, a) \
305 switch (bpp) { \
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
H A DSDL_riscosFullScreenVideo.c53 int pixel_depth; // 2^pixel_depth = bpp,i.e. 0 = 1, 1 = 2, 4 = 16, 5 = 32
61 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)
105 switch(bpp)
130 if (FULLSCREEN_SetMode(width, height, bpp) == 0)
139 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, 0) ) {
194 this->hidden->bank[0] = WIMP_CreateBuffer(width, height, bpp);
215 if (bpp
96 FULLSCREEN_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
573 FULLSCREEN_AddMode(_THIS, int bpp, int w, int h) argument
669 FULLSCREEN_SetMode(int width, int height, int bpp) argument
751 int bpp = this->screen->format->BitsPerPixel; local
[all...]
H A DSDL_riscosvideo.c55 static SDL_Surface *RISCOS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
65 extern SDL_Surface *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, Uint32 flags);
173 vars[0] = 9; /* Log base 2 bpp */
187 /* Minimum bpp for SDL is 8 */
252 int width, int height, int bpp, Uint32 flags)
260 return FULLSCREEN_SetVideoMode(this, current, width, height, bpp, flags);
264 return WIMP_SetVideoMode(this, current, width, height, bpp, flags);
251 RISCOS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
/external/quake/quake/src/QW/client/
H A Dgl_vidnt.c47 int bpp; member in struct:__anon10006
293 gdevmode.dmBitsPerPel = modelist[modenum].bpp;
1354 modelist[0].bpp = 0;
1369 int j, bpp, done; local
1372 // enumerate >8 bpp modes
1399 modelist[nummodes].bpp = devmode.dmBitsPerPel;
1415 modelist[nummodes].bpp);
1423 (modelist[nummodes].bpp == modelist[i].bpp))
1442 bpp
1576 int basenummodes, width, height, bpp, findbpp, done; local
[all...]
/external/quake/quake/src/WinQuake/
H A Dgl_vidnt.cpp47 int bpp; member in struct:__anon10367
293 gdevmode.dmBitsPerPel = modelist[modenum].bpp;
1354 modelist[0].bpp = 0;
1369 int j, bpp, done; local
1372 // enumerate >8 bpp modes
1399 modelist[nummodes].bpp = devmode.dmBitsPerPel;
1415 modelist[nummodes].bpp);
1423 (modelist[nummodes].bpp == modelist[i].bpp))
1442 bpp
1576 int basenummodes, width, height, bpp, findbpp, done; local
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/
H A DSDL_nxmodes.c36 if (SDL_Visual.bpp == format -> BitsPerPixel) {
H A DSDL_nxvideo.h46 int bpp ; member in struct:NX_SDL_VISUAL
/external/opencv/otherlibs/highgui/
H A Dimage.cpp70 bool CvvImage::Create( int w, int h, int bpp, int origin ) argument
74 if( (bpp != 8 && bpp != 24 && bpp != 32) ||
82 if( !m_img || Bpp() != bpp || m_img->width != w || m_img->height != h )
88 m_img = cvCreateImage( cvSize( w, h ), IPL_DEPTH_8U, bpp/8 );
/external/qemu/distrib/sdl-1.2.12/src/video/bwindow/
H A DSDL_sysvideo.cc48 static SDL_Surface *BE_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
265 int bpp; local
293 bpp = ColorSpaceToBitsPerPixel(modes[i].space);
294 //if ( bpp != 0 ) { // There are bugs in changing colorspace
296 BE_AddMode(_this, ((bpp+7)/8)-1,
347 static bool BE_FindClosestFSMode(_THIS, int width, int height, int bpp, argument
360 modes = SDL_modelist[((bpp+7)/8)-1];
374 if ( (bpp == ColorSpaceToBitsPerPixel(dmodes[i].space)) &&
404 int width, height, bpp; local
416 bpp
490 BE_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/picogui/
H A DSDL_pgvideo.c41 static SDL_Surface *PG_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
177 vformat->BitsPerPixel = this->hidden->mi.bpp;
178 vformat->BytesPerPixel = this->hidden->mi.bpp >> 3;
179 if (this->hidden->mi.bpp & 7)
192 int width, int height, int bpp, Uint32 flags)
204 if ( ! SDL_ReallocFormat(current, bpp, 0, 0, 0, 0) ) {
244 current->format->BitsPerPixel = this->hidden->shm.bpp;
245 current->format->BytesPerPixel = this->hidden->shm.bpp >> 3;
246 if (this->hidden->shm.bpp & 7)
191 PG_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
/external/qemu/distrib/sdl-1.2.12/src/video/photon/
H A DSDL_ph_gl.c195 int ph_SetupOpenGLContext(_THIS, int width, int height, int bpp, Uint32 flags) argument
205 if ((oglctx!=NULL) && (oglflags==flags) && (oglbpp==bpp))
263 oglbpp=bpp;
278 int ph_SetupOpenGLContext(_THIS, int width, int height, int bpp, Uint32 flags) argument
399 oglbpp=bpp;
H A DSDL_ph_video.c46 static SDL_Surface *ph_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
320 static const struct ColourMasks* ph_GetColourMasks(int bpp) argument
331 switch (bpp)
448 static SDL_Surface* ph_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
458 if (((current->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && (ph_GetVideoMode(width, height, bpp)==0))
467 mask = ph_GetColourMasks(bpp);
470 SDL_ReallocFormat(current, mask->bpp, mask->red, mask->green, mask->blue, 0);
474 SDL_SetError("ph_SetVideoMode(): desired bpp is not supported by photon !\n");
492 if (bpp==8)
508 if (desktopbpp!=bpp)
[all...]
/external/qemu/android/utils/
H A Djpeg-compress.c155 int bpp, int bpl,
161 const int x_shift = x * bpp;
177 if (bpp == 2) {
153 jpeg_compressor_compress_fb(AJPEGDesc* dsc, int x, int y, int w, int h, int num_lines, int bpp, int bpl, const uint8_t* fb, int jpeg_quality, int ydir) argument
/external/qemu/distrib/sdl-1.2.12/src/video/quartz/
H A DSDL_QuartzWindow.m36 int bpp;
38 bpp = surface->format->BitsPerPixel;
40 if (bpp == 32) {
/external/freetype/src/base/
H A Dftbitmap.c106 FT_UInt bpp; local
120 bpp = 1;
124 bpp = 2;
128 bpp = 4;
134 bpp = 8;
146 FT_Int bit_last = ( width + xpixels ) * bpp;
181 FT_Int len = ( width * bpp + 7 ) >> 3;
190 FT_Int len = ( width * bpp + 7 ) >> 3;
/external/qemu/distrib/libpng-1.2.19/
H A Dpnggccrd.c205 * - fixed bug in png_read_filter_row_mmx_avg(), bpp == 2 case; three errors:
298 * 0x0000000000ffffffLL (bpp 3, avg) _amask5_3_0
299 * 0xffffffffffffffffLL (bpp 4, 6, avg) _amask0_8_0
300 * 0x000000000000ffffLL (bpp 2, avg) _amask6_2_0
301 * 0x0000000000ffffffLL (bpp 3, paeth) _amask5_3_0
302 * 0x00000000ffffffffLL (bpp 6, paeth) _amask4_4_0
303 * 0x00000000ffffffffLL (bpp 4, paeth) _amask4_4_0
304 * 0x00000000ffffffffLL (bpp 8, paeth) _amask4_4_0
305 * 0x0000ffffff000000LL (bpp 3, sub) _amask2_3_3
306 * 0x00000000ffff0000LL (bpp
3247 int bpp; local
4012 int bpp; local
5126 int bpp; local
5883 png_uint_32 bpp = (row_info->pixel_depth + 7) >> 3; local
5942 png_uint_32 bpp = (row_info->pixel_depth + 7) >> 3; local
5983 png_uint_32 bpp = (row_info->pixel_depth + 7) >> 3; local
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/ipod/
H A DSDL_ipodvideo.c50 static SDL_Surface *iPod_SetVideoMode (_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
334 static SDL_Surface *iPod_SetVideoMode (_THIS, SDL_Surface *current, int width, int height, int bpp, argument
338 if (bpp > 8) {
347 this->hidden->buffer = SDL_malloc (width * height * (bpp / 8));
353 memset (this->hidden->buffer, 0, width * height * (bpp / 8));
355 if (!SDL_ReallocFormat (current, bpp, Rmask, Gmask, Bmask, 0)) {
362 if (bpp <= 8) {
376 current->pitch = current->w * (bpp / 8);
/external/qemu/distrib/sdl-1.2.12/src/video/gapi/
H A DSDL_gapivideo.c34 // TODO: optimize 8bpp landscape mode
77 extern int DIB_AddMode(_THIS, int bpp, int w, int h);
82 static SDL_Surface *GAPI_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
189 static int GAPI_AddMode(_THIS, int bpp, int w, int h) argument
196 if ( bpp < 8 ) { /* Not supported */
199 index = ((bpp+7)/8)-1;
499 int i,bpp; local
510 // SDL does not supports 2/4bpp mode, so use 16 bpp
511 bpp
588 GAPI_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
1180 int bpp = 16; // we always use either 8 or 16 bpp internally local
[all...]
/external/jmonkeyengine/engine/src/desktop/com/jme3/texture/plugins/
H A DAWTLoader.java79 private void flipImage(byte[] img, int width, int height, int bpp){ argument
80 int scSz = (width * bpp) / 8;
91 private void flipImage(short[] img, int width, int height, int bpp){ argument
92 int scSz = (width * bpp) / 8;
/external/qemu/
H A Dconsole.c276 int x, y, bpp; local
278 bpp = (ds_get_bits_per_pixel(ds) + 7) >> 3;
280 ds_get_linesize(ds) * posy + bpp * posx;
283 switch(bpp) {
312 int wb, y, bpp; local
314 bpp = (ds_get_bits_per_pixel(ds) + 7) >> 3;
315 wb = w * bpp;
318 ds_get_linesize(ds) * ys + bpp * xs;
320 ds_get_linesize(ds) * yd + bpp * xd;
328 ds_get_linesize(ds) * (ys + h - 1) + bpp * x
477 unsigned int font_data, linesize, xorcol, bpp; local
1359 qemu_create_displaysurface_from(int width, int height, int bpp, int linesize, uint8_t *data) argument
1663 qemu_different_endianness_pixelformat(int bpp) argument
1712 qemu_default_pixelformat(int bpp) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/
H A DSDL_gsyuv.c82 int bpp; local
182 bpp = this->screen->format->BytesPerPixel;
185 width * height * bpp +
199 hwdata->dma_tags = hwdata->ipu_omem + width * height * bpp;
245 tags[10] = ((16*16*bpp) >> 4) | (2LL << 58);
248 packet[pnum].len = 16 * 16 * bpp;
257 base += 16 * 16 * bpp;
H A DSDL_gsvideo.c47 static SDL_Surface *GS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
141 int bpp; member in struct:__anon9371
158 -1, /* 0 bpp, not a legal value */
159 -1, /* 8 bpp, not supported (yet?) */
160 PS2_GS_PSMCT16, /* 16 bpp */
161 PS2_GS_PSMCT24, /* 24 bpp */
162 PS2_GS_PSMCT32 /* 32 bpp */
325 vformat->BitsPerPixel = GS_pixelmasks[vinfo.psm].bpp;
381 // FIXME - what's wrong with the stretch code at 16 bpp?
413 int width, int height, int bpp, Uint3
412 GS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
H A DSDL_x11yuv.c101 int bpp; local
161 /* Precalculate the bpp for the pitch workaround below */
167 bpp = 2;
170 bpp = 1;
255 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) {
258 width = hwdata->image->pitches[0] / bpp;
299 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) {
302 width = hwdata->image->pitches[0] / bpp;
/external/qemu/distrib/sdl-1.2.12/src/video/dc/
H A DSDL_dcvideo.c41 static SDL_Surface *DC_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
191 int width, int height, int bpp, Uint32 flags)
204 switch(bpp) {
217 case 24: bpp = 32;
231 // if ( bpp != current->format->BitsPerPixel ) {
232 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, 0) ) {
190 DC_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument

Completed in 735 milliseconds

12345