Home
last modified time | relevance | path

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

/haiku/src/build/libbe/interface/
H A DGraphicsDefs.cpp56 int32 bytesPerPixel = 0; in get_pixel_size_for() local
61 bytesPerPixel = 8; in get_pixel_size_for()
65 bytesPerPixel = 6; in get_pixel_size_for()
76 bytesPerPixel = 4; in get_pixel_size_for()
82 bytesPerPixel = 3; in get_pixel_size_for()
87 bytesPerPixel = 2; in get_pixel_size_for()
91 bytesPerPixel = 1; in get_pixel_size_for()
95 bytesPerPixel = 1; in get_pixel_size_for()
99 bytesPerPixel = 4; in get_pixel_size_for()
103 bytesPerPixel = 12; in get_pixel_size_for()
[all …]
/haiku/src/kits/interface/
H A DGraphicsDefs.cpp101 int32 bytesPerPixel = 0; in get_pixel_size_for() local
106 bytesPerPixel = 8; in get_pixel_size_for()
110 bytesPerPixel = 6; in get_pixel_size_for()
121 bytesPerPixel = 4; in get_pixel_size_for()
127 bytesPerPixel = 3; in get_pixel_size_for()
132 bytesPerPixel = 2; in get_pixel_size_for()
136 bytesPerPixel = 1; in get_pixel_size_for()
140 bytesPerPixel = 1; in get_pixel_size_for()
144 bytesPerPixel = 4; in get_pixel_size_for()
148 bytesPerPixel = 12; in get_pixel_size_for()
[all …]
/haiku/src/add-ons/translators/avif/
H A DAVIFTranslator.cpp217 int32 bytesPerPixel; in _TranslateFromBits() local
225 bytesPerPixel = 4; in _TranslateFromBits()
231 bytesPerPixel = 4; in _TranslateFromBits()
236 bytesPerPixel = 4; in _TranslateFromBits()
241 bytesPerPixel = 4; in _TranslateFromBits()
246 bytesPerPixel = 3; in _TranslateFromBits()
251 bytesPerPixel = 3; in _TranslateFromBits()
255 bytesPerPixel = 3; in _TranslateFromBits()
260 bytesPerPixel = 1; in _TranslateFromBits()
302 } else if (bytesPerPixel == 3) { in _TranslateFromBits()
/haiku/src/add-ons/accelerants/3dfx/
H A D3dfx_draw.cpp31 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; in TDFX_FillRectangle()
60 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; in TDFX_FillSpan()
89 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; in TDFX_InvertRectangle()
116 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; in TDFX_ScreenToScreenBlit()
H A Doverlay.cpp63 uint32 bytesPerPixel; in AllocateOverlayBuffer() local
68 bytesPerPixel = 2; in AllocateOverlayBuffer()
78 uint32 buffSize = (width * bytesPerPixel * height + 0x3ff) & ~0x3ff; in AllocateOverlayBuffer()
125 + (si.displayMode.virtual_width * si.displayMode.bytesPerPixel in AllocateOverlayBuffer()
149 ovBuff->bytes_per_row = width * bytesPerPixel; in AllocateOverlayBuffer()
H A Dmode.cpp31 uint32 bytesPerPixel = (bitsPerPixel + 7) / 8; in IsThereEnoughFBMemory() local
33 return (maxWidth * maxHeight * bytesPerPixel in IsThereEnoughFBMemory()
185 mode.bytesPerPixel = (mode.bitsPerPixel + 7) / 8; in SetDisplayMode()
186 mode.bytesPerRow = mode.timing.h_display * mode.bytesPerPixel; in SetDisplayMode()
287 * si.displayMode.bytesPerPixel; in GetFrameBufferConfig()
H A D3dfx_mode.cpp298 | (mode.bytesPerPixel - 1) << DESKTOP_PIXEL_FORMAT_SHIFT in TDFX_SetDisplayMode()
299 | (mode.bytesPerPixel > 1 ? DESKTOP_CLUT_BYPASS : 0); in TDFX_SetDisplayMode()
369 + mode.h_display_start) * mode.bytesPerPixel; in TDFX_AdjustFrame()
/haiku/src/add-ons/accelerants/intel_810/
H A Dmode.cpp31 uint32 bytesPerPixel = (bitsPerPixel + 7) / 8; in IsThereEnoughFBMemory() local
33 return (maxWidth * maxHeight * bytesPerPixel in IsThereEnoughFBMemory()
182 mode.bytesPerPixel = (mode.bitsPerPixel + 7) / 8; in SetDisplayMode()
183 mode.bytesPerRow = mode.timing.h_display * mode.bytesPerPixel; in SetDisplayMode()
282 * si.displayMode.bytesPerPixel; in GetFrameBufferConfig()
H A Di810_mode.cpp258 + mode.h_display_start) * mode.bytesPerPixel) >> 2; in I810_AdjustFrame()
/haiku/src/add-ons/accelerants/ati/
H A Dmode.cpp69 uint32 bytesPerPixel = (bitsPerPixel + 7) / 8; in IsThereEnoughFBMemory() local
71 return (maxWidth * maxHeight * bytesPerPixel < gInfo.sharedInfo->maxFrameBufferSize); in IsThereEnoughFBMemory()
272 int bytesPerPixel = (mode.bitsPerPixel + 7) / 8; in SetDisplayMode() local
273 mode.bytesPerRow = mode.timing.h_display * bytesPerPixel; in SetDisplayMode()
372 uint32 bytesPerPixel = (si.displayMode.bitsPerPixel + 7) / 8; in GetFrameBufferConfig() local
373 pFBC->bytes_per_row = si.displayMode.virtual_width * bytesPerPixel; in GetFrameBufferConfig()
H A Doverlay.cpp80 uint32 bytesPerPixel = 2; // B_YCbCr422 uses 2 bytes per pixel in AllocateOverlayBuffer() local
83 uint32 buffSize = (width * bytesPerPixel * height + 0x3ff) & ~0x3ff; in AllocateOverlayBuffer()
145 ovBuff->bytes_per_row = width * bytesPerPixel; in AllocateOverlayBuffer()
H A Drage128_mode.cpp155 int bytesPerPixel = (mode.bitsPerPixel + 7) / 8; in CalculateDDARegisters() local
158 vClkFreq * bytesPerPixel * 8); in CalculateDDARegisters()
164 vClkFreq * bytesPerPixel * 8); in CalculateDDARegisters()
/haiku/src/add-ons/accelerants/intel_extreme/
H A Doverlay.cpp355 uint32 bytesPerPixel; in intel_allocate_overlay_buffer() local
359 bytesPerPixel = 2; in intel_allocate_overlay_buffer()
362 bytesPerPixel = 2; in intel_allocate_overlay_buffer()
365 bytesPerPixel = 4; in intel_allocate_overlay_buffer()
368 bytesPerPixel = 2; in intel_allocate_overlay_buffer()
390 buffer->bytes_per_row = (width * bytesPerPixel + alignment) & ~alignment; in intel_allocate_overlay_buffer()
558 uint32 bytesPerPixel = 2; in intel_configure_overlay() local
569 bytesPerPixel = 4; in intel_configure_overlay()
625 + left * bytesPerPixel; in intel_configure_overlay()
H A Dmode.cpp48 uint32 bytesPerPixel; in get_color_space_format() local
57 bytesPerPixel = 4; in get_color_space_format()
66 bytesPerPixel = 2; in get_color_space_format()
75 bytesPerPixel = 2; in get_color_space_format()
85 bytesPerPixel = 1; in get_color_space_format()
90 bytesPerRow = mode.virtual_width * bytesPerPixel; in get_color_space_format()
/haiku/src/add-ons/accelerants/s3/
H A Dmode.cpp163 uint32 bytesPerPixel = (bitsPerPixel + 7) / 8; in IsThereEnoughFBMemory() local
165 return (maxWidth * maxHeight * bytesPerPixel < gInfo.sharedInfo->maxFrameBufferSize); in IsThereEnoughFBMemory()
354 int bytesPerPixel = (mode.bpp + 7) / 8; in SetDisplayMode() local
355 mode.bytesPerRow = mode.timing.h_display * bytesPerPixel; in SetDisplayMode()
449 uint32 bytesPerPixel = (si.displayMode.bpp + 7) / 8; in GetFrameBufferConfig() local
450 pFBC->bytes_per_row = si.displayMode.virtual_width * bytesPerPixel; in GetFrameBufferConfig()
/haiku/src/add-ons/accelerants/et6x00/
H A DSetDisplayMode.c58 si->bytesPerPixel = bpp; in SET_DISPLAY_MODE()
H A DAcceleration.c80 uint8 bpp = si->bytesPerPixel; in SCREEN_TO_SCREEN_BLIT()
170 uint8 bpp = si->bytesPerPixel; in FILL_RECTANGLE()
/haiku/headers/private/graphics/intel_810/
H A DDriverInterface.h65 uint8 bytesPerPixel; member
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/uvc/
H A DUSB_video.h31 uint8 bytesPerPixel; member
H A DUVCCamDevice.cpp198 descriptor->uncompressed.bytesPerPixel, in _ParseVideoStreaming()
/haiku/headers/private/graphics/et6x00/
H A DDriverInterface.h73 uint8 bytesPerPixel; /* bytes(!) per pixel at current display mode */ member
/haiku/headers/private/graphics/3dfx/
H A DDriverInterface.h89 uint8 bytesPerPixel; member
/haiku/src/add-ons/accelerants/radeon_hd/
H A Ddisplay.cpp712 uint32 bytesPerPixel; in display_crtc_fb_set() local
717 bytesPerPixel = 1; in display_crtc_fb_set()
729 bytesPerPixel = 2; in display_crtc_fb_set()
740 bytesPerPixel = 2; in display_crtc_fb_set()
772 bytesPerPixel = 4; in display_crtc_fb_set()
836 switch (bytesPerPixel) { in display_crtc_fb_set()
896 gInfo->shared_info->bytes_per_row = widthAligned * bytesPerPixel; in display_crtc_fb_set()
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp184 uint8 bytesPerPixel = bitsperpixel / 8; in get_padding() local
185 padding = (width * bytesPerPixel) % 4; in get_padding()
227 uint8 bytesPerPixel = bitsperpixel / 8; in get_rowbytes() local
228 rowbytes = (width * bytesPerPixel) + padding; in get_rowbytes()
/haiku/src/tools/html5_remote_desktop/
H A DHaikuRemoteDesktop.js1724 var bytesPerPixel = 3;
1725 var bytesPerRow = (width * bytesPerPixel + 3) & ~7;
1726 var padding = bytesPerRow - width * bytesPerPixel;