Home
last modified time | relevance | path

Searched refs:pixels (Results 1 – 25 of 123) sorted by relevance

12345

/external/opencore/codecs_v2/utilities/colorconvert/src/
Dccrgb12toyuv420.cpp221 uint32 pixels; in ccrgb12toyuv() local
355 pixels = inputRGB[i]; in ccrgb12toyuv()
356 temp = (827 * (pixels & 0x000F000F) + 2435 * ((pixels & 0x0F000F00) >> 8)); in ccrgb12toyuv()
357 yuv_value = (y_tab[((temp&0x0FFFF)>> 9) + (pixels & 0x000000F0)] | in ccrgb12toyuv()
358 (y_tab[(temp >>25) + ((pixels & 0x00F00000)>>16)] << 8)); in ccrgb12toyuv()
360 pixels = inputRGB[i+1]; in ccrgb12toyuv()
361 temp = (827 * (pixels & 0x000F000F) + 2435 * ((pixels & 0x0F000F00) >> 8)); in ccrgb12toyuv()
363 (y_tab[((temp&0x0FFFF)>> 9) + (pixels & 0x000000F0)] | in ccrgb12toyuv()
364 (y_tab[(temp >>25) + ((pixels & 0x00F00000)>>16)] << 8)) << 16); in ccrgb12toyuv()
366 pixels = inputRGB[i+2]; in ccrgb12toyuv()
[all …]
Dccrgb16toyuv420.cpp232 uint16 pixels; in ccrgb16toyuv() local
260 pixels = inputRGB[i]; in ccrgb16toyuv()
261 if (pixels != colorkey) in ccrgb16toyuv()
263 temp = (ALPHA * (pixels & 0x001F) + BETA * (pixels >> 11)); in ccrgb16toyuv()
264 yuv_value = y_tab[(temp>>SHIFT_INDEX1) + ((pixels>>3) & 0x00FC)]; in ccrgb16toyuv()
267 G_ds += (pixels >> 1) & 0x03E0; in ccrgb16toyuv()
268 B_ds += (pixels << 5) & 0x03E0; in ccrgb16toyuv()
269 R_ds += (pixels >> 6) & 0x03E0; in ccrgb16toyuv()
273 pixels = inputRGB[i+pitch_src]; in ccrgb16toyuv()
274 if (pixels != colorkey) in ccrgb16toyuv()
[all …]
/external/icu4c/layout/
DValueRecords.cpp47 LEPoint pixels; in adjustPosition() local
49 fontInstance->transformFunits(value, 0, pixels); in adjustPosition()
51 xPlacementAdjustment += fontInstance->xPixelsToUnits(pixels.fX); in adjustPosition()
52 yPlacementAdjustment += fontInstance->yPixelsToUnits(pixels.fY); in adjustPosition()
57 LEPoint pixels; in adjustPosition() local
59 fontInstance->transformFunits(0, value, pixels); in adjustPosition()
61 xPlacementAdjustment += fontInstance->xPixelsToUnits(pixels.fX); in adjustPosition()
62 yPlacementAdjustment += fontInstance->yPixelsToUnits(pixels.fY); in adjustPosition()
67 LEPoint pixels; in adjustPosition() local
69 fontInstance->transformFunits(value, 0, pixels); in adjustPosition()
[all …]
DAnchorTables.cpp56 LEPoint pixels; in getAnchor() local
58 fontInstance->transformFunits(x, y, pixels); in getAnchor()
60 fontInstance->pixelsToUnits(pixels, anchor); in getAnchor()
82 LEPoint pixels; in getAnchor() local
86 fontInstance->transformFunits(x, y, pixels); in getAnchor()
92 pixels.fX += adjx; in getAnchor()
99 pixels.fY += adjy; in getAnchor()
102 fontInstance->pixelsToUnits(pixels, anchor); in getAnchor()
DLEFontInstance.cpp131 void LEFontInstance::pixelsToUnits(LEPoint &pixels, LEPoint &units) const in pixelsToUnits() argument
133 units.fX = xPixelsToUnits(pixels.fX); in pixelsToUnits()
134 units.fY = yPixelsToUnits(pixels.fY); in pixelsToUnits()
137 void LEFontInstance::transformFunits(float xFunits, float yFunits, LEPoint &pixels) const in transformFunits()
139 pixels.fX = xUnitsToPoints(xFunits) * getScaleFactorX(); in transformFunits()
140 pixels.fY = yUnitsToPoints(yFunits) * getScaleFactorY(); in transformFunits()
DMarkToBasePosnSubtables.cpp67 LEPoint baseAnchor, markAdvance, pixels; in process() local
77 fontInstance->getGlyphAdvance(markGlyph, pixels); in process()
78 fontInstance->pixelsToUnits(pixels, markAdvance); in process()
90 fontInstance->getGlyphAdvance(baseGlyph, pixels); in process()
91 fontInstance->pixelsToUnits(pixels, baseAdvance); in process()
DMarkToMarkPosnSubtables.cpp66 LEPoint mark2Anchor, markAdvance, pixels; in process() local
75 fontInstance->getGlyphAdvance(markGlyph, pixels); in process()
76 fontInstance->pixelsToUnits(pixels, markAdvance); in process()
88 fontInstance->getGlyphAdvance(mark2Glyph, pixels); in process()
89 fontInstance->pixelsToUnits(pixels, mark2Advance); in process()
DMarkToLigaturePosnSubtables.cpp77 LEPoint ligatureAnchor, markAdvance, pixels; in process() local
81 fontInstance->getGlyphAdvance(markGlyph, pixels); in process()
82 fontInstance->pixelsToUnits(pixels, markAdvance); in process()
94 fontInstance->getGlyphAdvance(ligatureGlyph, pixels); in process()
95 fontInstance->pixelsToUnits(pixels, ligatureAdvance); in process()
DGlyphPositionAdjustments.cpp92 LEPoint entryAnchor, exitAnchor, pixels; in applyCursiveAdjustments() local
120 fontInstance->getGlyphAdvance(glyphID, pixels); in applyCursiveAdjustments()
121 fontInstance->pixelsToUnits(pixels, secondAdvance); in applyCursiveAdjustments()
127 fontInstance->getGlyphAdvance(lastExitGlyphID, pixels); in applyCursiveAdjustments()
128 fontInstance->pixelsToUnits(pixels, firstAdvance); in applyCursiveAdjustments()
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/
DSDL_gsyuv.c49 Uint8 *pixels; member
140 hwdata->pixels = (Uint8 *)SDL_malloc(width*height*2); in GS_CreateYUVOverlay()
141 if ( hwdata->pixels == NULL ) { in GS_CreateYUVOverlay()
150 overlay->pixels = hwdata->planes; in GS_CreateYUVOverlay()
157 overlay->pixels[0] = hwdata->pixels; in GS_CreateYUVOverlay()
158 overlay->pixels[1] = overlay->pixels[0] + in GS_CreateYUVOverlay()
160 overlay->pixels[2] = overlay->pixels[1] + in GS_CreateYUVOverlay()
336 lum = (Uint32 *)overlay->pixels[0]; in GS_DisplayYUVOverlay()
337 Cr = (Uint32 *)overlay->pixels[1]; in GS_DisplayYUVOverlay()
338 Cb = (Uint32 *)overlay->pixels[2]; in GS_DisplayYUVOverlay()
[all …]
DSDL_gsmouse.c71 saved_pixels = screen->pixels; in GS_MoveCursor()
72 screen->pixels = mapped_mem + screen->offset; in GS_MoveCursor()
92 if ( (SDL_cursorstate & CURSOR_VISIBLE) && screen->pixels ) { in GS_MoveCursor()
98 screen->pixels = saved_pixels; in GS_MoveCursor()
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
DSDL_cgximage.c70 LBMI_BASEADDRESS,(ULONG)&screen->pixels, in CGX_SetupImage()
85 D(bug("Accel video image configured (%lx, pitch %ld).\n",screen->pixels,screen->pitch)); in CGX_SetupImage()
89 screen->pixels = SDL_malloc(screen->h*screen->pitch); in CGX_SetupImage()
91 if ( screen->pixels == NULL ) { in CGX_SetupImage()
96 SDL_Ximage=screen->pixels; in CGX_SetupImage()
115 screen->pixels = NULL; in CGX_DestroyImage()
202 surface->pixels=NULL; in CGX_FreeHWSurface()
218 LBMI_BASEADDRESS,(ULONG)&surface->pixels, in CGX_LockHWSurface()
227 …surface->pixels=((char *)surface->pixels)+(surface->pitch*(SDL_Window->BorderTop+SDL_Window->TopEd… in CGX_LockHWSurface()
289 spot = (Uint16 *) ((Uint8 *)screen->pixels + in CGX_SwapAllPixels()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/directfb/
DSDL_DirectFB_yuv.c192 overlay->pixels = hwdata->planes; in DirectFB_CreateYUVOverlay()
224 overlay->pixels[0] = (Uint8*) data; in DirectFB_LockYUVOverlay()
233 overlay->pixels[1] = overlay->pixels[0] + overlay->pitches[0] * overlay->h; in DirectFB_LockYUVOverlay()
234 overlay->pixels[2] = overlay->pixels[1] + overlay->pitches[1] * overlay->h / 2; in DirectFB_LockYUVOverlay()
248 overlay->pixels[0] = overlay->pixels[1] = overlay->pixels[2] = NULL; in DirectFB_UnlockYUVOverlay()
/external/qemu/distrib/sdl-1.2.12/src/video/quartz/
DSDL_QuartzWindow.m42 Uint32 *pixels = (Uint32*) surface->pixels;
49 pixels[ (i * rowPixels) + j ] |= 0xFF000000;
89 /* make sure pixels are fully opaque */
129 /* If not OpenGL, we have to update the pixels and pitch */
135 SDL_VideoSurface->pixels = GetPixBaseAddr ( GetPortPixMap ( thePort ) );
139 SDL_VideoSurface->pixels now points to the window's pixels
140 We want it to point to the *view's* pixels
148 …SDL_VideoSurface->pixels = (Uint8 *)SDL_VideoSurface->pixels + (vOffset * SDL_VideoSurface->pitch)…
167 /* make sure pixels are fully opaque */
DSDL_QuartzYUV.m96 SDL_free (overlay->pixels);
250 Uint8 **pixels;
270 pixels = (Uint8**) SDL_malloc (sizeof(*pixels) * 3);
272 if (pixels == NULL || pitches == NULL) {
292 pixels[0] = (Uint8*)yuv_pixmap + offset;
293 /* CHECK_ALIGN(pixels[0]); */
300 pixels[plane2] = (Uint8*)yuv_pixmap + offset;
306 pixels[plane3] = (Uint8*)yuv_pixmap + offset;
311 overlay->pixels = pixels;
DSDL_QuartzWM.m55 …/* copy data and mask, extending the mask to all black pixels because the inversion effect doesn't…
373 /* we need to compute which screen has the most window pixels */
422 Uint8 *pixels;
431 pixels = [ imgrep bitmapData ];
432 …SDL_memset(pixels, 0, 4*icon->w*icon->h); /* make the background, which will survive in colorkeyed…
439 …mergedSurface = SDL_CreateRGBSurfaceFrom(pixels, icon->w, icon->h, 32, 4*icon->w, BYTEORDER_DEPEND…
457 pixels[index + 3] = 0;
461 if (icon->format->Amask == 0) pixels[index + 3] = icon->format->alpha;
464 pixels[index + 3] = 255;
467 if (pixels[index + 3] < 255) {
[all …]
/external/qemu/android/skin/
Dimage.c219 void* pixels; /* 32-bit ARGB */ member
242 if (image->pixels) { in skin_image_free()
243 free( image->pixels ); in skin_image_free()
244 image->pixels = NULL; in skin_image_free()
329 image->pixels = data; in skin_image_load()
333 image->surface = sdl_surface_from_argb32( image->pixels, w, h ); in skin_image_load()
507 node->pixels = rotate_image( parent->pixels, parent->w, parent->h, in skin_image_create()
513 if (node->pixels == NULL) { in skin_image_create()
519 blend_image( node->pixels, node->pixels, node->w, node->h, desc->blend ); in skin_image_create()
521 node->surface = sdl_surface_from_argb32( node->pixels, node->w, node->h ); in skin_image_create()
[all …]
Dsurface.c27 uint32_t* pixels; member
114 void* pixels, in _sdl_surface_create_rgb_from() argument
130 return SDL_CreateRGBSurfaceFrom( pixels, width, height, pitch, depth, in _sdl_surface_create_rgb_from()
137 void* pixels ) in _skin_surface_create() argument
142 s->pixels = pixels; in _skin_surface_create()
149 free(pixels); in _skin_surface_create()
194 uint32_t* pixels, in skin_surface_create_argb32_from() argument
208 memcpy( pixcopy, pixels, size ); in skin_surface_create_argb32_from()
212 pixcopy ? pixcopy : pixels, in skin_surface_create_argb32_from()
239 pix->pixels = s->surface->pixels; in skin_surface_lock()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_surface.c113 surface->pixels = NULL; in SDL_CreateRGBSurface()
126 surface->pixels = SDL_malloc(surface->h*surface->pitch); in SDL_CreateRGBSurface()
127 if ( surface->pixels == NULL ) { in SDL_CreateRGBSurface()
133 SDL_memset(surface->pixels, 0, surface->h*surface->pitch); in SDL_CreateRGBSurface()
154 SDL_Surface * SDL_CreateRGBSurfaceFrom (void *pixels, in SDL_CreateRGBSurfaceFrom() argument
164 surface->pixels = pixels; in SDL_CreateRGBSurfaceFrom()
318 buf = (Uint8 *)surface->pixels + row * surface->pitch + offset; in SDL_SetAlphaChannel()
603 row = (Uint8 *)dst->pixels+dstrect->y*dst->pitch+ in SDL_FillRect()
689 Uint16 *pixels = (Uint16 *)row; in SDL_FillRect() local
693 if((uintptr_t)pixels & 3) { in SDL_FillRect()
[all …]
DSDL_yuv_sw.c104 Uint8 *pixels; member
988 swdata->pixels = (Uint8 *) SDL_malloc(width*height*2); in SDL_CreateYUV_SW()
998 if ( ! swdata->pixels || ! swdata->colortab || ! swdata->rgb_2_pix ) { in SDL_CreateYUV_SW()
1127 overlay->pixels = swdata->planes; in SDL_CreateYUV_SW()
1134 overlay->pixels[0] = swdata->pixels; in SDL_CreateYUV_SW()
1135 overlay->pixels[1] = overlay->pixels[0] + in SDL_CreateYUV_SW()
1137 overlay->pixels[2] = overlay->pixels[1] + in SDL_CreateYUV_SW()
1145 overlay->pixels[0] = swdata->pixels; in SDL_CreateYUV_SW()
1215 lum = overlay->pixels[0]; in SDL_DisplayYUV_SW()
1216 Cr = overlay->pixels[1]; in SDL_DisplayYUV_SW()
[all …]
DSDL_cursor.c373 const Uint32 pixels[2] = { 0xFFFFFFFF, 0x00000000 }; in SDL_DrawCursorFast() local
391 dst = (Uint8 *)screen->pixels + in SDL_DrawCursorFast()
418 dst = (Uint16 *)screen->pixels + in SDL_DrawCursorFast()
429 *dst = (Uint16)pixels[datab>>7]; in SDL_DrawCursorFast()
445 dst = (Uint8 *)screen->pixels + in SDL_DrawCursorFast()
456 SDL_memset(dst,pixels[datab>>7],3); in SDL_DrawCursorFast()
472 dst = (Uint32 *)screen->pixels + in SDL_DrawCursorFast()
483 *dst = pixels[datab>>7]; in SDL_DrawCursorFast()
499 const Uint32 pixels[2] = { 0xFFFFFF, 0x000000 }; in SDL_DrawCursorSlow() local
510 dst = (Uint8 *)screen->pixels + in SDL_DrawCursorSlow()
[all …]
/external/jpeg/
Djmorecfg.h26 #define WRITE_TWO_PIXELS(addr, pixels) do { \ argument
27 ((INT16*)(addr))[0] = (pixels); \
28 ((INT16*)(addr))[1] = (pixels)>>16; \
30 #define WRITE_TWO_ALIGNED_PIXELS(addr, pixels) ((*(INT32*)(addr)) = pixels) argument
/external/qemu/distrib/sdl-1.2.12/src/video/svga/
DSDL_svgavideo.c348 if ( banked && current->pixels ) { in SVGA_SetVideoMode()
349 free(current->pixels); in SVGA_SetVideoMode()
350 current->pixels = NULL; in SVGA_SetVideoMode()
402 current->pixels = SDL_malloc(current->h * current->pitch); in SVGA_SetVideoMode()
403 if ( !current->pixels ) { in SVGA_SetVideoMode()
408 current->pixels = vga_getgraphmem(); in SVGA_SetVideoMode()
479 surface->pixels=flip_address[flip_page]; in SVGA_FlipHWSurface()
510 src = (unsigned char *)this->screen->pixels + vp; in SVGA_BankedUpdate()
578 if ( banked && this->screen->pixels ) { in SVGA_VideoQuit()
579 SDL_free(this->screen->pixels); in SVGA_VideoQuit()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/epoc/
DSDL_epocvideo.cpp356 if (current && current->pixels) { in EPOC_SetVideoMode()
357 SDL_free(current->pixels); in EPOC_SetVideoMode()
358 current->pixels = NULL; in EPOC_SetVideoMode()
373 current->pixels = SDL_malloc(width * height * numBytesPerPixel); in EPOC_SetVideoMode()
374 SDL_memset(current->pixels, 0, width * height * numBytesPerPixel); in EPOC_SetVideoMode()
544 TUint16* bitmapLine = (TUint16*)_this->screen->pixels + sourceStartOffset; in EPOC_DirectUpdate()
552 __ASSERT_DEBUG(bitmapLine < ((TUint16*)_this->screen->pixels + in EPOC_DirectUpdate()
555 __ASSERT_DEBUG(bitmapLine >= (TUint16*)_this->screen->pixels, in EPOC_DirectUpdate()
564 TUint8* bitmapLine = (TUint8*)_this->screen->pixels + sourceStartOffset; in EPOC_DirectUpdate()
576 __ASSERT_DEBUG(bitmapPos < ((TUint8*)_this->screen->pixels + in EPOC_DirectUpdate()
[all …]
/external/webkit/SunSpider/tests/
D3d-raytrace.js292 function renderRows(camera, scene, pixels, width, height, starty, stopy) { argument
300 pixels[y][x] = l;
305 Camera.prototype.render = function(scene, pixels, width, height) { argument
308 renderRows(cam, scene, pixels, width, height, 0, height);
391 var pixels = new Array();
393 pixels[y] = new Array();
395 pixels[y][x] = 0;
400 _camera.render(_scene, pixels, size, size);
402 return pixels;
405 function arrayToCanvasCommands(pixels) argument
[all …]

12345