• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:frame

53 static int decode_copy(GetByteContext *gb, uint8_t *frame, int width, int height)
57 if (bytestream2_get_buffer(gb, frame, size) != size)
62 static int decode_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
64 const uint8_t *frame_start = frame;
65 const uint8_t *frame_end = frame + width * height;
72 if (frame_end - frame <= offset)
74 frame += offset;
82 if (frame_end - frame < 2)
88 if (frame - frame_start < offset || frame_end - frame < count)
90 av_memcpy_backptr(frame, offset, count);
91 frame += count;
93 *frame++ = bytestream2_get_byte(gb);
94 *frame++ = bytestream2_get_byte(gb);
102 static int decode_dsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
104 const uint8_t *frame_start = frame;
105 const uint8_t *frame_end = frame + width * height;
117 if (frame_end - frame < 2)
123 if (frame - frame_start < offset || frame_end - frame < count)
127 frame[v] = frame[v - offset];
128 frame += count;
130 frame += bytestream2_get_le16(gb);
132 *frame++ = bytestream2_get_byte(gb);
133 *frame++ = bytestream2_get_byte(gb);
141 static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height)
143 const uint8_t *frame_start = frame;
144 const uint8_t *frame_end = frame + width * height;
161 if (frame - frame_start < offset || frame_end - frame < count*2 + width)
164 frame[0] = frame[1] =
165 frame[width] = frame[width + 1] = frame[-offset];
167 frame += 2;
171 if (frame - frame_end < v)
173 frame += v;
175 if (frame_end - frame < width + 3)
177 frame[0] = frame[1] =
178 frame[width] = frame[width + 1] = bytestream2_get_byte(gb);
179 frame += 2;
180 frame[0] = frame[1] =
181 frame[width] = frame[width + 1] = bytestream2_get_byte(gb);
182 frame += 2;
190 static int decode_bdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
198 frame += width * count;
206 line_ptr = frame;
207 frame += width;
210 if (frame - line_ptr <= bytestream2_peek_byte(gb))
215 if (frame - line_ptr < count)
221 if (frame - line_ptr < count)
232 static int decode_wdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
234 const uint8_t *frame_end = frame + width * height;
250 if (frame_end - frame <= delta || y + lines + skip_lines > height)
252 frame += delta;
257 frame[width - 1] = segments & 0xFF;
260 line_ptr = frame;
261 if (frame_end - frame < width)
263 frame += width;
266 if (frame - line_ptr <= bytestream2_peek_byte(gb))
271 if (frame - line_ptr < count * 2)
278 if (frame - line_ptr < count * 2)
290 static int decode_unk6(GetByteContext *gb, uint8_t *frame, int width, int height)
295 static int decode_blck(GetByteContext *gb, uint8_t *frame, int width, int height)
297 memset(frame, 0, width * height);
302 typedef int (*chunk_decoder)(GetByteContext *gb, uint8_t *frame, int width, int height);