summaryrefslogtreecommitdiff
path: root/tools/rle.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rle.h')
-rw-r--r--tools/rle.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/tools/rle.h b/tools/rle.h
index 09405bbc..d6900e8f 100644
--- a/tools/rle.h
+++ b/tools/rle.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: rle.h,v 1.1 2008-12-05 16:34:21 phintuka Exp $
+ * $Id: rle.h,v 1.2 2009-02-16 16:14:58 phintuka Exp $
*
*/
@@ -20,16 +20,19 @@ typedef enum {
scale_good_BW = 1, /* linear interpolation, palette re-generation */
} scale_mode_t;
+
struct xine_rle_elem_s;
struct xine_clut_s;
-int rle_compress(struct xine_rle_elem_s **rle_data, const uint8_t *data, int w, int h);
-void rle_uncompress_lut8(const struct xine_rle_elem_s *rle_data,
- uint8_t *data, int w, int h);
-void rle_uncompress_argb(const struct xine_rle_elem_s *rle_data,
- uint8_t *data, int w, int h,
- struct xine_clut_s *palette);
+int rle_compress(struct xine_rle_elem_s **rle_data, const uint8_t *data, uint w, uint h);
+
+void rle_uncompress_lut8(const struct xine_rle_elem_s *rle_data,
+ uint8_t *data, uint w, uint h);
+void rle_uncompress_argb(uint32_t *dst,
+ const struct xine_rle_elem_s *rle_data, uint num_rle,
+ uint w, uint h, uint stride,
+ struct xine_clut_s *palette);
/*
* rle_scale_nearest()
@@ -37,9 +40,9 @@ void rle_uncompress_argb(const struct xine_rle_elem_s *rle_data,
* - Simple nearest-neighbour scaling for RLE-compressed image
* - fast scaling in compressed form without decompression
*/
-struct xine_rle_elem_s *rle_scale_nearest(const struct xine_rle_elem_s *old_rle,
- int *rle_elems,
- int w, int h, int new_w, int new_h);
+struct xine_rle_elem_s *rle_scale_nearest(const struct xine_rle_elem_s *old_rle,
+ int *rle_elems,
+ uint w, uint h, uint new_w, uint new_h);
#if defined __cplusplus