/third_party/ffmpeg/libavcodec/ |
H A D | put_bits.h | 53 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 D | mjpegbdec.c | 49 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 D | mxpegdec.c | 79 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 D | libuavs3d.c | 152 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()
|
/third_party/ffmpeg/libavformat/ |
H A D | hls_sample_encryption.c | 54 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 D | rtpenc_h264_hevc.c | 39 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 D | rtpenc_vp8.c | 31 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 D | rtpenc.c | 166 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 D | aviobuf.c | 97 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 D | rtpenc_xiph.c | 76 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 D | rtpenc_amr.c | 39 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 D | rtpenc_aac.c | 42 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 D | dovi_isom.c | 31 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 D | rtpenc_vp9.c | 32 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()
|
/kernel/linux/linux-6.6/security/integrity/ima/ |
H A D | ima_template_lib.c | 49 u8 *buf, *buf_ptr; in ima_write_template_field_data() local 69 for (buf_ptr = buf; buf_ptr - buf < datalen; buf_ptr++) in ima_write_template_field_data() 70 if (*buf_ptr == ' ') in ima_write_template_field_data() 71 *buf_ptr = '_'; in ima_write_template_field_data() 84 u8 *buf_ptr = field_data->data; in ima_show_template_data_ascii() local 90 buf_ptr = strrchr(field_data->data, ':'); in ima_show_template_data_ascii() 91 if (buf_ptr != field_data->data) in ima_show_template_data_ascii() 95 buf_ptr in ima_show_template_data_ascii() [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | fhci-tds.c | 67 __be32 buf_ptr; member 87 out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER); in fhci_push_dummy_bd() 213 out_be32(&td->buf_ptr, 0); in fhci_create_ep() 296 buf = in_be32(&td->buf_ptr); in fhci_td_transaction_confirm() 309 out_be32(&td->buf_ptr, 0); in fhci_td_transaction_confirm() 405 out_be32(&td->buf_ptr, virt_to_phys(pkt->data)); in fhci_host_transaction() 477 in_be32(&td->buf_ptr); in fhci_flush_bds() 484 else if (in_be32(&td->buf_ptr) == DUMMY_BD_BUFFER) in fhci_flush_bds() 485 out_be32(&td->buf_ptr, DUMMY2_BD_BUFFER); in fhci_flush_bds() 499 out_be32(&td->buf_ptr, in fhci_flush_bds() 526 u32 buf_ptr; fhci_flush_actual_frame() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | fhci-tds.c | 67 __be32 buf_ptr; member 87 out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER); in fhci_push_dummy_bd() 213 out_be32(&td->buf_ptr, 0); in fhci_create_ep() 296 buf = in_be32(&td->buf_ptr); in fhci_td_transaction_confirm() 309 out_be32(&td->buf_ptr, 0); in fhci_td_transaction_confirm() 405 out_be32(&td->buf_ptr, virt_to_phys(pkt->data)); in fhci_host_transaction() 477 in_be32(&td->buf_ptr); in fhci_flush_bds() 484 else if (in_be32(&td->buf_ptr) == DUMMY_BD_BUFFER) in fhci_flush_bds() 485 out_be32(&td->buf_ptr, DUMMY2_BD_BUFFER); in fhci_flush_bds() 499 out_be32(&td->buf_ptr, in fhci_flush_bds() 526 u32 buf_ptr; fhci_flush_actual_frame() local [all...] |
/kernel/linux/linux-5.10/security/integrity/ima/ |
H A D | ima_template_lib.c | 33 u8 *buf, *buf_ptr; in ima_write_template_field_data() local 53 for (buf_ptr = buf; buf_ptr - buf < datalen; buf_ptr++) in ima_write_template_field_data() 54 if (*buf_ptr == ' ') in ima_write_template_field_data() 55 *buf_ptr = '_'; in ima_write_template_field_data() 68 u8 *buf_ptr = field_data->data; in ima_show_template_data_ascii() local 73 buf_ptr = strnchr(field_data->data, buflen, ':'); in ima_show_template_data_ascii() 74 if (buf_ptr != field_data->data) in ima_show_template_data_ascii() 78 buf_ptr in ima_show_template_data_ascii() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.h | 16 char *buf_ptr, unsigned int buf_size); 22 char *buf_ptr,unsigned int buf_size); 26 const char *buf_ptr,unsigned int buf_size);
|
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.h | 16 char *buf_ptr, unsigned int buf_size); 22 char *buf_ptr,unsigned int buf_size); 26 const char *buf_ptr,unsigned int buf_size);
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitNativeX86_64.c | 68 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 D | sljitNativeX86_32.c | 53 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...] |
/third_party/alsa-utils/axfer/ |
H A D | frame-cache.c | 26 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 D | io_control01.c | 53 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 D | wasi_serdes.c | 186 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()
|