haiku/headers/private/kernel/boot/platform/generic/video.h
François Revol 0573d397e1 Factor out the RLE and blitting functions from bios_ia32 to platform/generic/ so it can be reused by other platforms.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 18:15:44 +00:00

37 lines
933 B
C

/*
* Copyright 2009, Haiku Inc.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef GENERIC_VIDEO_H
#define GENERIC_VIDEO_H
#include <SupportDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/* blit helpers */
/* platform code is responsible for setting the palette correctly */
void video_blit_image(addr_t frameBuffer, uint32 bytesPerRow,
const uint8 *data, uint16 width, uint16 height, uint16 imageWidth,
uint16 left, uint16 top);
/* platform code must implement 4bit on its own */
void platform_blit4(addr_t frameBuffer, uint32 bytesPerRow, const uint8 *data,
uint16 width, uint16 height, uint16 imageWidth, uint16 left, uint16 top);
/* Run Length Encoding splash decompression */
void uncompress_24bit_RLE(const uint8 compressed[], uint8 *uncompressed);
void uncompress_8bit_RLE(const uint8 compressed[], uint8 *uncompressed);
#ifdef __cplusplus
}
#endif
#endif /* GENERIC_VIDEO_H */