64 while (r->
sum > val && cnt < 9) {
103 v = ((v >> 1) + r->
lossy) ^ -(v & 1);
123 c = data[-stride - step];
151 for (i = 1; i <
width; i++) {
153 data[i * step] = data[i * step - step] +
val;
156 for (j = 1; j <
height; j++) {
159 data[0] = data[-stride] +
val;
161 for (i = 1; i <
width; i++) {
172 void *
data,
int *got_frame,
177 int buf_size = avpkt->
size;
185 #define ADVANCE_BY_DECODED do { \
186 if (decoded < 0 || decoded >= buf_size) goto buf_too_small; \
187 buf += decoded; buf_size -= decoded; \
238 if (decoded < 0 || decoded > buf_size)
244 return avpkt->
size - buf_size;