Lines Matching defs:bitsHeader
410 TranslatorBitmap bitsHeader;
411 bitsHeader.magic = B_TRANSLATOR_BITMAP;
412 bitsHeader.bounds.left = 0;
413 bitsHeader.bounds.top = 0;
414 bitsHeader.bounds.right = width - 1;
415 bitsHeader.bounds.bottom = height - 1;
416 bitsHeader.rowBytes = 4 * width;
418 bitsHeader.colors = B_RGBA32;
420 bitsHeader.colors = B_RGB32;
421 bitsHeader.dataSize = bitsHeader.rowBytes * height;
422 if (swap_data(B_UINT32_TYPE, &bitsHeader,
427 outDestination->Write(&bitsHeader, sizeof(TranslatorBitmap));
728 TranslatorBitmap bitsHeader;
732 result = identify_bits_header(inSource, NULL, &bitsHeader);
737 if (bitsHeader.colors == B_CMAP8) {
744 width = static_cast<png_uint_32>(bitsHeader.bounds.Width() + 1);
745 height = static_cast<png_uint_32>(bitsHeader.bounds.Height() + 1);
750 switch (bitsHeader.colors) {
788 switch (bitsHeader.colors) {
857 pbitsrow = new(std::nothrow) uint8[bitsHeader.rowBytes];
901 inSource->Read(pbitsrow, bitsHeader.rowBytes);
903 pix_bits_to_png(pbitsrow, prow, bitsHeader.colors, width,
910 inSource->Read(pbitsrow, bitsHeader.rowBytes);
912 pix_bits_to_png(pbitsrow, prows[i], bitsHeader.colors,