65 unsigned char *dst = frame->
data[0];
76 const unsigned char *
src,
int src_stride,
78 int xoffset,
int yoffset,
85 if (i+xoffset>=0 && i+xoffset<width &&
86 j+yoffset>=0 && j+yoffset<height) {
87 dst[j*dst_stride + i] = src[(j+yoffset)*src_stride + i+xoffset];
89 dst[j*dst_stride + i] = 0;
102 for(x=0; x<s->
avctx->
width/4 && buf_end - buf > i; x++) {
104 unsigned char *dst = frame->
data[0] + (y*4)*frame->
linesize[0] + x*4;
105 if (raw+16<buf_end && *raw==0xFF) {
108 memcpy(dst + frame->
linesize[0], raw+4, 4);
109 memcpy(dst + 2 * frame->
linesize[0], raw+8, 4);
110 memcpy(dst + 3 * frame->
linesize[0], raw+12, 4);
112 }
else if(raw<buf_end) {
113 int xoffset = (*raw & 0xF) - 7;
114 int yoffset = ((*raw >> 4)) - 7;
122 int xoffset = (buf[i] & 0xF) - 7;
123 int yoffset = ((buf[i] >> 4)) - 7;
135 int pal_start, pal_count, i;
137 if(buf_end - buf < 16) {
157 for (i=pal_start; i<pal_start+pal_count && i<
AVPALETTE_COUNT && buf_end - buf >= 3; i++) {
163 #define EA_PREAMBLE_SIZE 8
164 #define MVIh_TAG MKTAG('M', 'V', 'I', 'h')
167 void *
data,
int *got_frame,
171 int buf_size = avpkt->
size;
173 const uint8_t *buf_end = buf + buf_size;