54 while(r->
sum > val && cnt < 9) {
94 v = ((v>>1) + r->
lossy) ^ -(v&1);
114 c = data[-stride -
step];
120 int stride,
const uint8_t *buf,
int buf_size,
int step)
139 for (i = 1; i <
width; i++) {
141 data[i *
step] = data[i * step -
step] + val;
144 for (j = 1; j <
height; j++) {
147 data[0] = data[-
stride] + val;
149 for (i = 1; i <
width; i++) {
160 void *
data,
int *data_size,
163 const uint8_t *buf = avpkt->
data;
164 int buf_size = avpkt->
size;
183 buf += decoded; buf_size -= decoded;
186 buf += decoded; buf_size -= decoded;
193 buf += decoded; buf_size -= decoded;
196 buf += decoded; buf_size -= decoded;
203 buf += decoded; buf_size -= decoded;
206 buf += decoded; buf_size -= decoded;
213 buf += decoded; buf_size -= decoded;
216 buf += decoded; buf_size -= decoded;
219 buf += decoded; buf_size -= decoded;