Home
last modified time | relevance | path

Searched refs:buf_end (Results 1 - 25 of 81) sorted by relevance

1234

/third_party/ffmpeg/libavcodec/
H A Dmjpegbdec.c49 const uint8_t *buf_end, *buf_ptr; in mjpegb_decode_frame() local
56 buf_end = buf + buf_size; in mjpegb_decode_frame()
67 if (buf_end - buf_ptr >= 1 << 28) in mjpegb_decode_frame()
70 init_get_bits(&hgb, buf_ptr, /*buf_size*/(buf_end - buf_ptr)*8); in mjpegb_decode_frame()
82 second_field_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "second_field_offs is %d and size is %d\n"); in mjpegb_decode_frame()
86 dqt_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "dqt is %d and size is %d\n"); in mjpegb_decode_frame()
89 init_get_bits(&s->gb, buf_ptr+dqt_offs, (buf_end - (buf_ptr+dqt_offs))*8); in mjpegb_decode_frame()
96 dht_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "dht is %d and size is %d\n"); in mjpegb_decode_frame()
99 init_get_bits(&s->gb, buf_ptr+dht_offs, (buf_end - (buf_ptr+dht_offs))*8); in mjpegb_decode_frame()
104 sof_offs = read_offs(avctx, &hgb, buf_end in mjpegb_decode_frame()
[all...]
H A Deacmv.c61 const uint8_t *buf, const uint8_t *buf_end) in cmv_decode_intra()
66 for (i=0; i < s->avctx->height && buf_end - buf >= s->avctx->width; i++) { in cmv_decode_intra()
93 const uint8_t *buf_end) in cmv_decode_inter()
100 for(x=0; x<s->avctx->width/4 && buf_end - buf > i; x++) { in cmv_decode_inter()
103 if (raw+16<buf_end && *raw==0xFF) { /* intra */ in cmv_decode_inter()
110 }else if(raw<buf_end) { /* inter using second-last frame as reference */ in cmv_decode_inter()
131 static int cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end) in cmv_process_header() argument
135 if(buf_end - buf < 16) { in cmv_process_header()
161 for (i=pal_start; i<pal_start+pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) { in cmv_process_header()
178 const uint8_t *buf_end in cmv_decode_frame() local
60 cmv_decode_intra(CmvContext * s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end) cmv_decode_intra() argument
92 cmv_decode_inter(CmvContext *s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end) cmv_decode_inter() argument
[all...]
H A Diff.c552 * @param buf_end the EOF of source byterun1 compressed bitstream
809 const uint8_t *buf, const uint8_t *buf_end, in decode_short_horizontal_delta()
819 bytestream2_init(&ptrs, buf, buf_end - buf); in decode_short_horizontal_delta()
829 if (ofssrc >= buf_end - buf) in decode_short_horizontal_delta()
832 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc)); in decode_short_horizontal_delta()
862 const uint8_t *buf, const uint8_t *buf_end, in decode_byte_vertical_delta()
872 bytestream2_init(&ptrs, buf, buf_end - buf); in decode_byte_vertical_delta()
881 if (ofssrc >= buf_end - buf) in decode_byte_vertical_delta()
884 bytestream2_init(&gb, buf + ofssrc, buf_end - (buf + ofssrc)); in decode_byte_vertical_delta()
929 const uint8_t *buf, const uint8_t *buf_end, in decode_delta_j()
808 decode_short_horizontal_delta(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int bpp, int dst_size) decode_short_horizontal_delta() argument
861 decode_byte_vertical_delta(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int xor, int bpp, int dst_size) decode_byte_vertical_delta() argument
928 decode_delta_j(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int h, int bpp, int dst_size) decode_delta_j() argument
1039 decode_short_vertical_delta(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int bpp, int dst_size) decode_short_vertical_delta() argument
1107 decode_long_vertical_delta(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int bpp, int dst_size) decode_long_vertical_delta() argument
1193 decode_short_vertical_delta2(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int bpp, int dst_size) decode_short_vertical_delta2() argument
1253 decode_long_vertical_delta2(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int bpp, int dst_size) decode_long_vertical_delta2() argument
1335 decode_delta_d(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int flag, int bpp, int dst_size) decode_delta_d() argument
1394 decode_delta_e(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int flag, int bpp, int dst_size) decode_delta_e() argument
1449 decode_delta_l(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int flag, int bpp, int dst_size) decode_delta_l() argument
1534 const uint8_t *buf_end = buf + buf_size; decode_frame() local
[all...]
H A Dput_bits.h53 uint8_t *buf, *buf_ptr, *buf_end; member
71 s->buf_end = s->buf + buffer_size; in init_put_bits()
117 s->buf_end = buffer + buffer_size; in rebase_put_bits()
127 return (s->buf_end - s->buf_ptr) * 8 - BUF_BITS + s->bit_left; in put_bits_left()
137 return s->buf_end - s->buf_ptr - ((BUF_BITS - s->bit_left + (round_up ? 7 : 0)) >> 3); in put_bytes_left()
150 av_assert0(s->buf_ptr < s->buf_end); in flush_put_bits()
167 av_assert0(s->buf_ptr < s->buf_end); in flush_put_bits_le()
209 if (s->buf_end - s->buf_ptr >= sizeof(BitBuf)) { in put_bits_no_assert()
227 if (s->buf_end - s->buf_ptr >= sizeof(BitBuf)) { in put_bits_no_assert()
265 if (s->buf_end in put_bits_le()
[all...]
H A Dbintext.c149 const uint8_t *buf_end = buf+buf_size; in decode_frame() local
164 while (buf + 2 < buf_end) { in decode_frame()
171 for (i = 0; i < count && buf + 1 < buf_end; i++) { in decode_frame()
178 for (i = 0; i < count && buf < buf_end; i++) in decode_frame()
183 for (i = 0; i < count && buf < buf_end; i++) in decode_frame()
189 for (i = 0; i < count && buf < buf_end; i++) in decode_frame()
195 while (buf + 2 < buf_end) { in decode_frame()
198 if (buf + 6 > buf_end) in decode_frame()
209 while (buf + 1 < buf_end) { in decode_frame()
H A Deatgv.c150 const uint8_t *buf, const uint8_t *buf_end) in tgv_decode_inter()
161 if(buf_end - buf < 12) in tgv_decode_inter()
198 if (buf_end - buf < (mvbits>>3) + 16*num_blocks_raw + 8*num_blocks_packed) in tgv_decode_inter()
213 init_get_bits(&gb, buf, (buf_end - buf) << 3); in tgv_decode_inter()
271 const uint8_t *buf_end = buf + buf_size; in tgv_decode_frame() local
274 if (buf_end - buf < EA_PREAMBLE_SIZE) in tgv_decode_frame()
282 if(buf_end - buf < 12) { in tgv_decode_frame()
298 for(i = 0; i < pal_count && i < AVPALETTE_COUNT && buf_end - buf >= 3; i++) { in tgv_decode_frame()
302 if (buf_end - buf < 5) { in tgv_decode_frame()
321 if (unpack(buf, buf_end, in tgv_decode_frame()
149 tgv_decode_inter(TgvContext *s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end) tgv_decode_inter() argument
[all...]
H A Dptx.c33 const uint8_t *buf_end = avpkt->data + avpkt->size; in ptx_decode_frame() local
38 if (buf_end - buf < 14) in ptx_decode_frame()
52 if (buf_end - buf < offset) in ptx_decode_frame()
59 if (buf_end - buf < w * bytes_per_pixel) in ptx_decode_frame()
73 for (y = 0; y < h && buf_end - buf >= w * bytes_per_pixel; y++) { in ptx_decode_frame()
H A Davs.c50 const uint8_t *buf_end = avpkt->data + avpkt->size; in avs_decode_frame() local
69 if (buf_end - buf < 4) in avs_decode_frame()
81 if (first >= 256 || last > 256 || buf_end - buf < 4 + 4 + 3 * (last - first)) in avs_decode_frame()
120 if (buf_end - buf < 256 * vect_w * vect_h) in avs_decode_frame()
125 if (buf_end - table < map_size) in avs_decode_frame()
134 if (buf_end - table < 1) in avs_decode_frame()
H A Dfrwu.c51 const uint8_t *buf_end = buf + avpkt->size; in decode_frame() local
73 if (buf_end - buf < 8) in decode_frame()
81 if (buf_end - buf < field_size) { in decode_frame()
82 av_log(avctx, AV_LOG_ERROR, "Packet is too small, need %i, have %i\n", field_size, (int)(buf_end - buf)); in decode_frame()
H A Dsunrast.c35 const uint8_t *buf_end = avpkt->data + avpkt->size; in sunrast_decode_frame() local
122 if (buf_end - buf < (uint64_t)maplength + (len * h) * 3 / 256) in sunrast_decode_frame()
163 while (ptr != end && buf < buf_end) { in sunrast_decode_frame()
165 if (buf_end - buf < 1) in sunrast_decode_frame()
186 if (buf_end - buf < alen) in sunrast_decode_frame()
H A Dkgv1dec.c51 const uint8_t *buf_end = buf + avpkt->size; in decode_frame() local
94 while (outcnt < maxcnt && buf_end - 2 >= buf) { in decode_frame()
112 if (buf_end - 3 < buf) in decode_frame()
139 if (buf_end - 1 < buf) in decode_frame()
H A Dmlp.c136 const uint8_t *buf_end = buf + buf_size; in ff_mlp_calculate_parity() local
138 for (; ((intptr_t) buf & 3) && buf < buf_end; buf++) in ff_mlp_calculate_parity()
140 for (; buf < buf_end - 3; buf += 4) in ff_mlp_calculate_parity()
145 for (; buf < buf_end; buf++) in ff_mlp_calculate_parity()
H A Dpcxenc.c90 const uint8_t *buf_end; in pcx_encode_frame() local
140 buf_end = pkt->data + pkt->size; in pcx_encode_frame()
169 if ((written = pcx_rle_encode(buf, buf_end - buf, in pcx_encode_frame()
179 if (buf_end - buf < 257) { in pcx_encode_frame()
H A Dgemdec.c93 const uint8_t *buf_end = buf + buf_size; in gem_decode_frame() local
287 while(b < buf_end) { in gem_decode_frame()
290 if (b >= buf_end) in gem_decode_frame()
297 if (b >= buf_end) in gem_decode_frame()
310 if (b >= buf_end) in gem_decode_frame()
314 if (b > buf_end - pattern_size) in gem_decode_frame()
324 if (b >= buf_end) in gem_decode_frame()
328 if (b >= buf_end) in gem_decode_frame()
H A Deatqi.c132 const uint8_t *buf_end = buf+buf_size; in tqi_decode_frame() local
154 buf_end - buf); in tqi_decode_frame()
158 (buf_end - buf) / 4); in tqi_decode_frame()
159 init_get_bits(&t->gb, t->bitstream_buf, 8 * (buf_end - buf)); in tqi_decode_frame()
H A Dlibuavs3d.c151 const uint8_t *buf_end; in libuavs3d_decode_frame() local
173 buf_end = buf + buf_size; in libuavs3d_decode_frame()
187 if (uavs3d_find_next_start_code(buf_ptr, buf_end - buf_ptr, &left_bytes)) { in libuavs3d_decode_frame()
188 bs_len = buf_end - buf_ptr - left_bytes; in libuavs3d_decode_frame()
190 bs_len = buf_end - buf_ptr; in libuavs3d_decode_frame()
H A Dvmdaudio.c110 const uint8_t *buf_end = buf + buf_size; in decode_audio_s16() local
123 while (buf < buf_end) { in decode_audio_s16()
139 const uint8_t *buf_end; in vmdaudio_decode_frame() local
212 buf_end = buf + buf_size; in vmdaudio_decode_frame()
214 while (buf_end - buf >= s->chunk_size) { in vmdaudio_decode_frame()
H A Dpgssubdec.c333 const uint8_t *buf_end = buf + buf_size; in parse_palette_segment() local
354 while (buf < buf_end) { in parse_palette_segment()
395 const uint8_t *buf_end = buf + buf_size; in parse_presentation_segment() local
449 if (buf_end - buf < 8) { in parse_presentation_segment()
598 const uint8_t *buf_end; in decode() local
620 buf_end = buf + buf_size; in decode()
623 while (buf < buf_end) { in decode()
629 if (segment_type != DISPLAY_SEGMENT && segment_length > buf_end - buf) in decode()
H A Dxsubdec.c56 const uint8_t *buf_end = buf + buf_size; in decode_frame() local
96 if (buf_end - buf < h + 3*4) in decode_frame()
132 if ((ret = init_get_bits8(&gb, buf, buf_end - buf)) < 0) in decode_frame()
H A Ddsicinaudio.c95 const uint8_t *buf_end = buf + avpkt->size; in cinaudio_decode_frame() local
112 while (buf < buf_end) { in cinaudio_decode_frame()
/third_party/ffmpeg/libavformat/
H A Dhls_sample_encryption.c55 const uint8_t *buf_end; member
177 if (ctx->buf_end - ctx->buf_ptr >= 4 && AV_RB32(ctx->buf_ptr) == 0x00000001) in get_next_nal_unit()
179 else if (ctx->buf_end - ctx->buf_ptr >= 3 && AV_RB24(ctx->buf_ptr) == 0x000001) in get_next_nal_unit()
186 while (ctx->buf_ptr < ctx->buf_end) { in get_next_nal_unit()
187 if (ctx->buf_end - ctx->buf_ptr >= 4 && AV_RB32(ctx->buf_ptr) == 0x00000001) in get_next_nal_unit()
189 else if (ctx->buf_end - ctx->buf_ptr >= 3 && AV_RB24(ctx->buf_ptr) == 0x000001) in get_next_nal_unit()
243 ctx.buf_end = pkt->data + pkt->size; in decrypt_video_frame()
247 while (ctx.buf_ptr < ctx.buf_end) { in decrypt_video_frame()
276 while (ctx->buf_ptr < ctx->buf_end - 1) { in get_next_adts_frame()
282 if (ctx->buf_ptr >= ctx->buf_end in get_next_adts_frame()
[all...]
H A Daviobuf.c118 s->buf_end = s->buffer + buffer_size; in ffio_init_context()
207 s->buf_end = s->buffer; in flush_buffer()
214 if (s->buf_ptr >= s->buf_end) in avio_w8()
221 int len = FFMIN(s->buf_end - s->buf_ptr, count); in ffio_fill()
225 if (s->buf_ptr >= s->buf_end) in ffio_fill()
240 int len = FFMIN(s->buf_end - s->buf_ptr, size); in avio_write()
244 if (s->buf_ptr >= s->buf_end) in avio_write()
276 buffer_size = s->buf_end - s->buffer; in avio_seek()
315 s->buf_ptr = s->buf_end - (s->pos - offset); in avio_seek()
322 s->buf_end in avio_seek()
[all...]
/third_party/libunwind/libunwind/src/
H A Dos-linux.h36 char *buf_end; member
91 mi->buf = mi->buf_end = cp + mi->buf_size; in maps_init()
216 ssize_t bytes_left = mi->buf_end - mi->buf; in maps_next()
233 memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); in maps_next()
235 mi->buf = mi->buf_end - mi->buf_size; in maps_next()
244 mi->buf and mi->buf_end are valid. */ in maps_next()
245 memmove (mi->buf_end - nread - bytes_left, mi->buf, in maps_next()
247 mi->buf = mi->buf_end - nread - bytes_left; in maps_next()
309 munmap (mi->buf_end - mi->buf_size, mi->buf_size); in maps_close()
310 mi->buf = mi->buf_end in maps_close()
[all...]
/third_party/musl/libc-test/src/functionalext/trace/
H A Dtrace_marker.c120 char buf_end[BUFFER_LEN] = {0}; in trace_marker_0010() local
128 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0010()
139 if (strstr(buffer, buf_begin) != NULL && strstr(buffer, buf_end) != NULL) { in trace_marker_0010()
257 char buf_end[BUFFER_LEN] = {0}; in trace_marker_0040() local
283 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0040()
294 if (strstr(buffer_fir, buf_begin) != NULL && strstr(buffer_fir, buf_end) != NULL) { in trace_marker_0040()
321 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0040()
332 if (strstr(buffer_sec, buf_begin) != NULL && strstr(buffer_sec, buf_end) != NULL) { in trace_marker_0040()
538 char buf_end[BUFFER_LEN] = {0}; in ThreadTraceMarkerFir() local
546 int buf_end_fd = snprintf(buf_end, BUFFER_LE in ThreadTraceMarkerFir()
582 char buf_end[BUFFER_LEN] = {0}; ThreadTraceMarkerSec() local
877 char buf_end[BUFFER_LEN] = {0}; trace_marker_0100() local
933 char buf_end[BUFFER_LEN] = {0}; trace_marker_0110() local
985 char buf_end[BUFFER_LEN] = {0}; trace_marker_0120() local
[all...]
/third_party/musl/src/dirent/
H A Dreaddir.c20 if (dir->buf_pos >= dir->buf_end) { in readdir()
26 dir->buf_end = len; in readdir()

Completed in 14 milliseconds

1234