diff options
author | phintuka <phintuka> | 2009-02-16 16:14:58 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-02-16 16:14:58 +0000 |
commit | e75047b3f767aeb74e40cd038f6e4c95ec3eecf3 (patch) | |
tree | c0eb926c03b3c0486d8a195fe0d68cfee6bcd630 /tools/rle.h | |
parent | 9b3e3ea4173696324ea79272f57c72cfb48a7692 (diff) | |
download | xineliboutput-e75047b3f767aeb74e40cd038f6e4c95ec3eecf3.tar.gz xineliboutput-e75047b3f767aeb74e40cd038f6e4c95ec3eecf3.tar.bz2 |
width, height: int -> uint
Diffstat (limited to 'tools/rle.h')
-rw-r--r-- | tools/rle.h | 23 |
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 |