Home
last modified time | relevance | path

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

123

/haiku/src/add-ons/accelerants/et6x00/
H A DAcceleration.c45 void et6000aclInit(uint8 bpp) { in et6000aclInit() argument
51 set8(mmRegs+0x8e, 0xcf, (bpp - 1) << 4); /* set pixel color depth */ in et6000aclInit()
80 uint8 bpp = si->bytesPerPixel; in SCREEN_TO_SCREEN_BLIT() local
92 *((vuint16 *)(mmRegs+0x8a)) = screenWidth * bpp - 1; in SCREEN_TO_SCREEN_BLIT()
95 *((vuint16 *)(mmRegs+0x8c)) = screenWidth * bpp - 1; in SCREEN_TO_SCREEN_BLIT()
114 *((vuint16 *)(mmRegs+0x98)) = (width + 1) * bpp - 1; in SCREEN_TO_SCREEN_BLIT()
121 srcAddr = (src_top * screenWidth + src_left) * bpp; in SCREEN_TO_SCREEN_BLIT()
122 destAddr = (dest_top * screenWidth + dest_left) * bpp; in SCREEN_TO_SCREEN_BLIT()
126 srcAddr = (src_top * screenWidth + src_left + width) * bpp + bpp-1; in SCREEN_TO_SCREEN_BLIT()
127 destAddr = (dest_top * screenWidth + dest_left + width) * bpp + bpp-1; in SCREEN_TO_SCREEN_BLIT()
[all …]
H A DSetDisplayMode.c32 uint8 bpp; in SET_DISPLAY_MODE() local
45 bpp = 3; in SET_DISPLAY_MODE()
51 bpp = 2; in SET_DISPLAY_MODE()
56 si->fbc.bytes_per_row = target.virtual_width * bpp; in SET_DISPLAY_MODE()
58 si->bytesPerPixel = bpp; in SET_DISPLAY_MODE()
59 et6000aclInit(bpp); in SET_DISPLAY_MODE()
/haiku/src/add-ons/kernel/drivers/graphics/et6x00/
H A Dsetmode.c32 uint16 width, height, bpp, refreshRate; member
233 static void setATC(uint8 bpp) { in setATC() argument
248 switch (bpp) { in setATC()
332 (clock0MN[m].bpp == mi->BitsPerPlane) && in et6000SetGraphicsMode()
389 uint8 m, bpp; in et6000ProposeMode() local
401 bpp = 24; in et6000ProposeMode()
407 bpp = 16; in et6000ProposeMode()
419 (clock0MN[m].bpp == bpp) && in et6000ProposeMode()
429 if (mode->virtual_width * mode->virtual_height * bpp / 8 > memSize) in et6000ProposeMode()
H A Dreadme9 BeOS 5 does not provide the possibily to set 24bpp modes.
/haiku/src/add-ons/accelerants/s3/
H A Dvirge_mode.cpp45 switch (mode.bpp) { in Virge_EngineReset()
439 } else if (mode.bpp == 8) { in Virge_ModeInit()
441 } else if (mode.bpp == 16) { in Virge_ModeInit()
532 switch (mode.bpp) { in Virge_ModeInit()
547 if (mode.bpp == 8) { in Virge_ModeInit()
552 } else if (mode.bpp == 16) { in Virge_ModeInit()
565 if (mode.bpp == 8) in Virge_ModeInit()
567 else if (mode.bpp == 16) in Virge_ModeInit()
582 if (mode.bpp == 8) { in Virge_ModeInit()
588 } else if (mode.bpp == 16) { in Virge_ModeInit()
[all …]
H A Dtrio64_mode.cpp114 switch (mode.bpp) { in Trio64_ModeInit()
176 InitCrtcTimingValues(mode, (mode.bpp > 8) ? 2 : 1, crtc, cr3b, cr3c, cr5d, cr5e); in Trio64_ModeInit()
218 int clock2 = mode.timing.pixel_clock * (mode.bpp / 8); in Trio64_ModeInit()
293 * (mode.bpp / 8)) >> 2) & ~1; in Trio64_AdjustFrame()
H A Dsavage_mode.cpp317 si.globalBitmapDesc = mode.timing.h_display | (mode.bpp << 16) in Savage_SetGBD()
667 if (mode.bpp == 16 && si.chipType == S3_SAVAGE_3D) in Savage_ModeInit()
677 switch (mode.bpp) { in Savage_ModeInit()
733 if (mode.bpp <= 8) in Savage_ModeInit()
735 else if (mode.bpp <= 16) in Savage_ModeInit()
805 + ((mode.h_display_start & ~0x3F) * (mode.bpp / 8)); in Savage_AdjustFrame()
H A Dmode.cpp334 if ( ! gInfo.GetColorSpaceParams(mode.space, mode.bpp, maxPixelClock)) in SetDisplayMode()
354 int bytesPerPixel = (mode.bpp + 7) / 8; in SetDisplayMode()
359 if ( ! IsThereEnoughFBMemory(&mode, mode.bpp)) in SetDisplayMode()
364 mode.virtual_width, mode.virtual_height, mode.bpp); in SetDisplayMode()
449 uint32 bytesPerPixel = (si.displayMode.bpp + 7) / 8; in GetFrameBufferConfig()
/haiku/src/tests/kits/interface/flatten_picture/
H A DPictureTest.cpp263 int32 bpp, BString &reason) in setMismatchReason() argument
269 memcpy(&color1, pixel1, bpp); in setMismatchReason()
270 memcpy(&color2, pixel2, bpp); in setMismatchReason()
304 int32 bpp = (int32)pixelChunk; in IsSame() local
313 for (int x = 0; x < width; x ++, pixel1 += bpp, pixel2 += bpp) { in IsSame()
314 if (memcmp(pixel1, pixel2, bpp) != 0) { in IsSame()
315 setMismatchReason(x, y, pixel1, pixel2, bpp, reason); in IsSame()
/haiku/src/add-ons/accelerants/radeon/
H A DSetDisplayMode.c44 int virtual_width, int bpp ) in Radeon_RoundVWidth() argument
61 if( bpp != 3 ) in Radeon_RoundVWidth()
62 return (virtual_width + 64/bpp - 1) & ~(64/bpp - 1); in Radeon_RoundVWidth()
113 int bpp; in Radeon_SetMode() local
195 Radeon_GetFormat( mode->space, &format, &bpp ); in Radeon_SetMode()
197 vc->bpp = bpp; in Radeon_SetMode()
431 int format, bpp; in SET_DISPLAY_MODE() local
453 Radeon_GetFormat( mode.space, &format, &bpp ); in SET_DISPLAY_MODE()
454 vc->pitch = Radeon_RoundVWidth( mode.virtual_width, bpp ) * bpp; in SET_DISPLAY_MODE()
H A Doverlay_management.c77 uint ati_space, test_reg, bpp; in ALLOCATE_OVERLAY_BUFFER() local
84 bpp = 2; in ALLOCATE_OVERLAY_BUFFER()
90 bpp = 2; in ALLOCATE_OVERLAY_BUFFER()
96 bpp = 4; in ALLOCATE_OVERLAY_BUFFER()
102 bpp = 2; in ALLOCATE_OVERLAY_BUFFER()
138 buffer->bytes_per_row = (width * bpp + 0xf) & ~0xf; in ALLOCATE_OVERLAY_BUFFER()
H A DProposeDisplayMode.c102 bool Radeon_GetFormat( int space, int *format, int *bpp ) in Radeon_GetFormat() argument
106 case B_CMAP8: *format = 2; *bpp = 1; break; in Radeon_GetFormat()
107 case B_RGB15_LITTLE: *format = 3; *bpp = 2; break; /* 555 */ in Radeon_GetFormat()
108 case B_RGB16_LITTLE: *format = 4; *bpp = 2; break; /* 565 */ in Radeon_GetFormat()
109 case B_RGB24_LITTLE: *format = 5; *bpp = 3; break; /* RGB */ in Radeon_GetFormat()
110 case B_RGB32_LITTLE: *format = 6; *bpp = 4; break; /* xRGB */ in Radeon_GetFormat()
152 int format, bpp; in Radeon_ProposeDisplayMode() local
173 if( !Radeon_GetFormat( target->space, &format, &bpp )) in Radeon_ProposeDisplayMode()
380 eff_virtual_width = Radeon_RoundVWidth( target->virtual_height, bpp ); in Radeon_ProposeDisplayMode()
383 row_bytes = eff_virtual_width * bpp; in Radeon_ProposeDisplayMode()
H A Dradeon_accelerant.h79 uint32 Radeon_RoundVWidth( int virtual_width, int bpp );
95 bool Radeon_GetFormat( int space, int *format, int *bpp );
/haiku/src/add-ons/accelerants/common/
H A Ddp.cpp63 dp_get_pixel_clock_max(int linkRate, int laneCount, int bpp) in dp_get_pixel_clock_max() argument
65 return (linkRate * laneCount * 8) / bpp; in dp_get_pixel_clock_max()
/haiku/src/add-ons/accelerants/matrox/engine/
H A Dtvp3026.c42 status_t mil2_dac_set_pix_pll (float f_need, int bpp) in mil2_dac_set_pix_pll() argument
52 LOG(4,("mil2_dac_set_pix_pll need %fMHz, %dbpp\n", f_need, bpp)); in mil2_dac_set_pix_pll()
58 switch (bpp) { in mil2_dac_set_pix_pll()
83 n = (65 - (4 * 64) / bpp); in mil2_dac_set_pix_pll()
H A Dmga_proto.h61 status_t mil2_dac_set_pix_pll(float f_vco,int bpp);
89 status_t gx00_crtc_set_display_start(uint32 startadd,uint8 bpp);
104 status_t g400_crtc2_set_display_start(uint32 startadd,uint8 bpp);
/haiku/src/add-ons/accelerants/matrox/
H A DProposeDisplayMode.c123 uint8 m,n,p, bpp; in PROPOSE_DISPLAY_MODE() local
300 bpp = 1; in PROPOSE_DISPLAY_MODE()
305 bpp = 2; in PROPOSE_DISPLAY_MODE()
309 bpp = 3; in PROPOSE_DISPLAY_MODE()
313 bpp = 4; in PROPOSE_DISPLAY_MODE()
318 bpp = 4; in PROPOSE_DISPLAY_MODE()
338 ((uint16)(row_bytes / bpp) >= (target->timing.h_display * 2))) in PROPOSE_DISPLAY_MODE()
/haiku/src/add-ons/accelerants/skeleton/
H A DProposeDisplayMode.c115 uint8 m,n,p, bpp; in PROPOSE_DISPLAY_MODE() local
417 bpp = 1; in PROPOSE_DISPLAY_MODE()
422 bpp = 2; in PROPOSE_DISPLAY_MODE()
426 bpp = 3; in PROPOSE_DISPLAY_MODE()
430 bpp = 4; in PROPOSE_DISPLAY_MODE()
435 bpp = 4; in PROPOSE_DISPLAY_MODE()
449 ((uint16)(row_bytes / bpp) >= (target->timing.h_display * 2))) in PROPOSE_DISPLAY_MODE()
/haiku/src/add-ons/accelerants/via/
H A DProposeDisplayMode.c117 uint8 m,n,p, bpp; in PROPOSE_DISPLAY_MODE() local
419 bpp = 1; in PROPOSE_DISPLAY_MODE()
424 bpp = 2; in PROPOSE_DISPLAY_MODE()
428 bpp = 3; in PROPOSE_DISPLAY_MODE()
432 bpp = 4; in PROPOSE_DISPLAY_MODE()
437 bpp = 4; in PROPOSE_DISPLAY_MODE()
451 ((uint16)(row_bytes / bpp) >= (target->timing.h_display * 2))) in PROPOSE_DISPLAY_MODE()
/haiku/src/add-ons/translators/icns/
H A DICNSLoader.cpp193 int bpp = 32; in ICNSSaver() local
224 iconInfo.iconBitDepth = bpp; in ICNSSaver()
225 iconInfo.iconChannels = (bpp == 32 ? 4 : 1); in ICNSSaver()
226 iconInfo.iconPixelDepth = bpp / iconInfo.iconChannels; in ICNSSaver()
/haiku/src/add-ons/screen_savers/ifs/
H A DIFS.cpp514 int32 bpp = info->bits_per_pixel; in _DrawFractal() local
515 screenBits += left * bpp + top * bpr; in _DrawFractal()
538 if (bpp == 32) { in _DrawFractal()
542 } else if (bpp == 16) { in _DrawFractal()
550 } else if (bpp == 15) { in _DrawFractal()
558 } else if (bpp == 8) { in _DrawFractal()
582 if (bpp == 32) { in _DrawFractal()
586 } else if (bpp == 16) { in _DrawFractal()
594 } else if (bpp == 15) { in _DrawFractal()
602 } else if (bpp == 1) { in _DrawFractal()
/haiku/src/add-ons/kernel/file_systems/fat/bsd/kern/
H A Dvfs_bio.c63 int flags, struct buf** bpp);
89 bread(struct vnode* vp, daddr_t blkno, int size, struct ucred* cred, struct buf** bpp) in bread() argument
97 *bpp = buf; in bread()
268 int flags, struct buf** bpp) in getblkx() argument
374 (*bpp) = newBuf; in getblkx()
439 *bpp = newBuf; in getblkx()
/haiku/src/add-ons/accelerants/nvidia/
H A DProposeDisplayMode.c231 uint8 m,n,p, bpp; in PROPOSE_DISPLAY_MODE() local
467 bpp = 1; in PROPOSE_DISPLAY_MODE()
472 bpp = 2; in PROPOSE_DISPLAY_MODE()
476 bpp = 3; in PROPOSE_DISPLAY_MODE()
480 bpp = 4; in PROPOSE_DISPLAY_MODE()
485 bpp = 4; in PROPOSE_DISPLAY_MODE()
497 && (uint16)(row_bytes / bpp) >= target->timing.h_display * 2) in PROPOSE_DISPLAY_MODE()
/haiku/headers/private/graphics/common/
H A Ddp.h47 uint32 dp_get_pixel_clock_max(int linkRate, int laneCount, int bpp);
/haiku/src/add-ons/kernel/file_systems/fat/bsd/fs/msdosfs/
H A Dmsdosfs_lookup.c937 struct buf **bpp, struct direntry **epp) in readep() argument
948 if ((error = bread(pmp->pm_devvp, bn, blsize, NOCRED, bpp)) != 0) { in readep()
949 brelse(*bpp); in readep()
950 *bpp = NULL; in readep()
954 *epp = bptoep(pmp, *bpp, diroffset); in readep()
964 readde(struct denode *dep, struct buf **bpp, struct direntry **epp) in readde() argument
968 bpp, epp)); in readde()

123