Home
last modified time | relevance | path

Searched refs:BytesPerPixel (Results 1 – 25 of 59) sorted by relevance

123

/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_flate.cpp234 int BytesPerPixel = (Colors * BitsPerComponent + 7) / 8; in PNG_PredictorEncode() local
263 if (byte >= BytesPerPixel) { in PNG_PredictorEncode()
264 left = pSrcData[byte - BytesPerPixel]; in PNG_PredictorEncode()
281 if (byte >= BytesPerPixel) { in PNG_PredictorEncode()
282 left = pSrcData[byte - BytesPerPixel]; in PNG_PredictorEncode()
294 if (byte >= BytesPerPixel) { in PNG_PredictorEncode()
295 left = pSrcData[byte - BytesPerPixel]; in PNG_PredictorEncode()
302 if (byte >= BytesPerPixel && row) { in PNG_PredictorEncode()
303 upper_left = pSrcData[byte - row_size - BytesPerPixel]; in PNG_PredictorEncode()
326 int BytesPerPixel = (bpc * nColors + 7) / 8; in PNG_PredictLine() local
[all …]
/external/chromium_org/content/common/gpu/client/
Dgpu_memory_buffer_impl_shm.cc28 BytesPerPixel(internalformat))) { in AllocateSharedMemoryForChildProcess()
42 buffer_size *= BytesPerPixel(internalformat); in IsLayoutSupported()
67 BytesPerPixel(internalformat_))) in Initialize()
86 if (!shared_memory_->Map(size_.GetArea() * BytesPerPixel(internalformat_))) in Map()
99 return size_.width() * BytesPerPixel(internalformat_); in GetStride()
Dgpu_memory_buffer_impl.cc42 size_t GpuMemoryBufferImpl::BytesPerPixel(unsigned internalformat) { in BytesPerPixel() function in content::GpuMemoryBufferImpl
Dgpu_memory_buffer_impl.h53 static size_t BytesPerPixel(unsigned internalformat);
/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_blit.c80 (Uint16)srcrect->x*src->format->BytesPerPixel; in SDL_SoftBlit()
83 info.s_skip=src->pitch-info.s_width*src->format->BytesPerPixel; in SDL_SoftBlit()
86 (Uint16)dstrect->x*dst->format->BytesPerPixel; in SDL_SoftBlit()
89 info.d_skip=dst->pitch-info.d_width*dst->format->BytesPerPixel; in SDL_SoftBlit()
161 w = info->d_width*info->dst->BytesPerPixel; in SDL_BlitCopy()
209 w = info->d_width*info->dst->BytesPerPixel; in SDL_BlitCopyOverlap()
316 switch ( surface->format->BytesPerPixel ) { in SDL_CalculateBlit()
DSDL_blit_N.c309 assert(srcfmt->BytesPerPixel == 2); in Blit_RGB565_32Altivec()
310 assert(dstfmt->BytesPerPixel == 4); in Blit_RGB565_32Altivec()
454 assert(srcfmt->BytesPerPixel == 2); in Blit_RGB555_32Altivec()
455 assert(dstfmt->BytesPerPixel == 4); in Blit_RGB555_32Altivec()
550 int srcbpp = srcfmt->BytesPerPixel; in Blit32to32KeyAltivec()
552 int dstbpp = dstfmt->BytesPerPixel; in Blit32to32KeyAltivec()
675 assert(srcfmt->BytesPerPixel == 4); in ConvertAltivec32to32_noprefetch()
676 assert(dstfmt->BytesPerPixel == 4); in ConvertAltivec32to32_noprefetch()
753 assert(srcfmt->BytesPerPixel == 4); in ConvertAltivec32to32_prefetch()
754 assert(dstfmt->BytesPerPixel == 4); in ConvertAltivec32to32_prefetch()
[all …]
DSDL_pixels.c54 format->BytesPerPixel = (bpp+7)/8; in SDL_AllocFormat()
296 pitch = surface->w*surface->format->BytesPerPixel; in SDL_CalculatePitch()
472 bpp = ((dst->BytesPerPixel == 3) ? 4 : dst->BytesPerPixel); in Map1toN()
482 ASSEMBLE_RGBA(&map[i*bpp], dst->BytesPerPixel, dst, in Map1toN()
559 switch (srcfmt->BytesPerPixel) { in SDL_MapSurface()
561 switch (dstfmt->BytesPerPixel) { in SDL_MapSurface()
591 switch (dstfmt->BytesPerPixel) { in SDL_MapSurface()
DSDL_yuv_sw.c942 if ( (display->format->BytesPerPixel != 2) && in SDL_CreateYUV_SW()
943 (display->format->BytesPerPixel != 3) && in SDL_CreateYUV_SW()
944 (display->format->BytesPerPixel != 4) ) { in SDL_CreateYUV_SW()
1038 if( display->format->BytesPerPixel == 2 ) { in SDL_CreateYUV_SW()
1063 if ( display->format->BytesPerPixel == 2 ) { in SDL_CreateYUV_SW()
1081 if ( display->format->BytesPerPixel == 3 ) { in SDL_CreateYUV_SW()
1085 if ( display->format->BytesPerPixel == 4 ) { in SDL_CreateYUV_SW()
1107 if ( display->format->BytesPerPixel == 2 ) { in SDL_CreateYUV_SW()
1111 if ( display->format->BytesPerPixel == 3 ) { in SDL_CreateYUV_SW()
1115 if ( display->format->BytesPerPixel == 4 ) { in SDL_CreateYUV_SW()
[all …]
DSDL_RLEaccel.c626 switch(fmt->BytesPerPixel) { \
633 switch(fmt->BytesPerPixel) { \
712 switch(fmt->BytesPerPixel) { \
719 switch(fmt->BytesPerPixel) { \
860 + y * dst->pitch + x * src->format->BytesPerPixel; in SDL_RLEBlit()
887 switch(src->format->BytesPerPixel) { in SDL_RLEBlit()
1000 Uint8 BytesPerPixel; member
1092 switch(df->BytesPerPixel) { in RLEAlphaClipBlit()
1125 + y * dst->pitch + x * df->BytesPerPixel; in SDL_RLEAlphaBlit()
1133 if(df->BytesPerPixel == 2) { in SDL_RLEAlphaBlit()
[all …]
DSDL_cursor.c305 x += this->screen->offset / this->screen->format->BytesPerPixel; in SDL_WarpMouse()
309 this->screen->format->BytesPerPixel; in SDL_WarpMouse()
380 switch (screen->format->BytesPerPixel) { in SDL_DrawCursorFast()
509 dstbpp = screen->format->BytesPerPixel; in SDL_DrawCursorSlow()
517 if ( screen->format->BytesPerPixel == 1 ) { in SDL_DrawCursorSlow()
610 screenbpp = screen->format->BytesPerPixel; in SDL_DrawCursorNoLock()
688 screenbpp = screen->format->BytesPerPixel; in SDL_EraseCursorNoLock()
DSDL_yuv.c48 ((SDL_VideoSurface->format->BytesPerPixel == 2) || in SDL_CreateYUVOverlay()
49 (SDL_VideoSurface->format->BytesPerPixel == 4)) ) { in SDL_CreateYUVOverlay()
DSDL_blit_A.c77 int srcbpp = srcfmt->BytesPerPixel; in BlitNto1SurfaceAlpha()
130 int srcbpp = srcfmt->BytesPerPixel; in BlitNto1PixelAlpha()
183 int srcbpp = srcfmt->BytesPerPixel; in BlitNto1SurfaceAlphaKey()
2598 int srcbpp = srcfmt->BytesPerPixel; in BlitNtoNSurfaceAlpha()
2599 int dstbpp = dstfmt->BytesPerPixel; in BlitNtoNSurfaceAlpha()
2640 int srcbpp = srcfmt->BytesPerPixel; in BlitNtoNSurfaceAlphaKey()
2641 int dstbpp = dstfmt->BytesPerPixel; in BlitNtoNSurfaceAlphaKey()
2687 srcbpp = srcfmt->BytesPerPixel; in BlitNtoNPixelAlpha()
2688 dstbpp = dstfmt->BytesPerPixel; in BlitNtoNPixelAlpha()
2730 if(df->BytesPerPixel == 1) in SDL_CalculateAlphaBlit()
[all …]
DSDL_blit_0.c358 dstbpp = dstfmt->BytesPerPixel; in BlitBtoNAlpha()
405 dstbpp = dstfmt->BytesPerPixel; in BlitBtoNAlphaKey()
454 which = surface->map->dst->format->BytesPerPixel; in SDL_CalculateBlit0()
/external/qemu/distrib/sdl-1.2.15/test/
Dtestoverlay.c113 p+=s->format->BytesPerPixel; in ConvertRGBtoYV12()
153 p+=s->format->BytesPerPixel; in ConvertRGBtoIYUV()
186 p+=s->format->BytesPerPixel; in ConvertRGBtoUYVY()
222 p+=s->format->BytesPerPixel; in ConvertRGBtoYVYU()
258 p+=s->format->BytesPerPixel; in ConvertRGBtoYUY2()
498 format.BytesPerPixel=4; in main()
Dtestoverlay2.c118 p+=s->format->BytesPerPixel; in ConvertRGBtoYV12()
151 p+=s->format->BytesPerPixel; in ConvertRGBtoIYUV()
184 p+=s->format->BytesPerPixel; in ConvertRGBtoUYVY()
220 p+=s->format->BytesPerPixel; in ConvertRGBtoYVYU()
256 p+=s->format->BytesPerPixel; in ConvertRGBtoYUY2()
443 format.BytesPerPixel=4; in main()
Dgraywin.c38 if (screen->format->BytesPerPixel==1) in DrawBox()
75 if (screen->format->BytesPerPixel!=2) { in DrawBackground()
77 memset(buffer,(i*(NUM_COLORS-1))/screen->h, screen->w * screen->format->BytesPerPixel); in DrawBackground()
Dtestalpha.c38 if (screen->format->BytesPerPixel!=2) { in FillBackground()
40 memset(buffer,(i*255)/screen->h, screen->w*screen->format->BytesPerPixel); in FillBackground()
95 skip = light->pitch-(light->w*light->format->BytesPerPixel); in CreateLight()
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/
DSDL_riscosvideo.c199 vformat->BytesPerPixel = 2; in RISCOS_VideoInit()
207 vformat->BytesPerPixel = 4; in RISCOS_VideoInit()
214 vformat->BytesPerPixel = 1; in RISCOS_VideoInit()
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
DSDL_fbmatrox.c80 switch (dst->format->BytesPerPixel) { in FillHWRect()
156 pitch = dst->pitch/dst->format->BytesPerPixel; in HWAccelBlit()
191 switch (dst->format->BytesPerPixel) { in HWAccelBlit()
/external/qemu/distrib/sdl-1.2.15/src/video/picogui/
DSDL_pgvideo.c178 vformat->BytesPerPixel = this->hidden->mi.bpp >> 3; in PG_VideoInit()
180 vformat->BytesPerPixel++; in PG_VideoInit()
245 current->format->BytesPerPixel = this->hidden->shm.bpp >> 3; in PG_SetVideoMode()
247 current->format->BytesPerPixel++; in PG_SetVideoMode()
/external/chromium_org/ui/gl/
Dgl_image_shm.cc57 GLenum BytesPerPixel(unsigned internalformat) { in BytesPerPixel() function
130 size_t size = size_.GetArea() * BytesPerPixel(internalformat_); in BindTexImage()
/external/qemu/distrib/sdl-1.2.15/src/video/nds/
DSDL_ndsvideo.c100 if (src->format->BytesPerPixel != dst->format->BytesPerPixel) return false; in CheckHWBlit()
171 vformat->BytesPerPixel = 2; in NDS_VideoInit()
/external/qemu/distrib/sdl-1.2.15/src/video/ps3/
DSDL_ps3yuv.c84 if ((display->format->BytesPerPixel != 2) && in PS3_CreateYUVOverlay()
85 (display->format->BytesPerPixel != 3) && in PS3_CreateYUVOverlay()
86 (display->format->BytesPerPixel != 4)) in PS3_CreateYUVOverlay()
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/
DSDL_nximage.c40 xinc = this -> screen -> format -> BytesPerPixel ; in NX_NormalUpdate()
202 xinc = this -> screen -> format -> BytesPerPixel ; in NX_RefreshDisplay()
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/
DSDL_gsyuv.c182 bpp = this->screen->format->BytesPerPixel; in GS_CreateYUVOverlay()
415 this->screen->format->BytesPerPixel; in GS_DisplayYUVOverlay()
430 screen->format->BytesPerPixel; in GS_DisplayYUVOverlay()

123