Home
last modified time | relevance | path

Searched refs:buf_pos (Results 1 – 22 of 22) sorted by relevance

/third_party/ffmpeg/libavformat/
Drtpdec_mpeg4.c65 int buf_pos, buf_size; member
186 if (data->buf_size - data->buf_pos < data->au_headers[data->cur_au_index].size) { in aac_parse_packet()
194 memcpy(pkt->data, &data->buf[data->buf_pos], data->au_headers[data->cur_au_index].size); in aac_parse_packet()
195 data->buf_pos += data->au_headers[data->cur_au_index].size; in aac_parse_packet()
200 data->buf_pos = 0; in aac_parse_packet()
217 if (!data->buf_pos) { in aac_parse_packet()
229 data->buf_pos + len > MAX_AAC_HBR_FRAME_SIZE) { in aac_parse_packet()
230 data->buf_pos = 0; in aac_parse_packet()
236 memcpy(&data->buf[data->buf_pos], buf, len); in aac_parse_packet()
237 data->buf_pos += len; in aac_parse_packet()
[all …]
Dsubtitles.c31 r->buf_pos = r->buf_len = 0; in ff_text_init_avio()
37 r->buf_pos += 2; in ff_text_init_avio()
40 r->buf_pos += 2; in ff_text_init_avio()
45 r->buf_pos += 3; in ff_text_init_avio()
62 return avio_tell(r->pb) - r->buf_len + r->buf_pos; in ff_text_pos()
69 if (r->buf_pos < r->buf_len) in ff_text_r8()
70 return r->buf[r->buf_pos++]; in ff_text_r8()
80 r->buf_pos = 0; in ff_text_r8()
83 return r->buf[r->buf_pos++]; // buf_len is at least 1 in ff_text_r8()
94 return r->buf_pos >= r->buf_len && avio_feof(r->pb); in ff_text_eof()
[all …]
Dsubtitles.h44 int buf_pos, buf_len; member
/third_party/musl/src/dirent/
Dreaddir.c14 if (dir->buf_pos >= dir->buf_end) { in readdir()
21 dir->buf_pos = 0; in readdir()
23 de = (void *)(dir->buf + dir->buf_pos); in readdir()
24 dir->buf_pos += de->d_reclen; in readdir()
D__dirent.h5 int buf_pos; member
Drewinddir.c10 dir->buf_pos = dir->buf_end = 0; in rewinddir()
Dseekdir.c10 dir->buf_pos = dir->buf_end = 0; in seekdir()
/third_party/ffmpeg/libavcodec/
Dflashsv2enc.c285 int buf_pos, len; in write_header() local
298 buf_pos = 4; in write_header()
300 buf[buf_pos++] = s->flags; in write_header()
303 len = write_palette(s, buf + buf_pos, buf_size - buf_pos); in write_header()
306 buf_pos += len; in write_header()
309 return buf_pos; in write_header()
314 int buf_pos = 0; in write_block() local
326 buf[buf_pos++] = block_size >> 8; in write_block()
327 buf[buf_pos++] = block_size; in write_block()
330 return buf_pos; in write_block()
[all …]
Ddvbsub_parser.c59 int i, len, buf_pos = 0; in dvbsub_parse() local
96 buf_pos = 2; in dvbsub_parse()
116 if (buf_size - buf_pos + pc->packet_index > PARSE_BUF_SIZE) in dvbsub_parse()
123 memcpy(pc->packet_buf + pc->packet_index, buf + buf_pos, buf_size - buf_pos); in dvbsub_parse()
124 pc->packet_index += buf_size - buf_pos; in dvbsub_parse()
Dflashsvenc.c143 int buf_pos, res; in encode_bitstream() local
153 buf_pos = 4; in encode_bitstream()
171 uint8_t *ptr = buf + buf_pos; in encode_bitstream()
191 buf_pos += zsize + 2; in encode_bitstream()
192 ff_dlog(s->avctx, "buf_pos = %d\n", buf_pos); in encode_bitstream()
196 buf_pos += 2; in encode_bitstream()
206 return buf_pos; in encode_bitstream()
/third_party/libxkbcommon/src/
Dscanner-utils.h51 size_t buf_pos; member
156 if (s->buf_pos + 1 >= sizeof(s->buf)) in buf_append()
158 s->buf[s->buf_pos++] = ch; in buf_append()
166 ret = snprintf(s->buf + s->buf_pos, sizeof(s->buf) - s->buf_pos, "%s", str); in buf_appends()
167 if (ret < 0 || (size_t) ret >= sizeof(s->buf) - s->buf_pos) in buf_appends()
169 s->buf_pos += ret; in buf_appends()
/third_party/selinux/libsepol/cil/src/
Dcil.c1428 int buf_pos = 0; in cil_userprefixes_to_string() local
1457 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1459 str_len -= buf_pos; in cil_userprefixes_to_string()
1460 str_tmp += buf_pos; in cil_userprefixes_to_string()
1597 int buf_pos = 0; in __cil_level_to_string() local
1604 buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn); in __cil_level_to_string()
1605 str_tmp += buf_pos; in __cil_level_to_string()
1608 buf_pos = sprintf(str_tmp, ":"); in __cil_level_to_string()
1609 str_tmp += buf_pos; in __cil_level_to_string()
1622 buf_pos = sprintf(str_tmp, "%s,%s", str1, cat->datum.fqn); in __cil_level_to_string()
[all …]
/third_party/libxkbcommon/src/xkbcomp/
Dscanner.c86 s->buf_pos = 0; in _xkbcommon_lex()
129 yylval->atom = xkb_atom_intern(s->ctx, s->buf, s->buf_pos - 1); in _xkbcommon_lex()
153 s->buf_pos = 0; in _xkbcommon_lex()
162 tok = keyword_to_token(s->buf, s->buf_pos - 1); in _xkbcommon_lex()
Drules.c371 s.buf_pos = 0; in matcher_include()
/third_party/libxkbcommon/src/compose/
Dparser.c145 s->buf_pos = 0; in lex()
160 val->string.len = s->buf_pos; in lex()
208 if (!is_valid_utf8(s->buf, s->buf_pos - 1)) { in lex()
213 val->string.len = s->buf_pos; in lex()
219 s->buf_pos = 0; in lex()
231 val->string.len = s->buf_pos; in lex()
252 s->buf_pos = 0; in lex_include_string()
312 val_out->string.len = s->buf_pos; in lex_include_string()
/third_party/musl/porting/liteos_a/user/src/dirent/
D__dirent.h5 int buf_pos; member
/third_party/musl/porting/liteos_a/kernel/src/dirent/
D__dirent.h5 int buf_pos; member
/third_party/harfbuzz/src/
Dhb-buffer.cc1941 const hb_glyph_position_t *buf_pos = buffer->pos; in hb_buffer_diff() local
1945 if ((unsigned int) abs (buf_pos->x_advance - ref_pos->x_advance) > position_fuzz || in hb_buffer_diff()
1946 (unsigned int) abs (buf_pos->y_advance - ref_pos->y_advance) > position_fuzz || in hb_buffer_diff()
1947 (unsigned int) abs (buf_pos->x_offset - ref_pos->x_offset) > position_fuzz || in hb_buffer_diff()
1948 (unsigned int) abs (buf_pos->y_offset - ref_pos->y_offset) > position_fuzz) in hb_buffer_diff()
1953 buf_pos++; in hb_buffer_diff()
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-buffer.cc1971 const hb_glyph_position_t *buf_pos = buffer->pos; in hb_buffer_diff() local
1975 if ((unsigned int) abs (buf_pos->x_advance - ref_pos->x_advance) > position_fuzz || in hb_buffer_diff()
1976 (unsigned int) abs (buf_pos->y_advance - ref_pos->y_advance) > position_fuzz || in hb_buffer_diff()
1977 (unsigned int) abs (buf_pos->x_offset - ref_pos->x_offset) > position_fuzz || in hb_buffer_diff()
1978 (unsigned int) abs (buf_pos->y_offset - ref_pos->y_offset) > position_fuzz) in hb_buffer_diff()
1983 buf_pos++; in hb_buffer_diff()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-buffer.cc2000 const hb_glyph_position_t *buf_pos = buffer->pos; in hb_buffer_diff() local
2004 if ((unsigned int) abs (buf_pos->x_advance - ref_pos->x_advance) > position_fuzz || in hb_buffer_diff()
2005 (unsigned int) abs (buf_pos->y_advance - ref_pos->y_advance) > position_fuzz || in hb_buffer_diff()
2006 (unsigned int) abs (buf_pos->x_offset - ref_pos->x_offset) > position_fuzz || in hb_buffer_diff()
2007 (unsigned int) abs (buf_pos->y_offset - ref_pos->y_offset) > position_fuzz) in hb_buffer_diff()
2012 buf_pos++; in hb_buffer_diff()
/third_party/uboot/u-boot-2020.01/drivers/mtd/nand/raw/
Datmel_nand.c488 uint8_t *buf_pos; in pmecc_correction() local
505 buf_pos = buf + i * host->pmecc_sector_size; in pmecc_correction()
517 pmecc_correct_data(mtd, buf_pos, ecc, i, in pmecc_correction()
/third_party/quickjs/
Dlibbf.c3621 int digits_per_limb, buf_pos, radix_bits, first_buf_pos; in output_digits() local
3661 buf_pos = digits_per_limb; in output_digits()
3664 if (buf_pos == digits_per_limb) { in output_digits()
3673 buf_pos = first_buf_pos; in output_digits()
3683 l = bf_min(digits_per_limb - buf_pos, l - i); in output_digits()
3684 dbuf_put(s, (uint8_t *)(buf + buf_pos), l); in output_digits()
3685 buf_pos += l; in output_digits()