Home
last modified time | relevance | path

Searched refs:buf_ptr (Results 1 - 25 of 72) sorted by relevance

123

/third_party/ffmpeg/libavcodec/
H A Dput_bits.h53 uint8_t *buf, *buf_ptr, *buf_end; member
72 s->buf_ptr = s->buf; in init_put_bits()
82 return (s->buf_ptr - s->buf) * 8 + BUF_BITS - s->bit_left; in put_bits_count()
92 return s->buf_ptr - s->buf; in put_bytes_output()
102 return s->buf_ptr - s->buf + ((BUF_BITS - s->bit_left + (round_up ? 7 : 0)) >> 3); in put_bytes_count()
118 s->buf_ptr = buffer + (s->buf_ptr - s->buf); 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 < in flush_put_bits()
[all...]
H A Dmjpegbdec.c49 const uint8_t *buf_end, *buf_ptr; in mjpegb_decode_frame() local
55 buf_ptr = buf; 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, "dh in mjpegb_decode_frame()
[all...]
H A Dmxpegdec.c79 const uint8_t *buf_ptr, int buf_size) in mxpeg_decode_app()
84 len = AV_RB16(buf_ptr); in mxpeg_decode_app()
91 const uint8_t *buf_ptr, int buf_size) in mxpeg_decode_mxm()
96 s->mb_width = AV_RL16(buf_ptr+4); in mxpeg_decode_mxm()
97 s->mb_height = AV_RL16(buf_ptr+6); in mxpeg_decode_mxm()
128 memcpy(s->mxm_bitmask, buf_ptr + 12, bitmask_size); in mxpeg_decode_mxm()
144 const uint8_t *buf_ptr, int buf_size) in mxpeg_decode_com()
149 len = AV_RB16(buf_ptr); in mxpeg_decode_com()
150 if (len > 14 && len <= buf_size && !strncmp(buf_ptr + 2, "MXM", 3)) { in mxpeg_decode_com()
151 ret = mxpeg_decode_mxm(s, buf_ptr in mxpeg_decode_com()
78 mxpeg_decode_app(MXpegDecodeContext *s, const uint8_t *buf_ptr, int buf_size) mxpeg_decode_app() argument
90 mxpeg_decode_mxm(MXpegDecodeContext *s, const uint8_t *buf_ptr, int buf_size) mxpeg_decode_mxm() argument
143 mxpeg_decode_com(MXpegDecodeContext *s, const uint8_t *buf_ptr, int buf_size) mxpeg_decode_com() argument
190 const uint8_t *buf_end, *buf_ptr; mxpeg_decode_frame() local
[all...]
H A Dlibuavs3d.c152 const uint8_t *buf_ptr = buf; in libuavs3d_decode_frame() local
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()
193 frm_dec->bs = (unsigned char *)buf_ptr; in libuavs3d_decode_frame()
198 buf_ptr += bs_len; in libuavs3d_decode_frame()
246 return buf_ptr - buf; in libuavs3d_decode_frame()
H A Ddvdec.c389 const uint8_t *buf_ptr; in dv_decode_video_segment() local
411 buf_ptr = &s->buf[work_chunk->buf_offset * 80]; in dv_decode_video_segment()
417 quant = buf_ptr[3] & 0x0f; in dv_decode_video_segment()
419 if ((buf_ptr[3] >> 4) == 0x0E) in dv_decode_video_segment()
422 sta = buf_ptr[3] >> 4; in dv_decode_video_segment()
423 } else if (sta != (buf_ptr[3] >> 4)) in dv_decode_video_segment()
426 buf_ptr += 4; in dv_decode_video_segment()
433 init_get_bits(&gb, buf_ptr, last_index); in dv_decode_video_segment()
459 buf_ptr += last_index >> 3; in dv_decode_video_segment()
/third_party/ffmpeg/libavformat/
H A Dhls_sample_encryption.c54 const uint8_t *buf_ptr; member
175 const uint8_t *nalu_start = ctx->buf_ptr; in get_next_nal_unit()
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()
184 ctx->buf_ptr += nalu->start_code_length; 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) in get_next_nal_unit()
[all...]
H A Drtpenc_h264_hevc.c39 if (s->buf_ptr != s->buf) { in flush_buffered()
45 ff_rtp_send_data(s1, s->buf + 3, s->buf_ptr - s->buf - 3, last); in flush_buffered()
47 ff_rtp_send_data(s1, s->buf + 4, s->buf_ptr - s->buf - 4, last); in flush_buffered()
49 ff_rtp_send_data(s1, s->buf, s->buf_ptr - s->buf, last); in flush_buffered()
51 s->buf_ptr = s->buf; in flush_buffered()
62 int buffered_size = s->buf_ptr - s->buf; in nal_send()
86 *s->buf_ptr++ = 24; in nal_send()
88 *s->buf_ptr++ = 48 << 1; in nal_send()
89 *s->buf_ptr++ = 1; in nal_send()
92 AV_WB16(s->buf_ptr, siz in nal_send()
[all...]
H A Drtpenc_vp8.c31 s->buf_ptr = s->buf; in ff_rtp_send_vp8()
36 *s->buf_ptr++ = 0x90; in ff_rtp_send_vp8()
37 *s->buf_ptr++ = 0x80; // Picture id present in ff_rtp_send_vp8()
38 *s->buf_ptr++ = ((s->frame_count & 0x7f00) >> 8) | 0x80; in ff_rtp_send_vp8()
39 *s->buf_ptr++ = s->frame_count++ & 0xff; in ff_rtp_send_vp8()
41 header_size = s->buf_ptr - s->buf; in ff_rtp_send_vp8()
47 memcpy(s->buf_ptr, buf, len); in ff_rtp_send_vp8()
H A Drtpenc.c166 s->buf_ptr = s->buf; in rtp_write_header()
170 s->buf_ptr = s->buf + 4; in rtp_write_header()
371 s->buf_ptr = s->buf; in rtp_send_samples()
375 memcpy(s->buf_ptr, buf1, len); in rtp_send_samples()
376 s->buf_ptr += len; in rtp_send_samples()
380 ff_rtp_send_data(s1, s->buf, s->buf_ptr - s->buf, 0); in rtp_send_samples()
381 n += (s->buf_ptr - s->buf); in rtp_send_samples()
395 len = (s->buf_ptr - s->buf); in rtp_send_mpegaudio()
398 ff_rtp_send_data(s1, s->buf, s->buf_ptr - s->buf, 0); in rtp_send_mpegaudio()
399 s->buf_ptr in rtp_send_mpegaudio()
[all...]
H A Daviobuf.c97 s->buf_ptr = buffer; in ffio_init_context()
196 s->buf_ptr_max = FFMAX(s->buf_ptr, s->buf_ptr_max); in flush_buffer()
205 s->buf_ptr = s->buf_ptr_max = s->buffer; in flush_buffer()
213 *s->buf_ptr++ = b; in avio_w8()
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()
222 memset(s->buf_ptr, b, len); in ffio_fill()
223 s->buf_ptr += len; in ffio_fill()
225 if (s->buf_ptr >= s->buf_end) in ffio_fill()
240 int len = FFMIN(s->buf_end - s->buf_ptr, siz in avio_write()
[all...]
H A Drtpenc_xiph.c76 uint8_t *ptr = s->buf_ptr + 2 + size; // what we're going to write in ff_rtp_send_xiph()
86 ff_rtp_send_data(s1, s->buf, s->buf_ptr - s->buf, 0); in ff_rtp_send_xiph()
100 q = s->buf_ptr; // jump ahead if needed in ff_rtp_send_xiph()
105 s->buf_ptr = q; in ff_rtp_send_xiph()
111 ff_rtp_send_data(s1, s->buf, s->buf_ptr - s->buf, 0); in ff_rtp_send_xiph()
116 s->buf_ptr = q; in ff_rtp_send_xiph()
119 q = s->buf_ptr; in ff_rtp_send_xiph()
H A Drtpenc_amr.c39 len = s->buf_ptr - s->buf; in ff_rtp_send_amr()
50 ff_rtp_send_data(s1, p, s->buf_ptr - p, 1); in ff_rtp_send_amr()
57 s->buf_ptr = s->buf + max_header_toc_size; in ff_rtp_send_amr()
68 memcpy(s->buf_ptr, buff, size); in ff_rtp_send_amr()
69 s->buf_ptr += size; in ff_rtp_send_amr()
H A Ddovi_isom.c31 int ff_isom_parse_dvcc_dvvc(AVFormatContext *s, AVStream *st, const uint8_t *buf_ptr, uint64_t size) in ff_isom_parse_dvcc_dvvc() argument
45 dovi->dv_version_major = *buf_ptr++; // 8 bits in ff_isom_parse_dvcc_dvvc()
46 dovi->dv_version_minor = *buf_ptr++; // 8 bits in ff_isom_parse_dvcc_dvvc()
48 buf = *buf_ptr++ << 8; in ff_isom_parse_dvcc_dvvc()
49 buf |= *buf_ptr++; in ff_isom_parse_dvcc_dvvc()
59 dovi->dv_bl_signal_compatibility_id = ((*buf_ptr++) >> 4) & 0x0f; // 4 bits in ff_isom_parse_dvcc_dvvc()
H A Drtpenc_aac.c42 len = (s->buf_ptr - s->buf); in ff_rtp_send_aac()
57 ff_rtp_send_data(s1, p, s->buf_ptr - p, 1); in ff_rtp_send_aac()
62 s->buf_ptr = s->buf + max_au_headers_size; in ff_rtp_send_aac()
69 memcpy(s->buf_ptr, buff, size); in ff_rtp_send_aac()
70 s->buf_ptr += size; in ff_rtp_send_aac()
H A Drtpenc_vp9.c32 rtp_ctx->buf_ptr = rtp_ctx->buf; in ff_rtp_send_vp9()
35 *rtp_ctx->buf_ptr++ = 0x08; in ff_rtp_send_vp9()
45 memcpy(rtp_ctx->buf_ptr, buf, len); in ff_rtp_send_vp9()
H A Dmpegenc.c643 uint8_t *buf_ptr; in flush_packet() local
658 buf_ptr = buffer; in flush_packet()
662 size = put_pack_header(ctx, buf_ptr, scr); in flush_packet()
663 buf_ptr += size; in flush_packet()
672 size = put_system_header(ctx, buf_ptr, id); in flush_packet()
673 buf_ptr += size; in flush_packet()
687 size = put_system_header(ctx, buf_ptr, 0); in flush_packet()
688 buf_ptr += size; in flush_packet()
689 size = buf_ptr - buffer; in flush_packet()
703 buf_ptr in flush_packet()
[all...]
/third_party/pcre2/pcre2/src/sljit/
H A DsljitNativeX86_64.c68 sljit_u8 *buf_ptr; in emit_x86_instruction() local
199 buf_ptr = inst + size; in emit_x86_instruction()
207 *buf_ptr = 0; in emit_x86_instruction()
209 *buf_ptr = U8(reg_lmap[a] << 3); in emit_x86_instruction()
211 *buf_ptr = U8(freg_lmap[a] << 3); in emit_x86_instruction()
221 *buf_ptr = 0; in emit_x86_instruction()
225 *buf_ptr = U8(*buf_ptr | MOD_REG | (!(flags & EX86_SSE2_OP2) ? reg_lmap[b] : freg_lmap[b])); in emit_x86_instruction()
226 buf_ptr++; in emit_x86_instruction()
233 *buf_ptr | in emit_x86_instruction()
[all...]
H A DsljitNativeX86_32.c53 sljit_u8 *buf_ptr; in emit_x86_instruction() local
144 buf_ptr = inst + size; in emit_x86_instruction()
152 *buf_ptr = 0; in emit_x86_instruction()
154 *buf_ptr = U8(reg_map[a] << 3); in emit_x86_instruction()
156 *buf_ptr = U8(a << 3); in emit_x86_instruction()
166 *buf_ptr = 0; in emit_x86_instruction()
170 *buf_ptr = U8(*buf_ptr | MOD_REG | (!(flags & EX86_SSE2_OP2) ? reg_map[b] : b)); in emit_x86_instruction()
171 buf_ptr++; in emit_x86_instruction()
178 *buf_ptr | in emit_x86_instruction()
[all...]
H A DsljitNativePPC_common.c409 sljit_ins *buf_ptr; in sljit_generate_code() local
447 buf_ptr = (sljit_ins*)buf->memory; in sljit_generate_code()
448 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
450 *code_ptr = *buf_ptr++; in sljit_generate_code()
522 } while (buf_ptr < buf_end); in sljit_generate_code()
548 buf_ptr = (sljit_ins *)jump->addr; in sljit_generate_code()
553 addr -= (sljit_uw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset); in sljit_generate_code()
555 *buf_ptr = BCx | ((sljit_ins)addr & 0xfffc) | ((*buf_ptr) & 0x03ff0001); in sljit_generate_code()
559 *buf_ptr in sljit_generate_code()
[all...]
H A DsljitNativeARM_32.c343 static sljit_s32 resolve_const_pool_index(struct sljit_compiler *compiler, struct future_patch **first_patch, sljit_uw cpool_current_index, sljit_uw *cpool_start_address, sljit_uw *buf_ptr) in resolve_const_pool_index() argument
391 cpool_start_address[value] = *buf_ptr; in resolve_const_pool_index()
670 sljit_uw *buf_ptr; in sljit_generate_code() local
732 buf_ptr = (sljit_uw*)buf->memory; in sljit_generate_code()
733 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
739 buf_ptr++; in sljit_generate_code()
743 if (SLJIT_UNLIKELY(resolve_const_pool_index(compiler, &first_patch, cpool_current_index, cpool_start_address, buf_ptr))) { in sljit_generate_code()
748 buf_ptr++; in sljit_generate_code()
763 else if ((*buf_ptr & 0xff000000) != PUSH_POOL) { in sljit_generate_code()
765 *code_ptr = *buf_ptr in sljit_generate_code()
[all...]
/third_party/alsa-utils/axfer/
H A Dframe-cache.c26 cache->buf_ptr = buf + size; in align_frames_in_i()
33 char **buf_ptrs = cache->buf_ptr; in align_frames_in_n()
74 cache->buf_ptr = buf; in frame_cache_init()
81 cache->buf_ptr = buf_ptrs; in frame_cache_init()
109 free(cache->buf_ptr); in frame_cache_destroy()
/third_party/ltp/testcases/kernel/controllers/io/
H A Dio_control01.c53 char *line, *buf_ptr; in run() local
60 line = strtok_r(buf, "\n", &buf_ptr); in run()
72 line = strtok_r(NULL, "\n", &buf_ptr); in run()
98 line = strtok_r(buf, "\n", &buf_ptr); in run()
107 line = strtok_r(NULL, "\n", &buf_ptr); in run()
/third_party/node/deps/uvwasi/src/
H A Dwasi_serdes.c186 uint32_t buf_ptr; in ALL_TYPES() local
188 buf_ptr = uvwasi_serdes_read_uint32_t(ptr, offset); in ALL_TYPES()
191 if (!uvwasi_serdes_check_bounds(buf_ptr, end, value->buf_len)) in ALL_TYPES()
194 value->buf = ((uint8_t*) ptr + buf_ptr); in ALL_TYPES()
203 uint32_t buf_ptr; in uvwasi_serdes_read_iovec_t() local
205 buf_ptr = uvwasi_serdes_read_uint32_t(ptr, offset); in uvwasi_serdes_read_iovec_t()
208 if (!uvwasi_serdes_check_bounds(buf_ptr, end, value->buf_len)) in uvwasi_serdes_read_iovec_t()
211 value->buf = ((uint8_t*) ptr + buf_ptr); in uvwasi_serdes_read_iovec_t()
/third_party/rust/crates/nix/src/
H A Dlib.rs273 let buf_ptr = buf.as_mut_ptr() as *mut u8; in with_nix_path()
276 ptr::copy_nonoverlapping(self.as_ptr(), buf_ptr, self.len()); in with_nix_path()
277 buf_ptr.add(self.len()).write(0); in with_nix_path()
281 slice::from_raw_parts(buf_ptr, self.len() + 1) in with_nix_path()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_shader_llvm_gs.c101 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in ngg_get_emulated_counters_buf() local
103 return ac_build_load_to_sgpr(&ctx->ac, buf_ptr, in ngg_get_emulated_counters_buf()
265 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_preload_esgs_ring() local
267 ctx->esgs_ring = ac_build_load_to_sgpr(&ctx->ac, buf_ptr, offset); in si_preload_esgs_ring()
310 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_preload_gs_rings() local
311 LLVMValueRef base_ring = ac_build_load_to_sgpr(&ctx->ac, buf_ptr, offset); in si_preload_gs_rings()
437 LLVMValueRef buf_ptr = ac_get_arg(&ctx.ac, ctx.internal_bindings); in si_generate_gs_copy_shader() local
439 ac_build_load_to_sgpr(&ctx.ac, buf_ptr, LLVMConstInt(ctx.ac.i32, SI_RING_GSVS, 0)); in si_generate_gs_copy_shader()

Completed in 17 milliseconds

123