Lines Matching refs:bmiHeader
229 if (wcd->frame_bitmap->bmiHeader.biCompression == BI_RGB) {
230 if (wcd->frame_bitmap->bmiHeader.biBitCount == 32) {
232 } else if (wcd->frame_bitmap->bmiHeader.biBitCount == 16) {
238 wcd->pixel_format = wcd->frame_bitmap->bmiHeader.biCompression;
339 if (wcd->frame_bitmap->bmiHeader.biWidth != frame_width ||
340 abs(wcd->frame_bitmap->bmiHeader.biHeight) != frame_height) {
342 wcd->frame_bitmap->bmiHeader.biWidth = frame_width;
343 wcd->frame_bitmap->bmiHeader.biHeight = frame_height;
346 if (wcd->frame_bitmap->bmiHeader.biBitCount == 24) {
349 wcd->frame_bitmap->bmiHeader.biSizeImage = bpl * frame_height;
351 wcd->frame_bitmap->bmiHeader.biSizeImage =
352 (frame_width * frame_height * wcd->frame_bitmap->bmiHeader.biBitCount) / 8;
362 if (wcd->frame_bitmap->bmiHeader.biCompression > BI_PNG) {
364 __FUNCTION__, (const char*)&wcd->frame_bitmap->bmiHeader.biCompression);
372 if (wcd->frame_bitmap->bmiHeader.biHeight < 0) {
373 wcd->frame_bitmap->bmiHeader.biHeight =
374 -wcd->frame_bitmap->bmiHeader.biHeight;
443 if (wcd->frame_bitmap->bmiHeader.biWidth != bitmap.bmWidth ||
444 wcd->frame_bitmap->bmiHeader.biHeight != bitmap.bmHeight ) {
447 wcd->frame_bitmap->bmiHeader.biWidth,
448 wcd->frame_bitmap->bmiHeader.biHeight);
454 wcd->gdi_bitmap = (BITMAPINFO*)malloc(wcd->frame_bitmap->bmiHeader.biSize);
461 wcd->frame_bitmap->bmiHeader.biSize);
462 wcd->gdi_bitmap->bmiHeader.biCompression = BI_RGB;
463 wcd->gdi_bitmap->bmiHeader.biBitCount = bitmap.bmBitsPixel;
464 wcd->gdi_bitmap->bmiHeader.biSizeImage = bitmap.bmWidthBytes * bitmap.bmWidth;
472 wcd->gdi_bitmap->bmiHeader.biHeight =
473 wcd->frame_bitmap->bmiHeader.biHeight;
475 wcd->gdi_bitmap->bmiHeader.biHeight =
476 -wcd->frame_bitmap->bmiHeader.biHeight;
480 wcd->framebuffer = (uint8_t*)malloc(wcd->gdi_bitmap->bmiHeader.biSizeImage);
483 __FUNCTION__, wcd->gdi_bitmap->bmiHeader.biSizeImage);
489 if (wcd->gdi_bitmap->bmiHeader.biBitCount == 16) {
491 } else if (wcd->gdi_bitmap->bmiHeader.biBitCount == 24) {
493 } else if (wcd->gdi_bitmap->bmiHeader.biBitCount == 32) {
497 __FUNCTION__, wcd->gdi_bitmap->bmiHeader.biBitCount);
503 __FUNCTION__, wcd->window_name, wcd->gdi_bitmap->bmiHeader.biBitCount,
504 (const char*)&wcd->pixel_format, wcd->frame_bitmap->bmiHeader.biWidth,
505 wcd->frame_bitmap->bmiHeader.biHeight);
568 wcd->frame_bitmap->bmiHeader.biSizeImage,
569 wcd->frame_bitmap->bmiHeader.biWidth,
570 wcd->frame_bitmap->bmiHeader.biHeight,
611 if (wcd->gdi_bitmap->bmiHeader.biHeight > 0) {
612 wcd->gdi_bitmap->bmiHeader.biHeight = -wcd->gdi_bitmap->bmiHeader.biHeight;
615 if (!GetDIBits(wcd->dc, bm_handle, 0, wcd->frame_bitmap->bmiHeader.biHeight,
624 if (wcd->gdi_bitmap->bmiHeader.biHeight < 0) {
625 wcd->gdi_bitmap->bmiHeader.biHeight = -wcd->gdi_bitmap->bmiHeader.biHeight;
634 wcd->gdi_bitmap->bmiHeader.biSizeImage,
635 wcd->frame_bitmap->bmiHeader.biWidth,
636 wcd->frame_bitmap->bmiHeader.biHeight,