Revision bee38515 libavcodec/rle.c

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;

Also available in: Unified diff