Home
last modified time | relevance | path

Searched refs:msheader (Results 1 – 2 of 2) sorted by relevance

/haiku/src/tests/add-ons/translators/bmptranslator/
H A DBMPTranslatorTest.cpp224 MSInfoHeader msheader; in IdentifyTest() local
225 msheader.size = 40; in IdentifyTest()
226 msheader.width = 5; in IdentifyTest()
227 msheader.height = 5; in IdentifyTest()
228 msheader.planes = 1; in IdentifyTest()
229 msheader.bitsperpixel = 24; in IdentifyTest()
230 msheader.compression = BMP_NO_COMPRESS; in IdentifyTest()
231 msheader.imagesize = 0; in IdentifyTest()
232 msheader.xpixperm = 23275; in IdentifyTest()
233 msheader.ypixperm = 23275; in IdentifyTest()
[all …]
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp332 MSInfoHeader msheader; in identify_bmp_header() local
333 msheader.size = headersize; in identify_bmp_header()
335 reinterpret_cast<uint8 *> (&msheader) + 4, 36) != 36) in identify_bmp_header()
340 reinterpret_cast<uint8 *> (&msheader) + 4, 36, in identify_bmp_header()
345 if (msheader.width == 0 || msheader.height == 0) in identify_bmp_header()
347 if (msheader.planes != 1) in identify_bmp_header()
349 if ((msheader.bitsperpixel != 1 || in identify_bmp_header()
350 msheader.compression != BMP_NO_COMPRESS) && in identify_bmp_header()
351 (msheader.bitsperpixel != 4 || in identify_bmp_header()
352 msheader.compression != BMP_NO_COMPRESS) && in identify_bmp_header()
[all …]