Searched refs:bitsHeader (Results 1 - 17 of 17) sorted by relevance

/haiku/src/add-ons/translators/wonderbrush/
H A DWonderBrushTranslator.cpp221 TranslatorBitmap bitsHeader; local
222 bitsHeader.magic = B_TRANSLATOR_BITMAP;
223 bitsHeader.bounds.left = 0;
224 bitsHeader.bounds.top = 0;
225 bitsHeader.bounds.right = width - 1;
226 bitsHeader.bounds.bottom = height - 1;
227 bitsHeader.rowBytes = bytesPerRow;
228 bitsHeader.colors = format;
229 bitsHeader.dataSize = bitsHeader
[all...]
/haiku/src/add-ons/translators/ico/
H A DICO.cpp201 get_rgba32_color_from_bits(TranslatorBitmap &bitsHeader, uint8 *data, int32 x, int32 y) argument
203 data += bitsHeader.rowBytes * y;
205 switch (bitsHeader.colors) {
223 fill_palette(TranslatorBitmap &bitsHeader, uint8 *data, rgba32_color *palette) argument
227 for (int32 y = 0; y < bitsHeader.bounds.IntegerHeight() + 1; y++) {
228 for (int32 x = 0; x < bitsHeader.bounds.IntegerWidth() + 1; x++) {
229 rgba32_color color = get_rgba32_color_from_bits(bitsHeader, data, x, y);
384 convert_bits_to_data(TranslatorBitmap &bitsHeader, uint8 *bitsData, ico_dir_entry &entry, argument
410 rgba32_color color = get_rgba32_color_from_bits(bitsHeader, bitsData, x, row);
471 rgba32_color color = get_rgba32_color_from_bits(bitsHeader, bitsDat
630 TranslatorBitmap bitsHeader; local
662 convert_bits_to_ico(BMessage *settings, BPositionIO &source, TranslatorBitmap &bitsHeader, BPositionIO &target) argument
[all...]
H A DICOTranslator.cpp148 TranslatorBitmap bitsHeader;
149 status_t status = identify_bits_header(source, NULL, &bitsHeader);
153 return ICO::convert_bits_to_ico(ioExtension, *source, bitsHeader, *target);
H A DICO.h90 TranslatorBitmap &bitsHeader, BPositionIO &target);
/haiku/src/add-ons/translators/exr/
H A DEXRTranslator.cpp138 TranslatorBitmap bitsHeader; local
139 bitsHeader.magic = B_TRANSLATOR_BITMAP;
140 bitsHeader.bounds.left = 0;
141 bitsHeader.bounds.top = 0;
142 bitsHeader.bounds.right = displayWidth - 1;
143 bitsHeader.bounds.bottom = displayHeight - 1;
144 bitsHeader.rowBytes = 4 * displayWidth;
145 bitsHeader.colors = B_RGBA32;
146 bitsHeader.dataSize = bitsHeader
[all...]
/haiku/src/add-ons/translators/icns/
H A DICNSLoader.cpp148 TranslatorBitmap bitsHeader;
149 bitsHeader.magic = B_TRANSLATOR_BITMAP;
150 bitsHeader.bounds.left = 0;
151 bitsHeader.bounds.top = 0;
152 bitsHeader.bounds.right = iconImage.imageWidth - 1;
153 bitsHeader.bounds.bottom = iconImage.imageHeight - 1;
154 bitsHeader.rowBytes = sizeof(uint32) * iconImage.imageWidth;
155 bitsHeader.colors = B_RGBA32;
156 bitsHeader.dataSize = bitsHeader
[all...]
H A DICNSTranslator.cpp168 TranslatorBitmap bitsHeader; local
170 result = identify_bits_header(source, NULL, &bitsHeader);
174 icns_type_t type = ICNSFormat(bitsHeader.bounds.Width() + 1,
175 bitsHeader.bounds.Height() + 1, bitsHeader.colors);
180 ICNSSaver icnsFile(source, bitsHeader.rowBytes, type);
/haiku/src/add-ons/translators/sgi/
H A DSGITranslator.cpp275 TranslatorBitmap bitsHeader; local
279 status_t ret = identify_bits_header(inSource, NULL, &bitsHeader);
287 uint32 width = bitsHeader.bounds.IntegerWidth() + 1;
288 uint32 height = bitsHeader.bounds.IntegerHeight() + 1;
289 uint32 bytesPerRow = bitsHeader.rowBytes;
291 color_space format = bitsHeader.colors;
497 TranslatorBitmap bitsHeader; local
498 bitsHeader.magic = B_TRANSLATOR_BITMAP;
499 bitsHeader.bounds.left = 0;
500 bitsHeader
[all...]
/haiku/src/add-ons/translators/pcx/
H A DPCX.cpp277 TranslatorBitmap bitsHeader; local
278 bitsHeader.magic = B_TRANSLATOR_BITMAP;
279 bitsHeader.bounds.left = 0;
280 bitsHeader.bounds.top = 0;
281 bitsHeader.bounds.right = width - 1;
282 bitsHeader.bounds.bottom = height - 1;
283 bitsHeader.bounds.Set(0, 0, width - 1, height - 1);
284 bitsHeader.rowBytes = width * 4;
285 bitsHeader.colors = B_RGB32;
286 bitsHeader
[all...]
/haiku/src/add-ons/translators/png/
H A DPNGTranslator.cpp410 TranslatorBitmap bitsHeader; local
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
728 TranslatorBitmap bitsHeader; local
[all...]
/haiku/src/add-ons/translators/avif/
H A DAVIFTranslator.cpp208 TranslatorBitmap bitsHeader;
211 status = identify_bits_header(stream, NULL, &bitsHeader);
221 switch (bitsHeader.colors) {
266 bitsHeader.colors);
270 int width = bitsHeader.bounds.IntegerWidth() + 1;
271 int height = bitsHeader.bounds.IntegerHeight() + 1;
287 int bitsSize = height * bitsHeader.rowBytes;
291 rgb.rowBytes = bitsHeader.rowBytes;
307 assert(bitsHeader.colors == B_YCbCr444);
308 int bitsSize = height * bitsHeader
[all...]
/haiku/src/add-ons/translators/tiff/
H A DTIFFTranslator.cpp645 TranslatorBitmap bitsHeader;
650 result = identify_bits_header(inSource, NULL, &bitsHeader);
666 uint32 width = bitsHeader.bounds.IntegerWidth() + 1;
667 uint32 height = bitsHeader.bounds.IntegerHeight() + 1;
668 uint32 dataSize = bitsHeader.dataSize;
669 uint32 bytesPerRow = bitsHeader.rowBytes;
714 switch (bitsHeader.colors) {
728 ret = write_tif_stream(tif, inSource, bitsHeader.colors,
764 ret = write_tif_stream(tif, inSource, bitsHeader.colors,
776 ret = write_tif_stream(tif, inSource, bitsHeader
848 TranslatorBitmap bitsHeader; local
[all...]
/haiku/src/add-ons/translators/psd/
H A DPSDLoader.cpp262 TranslatorBitmap bitsHeader; local
263 bitsHeader.magic = B_TRANSLATOR_BITMAP;
264 bitsHeader.bounds.left = 0;
265 bitsHeader.bounds.top = 0;
266 bitsHeader.bounds.right = fWidth - 1;
267 bitsHeader.bounds.bottom = fHeight - 1;
272 bitsHeader.rowBytes = rowBytes;
273 bitsHeader.dataSize = channelBytes;
274 bitsHeader.colors = B_GRAY1;
276 bitsHeader
[all...]
/haiku/src/add-ons/translators/webp/
H A DWebPTranslator.cpp195 TranslatorBitmap bitsHeader;
198 status = identify_bits_header(stream, NULL, &bitsHeader);
202 if (bitsHeader.colors == B_CMAP8) {
209 switch (bitsHeader.colors) {
273 picture.width = bitsHeader.bounds.IntegerWidth() + 1;
274 picture.height = bitsHeader.bounds.IntegerHeight() + 1;
276 int stride = bitsHeader.rowBytes;
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp1010 TranslatorBitmap bitsHeader; local
1012 result = identify_bits_header(inSource, NULL, &bitsHeader);
1026 static_cast<uint32> (bitsHeader.bounds.Width() + 1);
1028 static_cast<int32> (bitsHeader.bounds.Height() + 1);
1036 switch (bitsHeader.colors) {
1109 switch (bitsHeader.colors) {
1127 bitsHeader.colors, msheader);
1135 if (bitsHeader.colors == B_CMAP8) {
1165 bitsHeader.rowBytes, msheader);
1179 bitsHeader
1750 TranslatorBitmap bitsHeader; local
[all...]
/haiku/src/add-ons/translators/tga/
H A DTGATranslator.cpp1192 TranslatorBitmap bitsHeader; local
1197 result = identify_bits_header(inSource, NULL, &bitsHeader);
1217 imagespec.width = static_cast<uint16> (bitsHeader.bounds.Width() + 1);
1218 imagespec.height = static_cast<uint16> (bitsHeader.bounds.Height() + 1);
1223 switch (bitsHeader.colors) {
1332 switch (bitsHeader.colors) {
1350 bitsHeader.colors, imagespec, brle);
1383 bitsHeader.rowBytes, imagespec, brle);
2115 TranslatorBitmap bitsHeader; local
2116 bitsHeader
[all...]
/haiku/src/add-ons/translators/shared/
H A DBaseTranslator.cpp521 TranslatorBitmap bitsHeader; local
525 result = identify_bits_header(inSource, NULL, &bitsHeader);
531 // write out bitsHeader (only if configured to)
533 if (swap_data(B_UINT32_TYPE, &bitsHeader,
536 if (outDestination->Write(&bitsHeader,
544 uint32 remaining = B_BENDIAN_TO_HOST_INT32(bitsHeader.dataSize);

Completed in 115 milliseconds