2009-08-14 22:15:44 +04:00
|
|
|
/*
|
|
|
|
* 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 */
|
2009-08-15 00:51:29 +04:00
|
|
|
void video_blit_image(addr_t frameBuffer, const uint8 *data,
|
|
|
|
uint16 width, uint16 height, uint16 imageWidth,
|
2009-08-14 22:15:44 +04:00
|
|
|
uint16 left, uint16 top);
|
|
|
|
|
|
|
|
/* platform code must implement 4bit on its own */
|
2009-08-15 00:51:29 +04:00
|
|
|
void platform_blit4(addr_t frameBuffer, const uint8 *data,
|
|
|
|
uint16 width, uint16 height, uint16 imageWidth,
|
|
|
|
uint16 left, uint16 top);
|
|
|
|
void platform_set_palette(const uint8 *palette);
|
2009-08-14 22:15:44 +04:00
|
|
|
|
|
|
|
|
|
|
|
/* Run Length Encoding splash decompression */
|
|
|
|
|
|
|
|
void uncompress_24bit_RLE(const uint8 compressed[], uint8 *uncompressed);
|
|
|
|
void uncompress_8bit_RLE(const uint8 compressed[], uint8 *uncompressed);
|
|
|
|
|
2009-08-15 00:51:29 +04:00
|
|
|
/* default splash display */
|
2018-08-02 17:24:15 +03:00
|
|
|
status_t video_display_splash(addr_t frameBuffer);
|
2009-08-15 00:51:29 +04:00
|
|
|
|
2009-08-14 22:15:44 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GENERIC_VIDEO_H */
|