Revision bee38515

View differences:

libavcodec/rle.c
55 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 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 60
    int count, x;
libavcodec/rle.h
22 22
#ifndef RLE_H
23 23
#define RLE_H
24 24

  
25
/**
26
 * RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor) + add.
27
 * @param outbuf Output buffer
28
 * @param out_size Maximum output size
29
 * @param ptr Input buffer
30
 * @param bpp Bytes per pixel
31
 * @param w Image width
32
 * @return Size of output in bytes, or -1 if larger than out_size
33
 */
25 34
int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *inbuf, int bpp, int w, int8_t add, uint8_t xor);
26 35

  
27 36
#endif /* RLE_H */

Also available in: Unified diff