comparison rle.c @ 4768:542e4c4fc15a libavcodec

move doxy from .c to .h
author michael
date Tue, 03 Apr 2007 01:20:31 +0000
parents a3667e74f44b
children 79db9e9df40a
comparison
equal deleted inserted replaced
4767:a3667e74f44b 4768:542e4c4fc15a
53 } 53 }
54 54
55 return count; 55 return count;
56 } 56 }
57 57
58 /**
59 * RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor) + add.
60 * @param outbuf Output buffer
61 * @param out_size Maximum output size
62 * @param ptr Input buffer
63 * @param bpp Bytes per pixel
64 * @param w Image width
65 * @return Size of output in bytes, or -1 if larger than out_size
66 */
67 int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr , int bpp, int w, int8_t add, uint8_t xor) 58 int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr , int bpp, int w, int8_t add, uint8_t xor)
68 { 59 {
69 int count, x; 60 int count, x;
70 uint8_t *out; 61 uint8_t *out;
71 62