/third_party/flutter/skia/third_party/externals/sdl/src/audio/ |
D | sdlgenaudiocvt.pl | 191 my ($fsigned, $ffloat, $fsize, $fendian, $fctype) = splittype($from); 194 $diffs++ if ($fsize != $tsize); 208 my $srctype = (($ffloat) ? 'float' : "Uint${fsize}"); 224 if ($fsize < $tsize) { 225 my $mult = $tsize / $fsize; 241 my $code = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, '*src'); 252 my $divby = getIntToFloatDivBy($fsize); 261 my $signflipval = getSignFlipVal($fsize); 265 my $shiftval = abs($fsize - $tsize); 266 if ($fsize < $tsize) { [all …]
|
/third_party/ffmpeg/libavformat/ |
D | bintext.c | 48 uint64_t fsize; /**< file size less metadata buffer */ member 77 static void calculate_height(AVCodecParameters *par, uint64_t fsize) in calculate_height() argument 79 par->height = (fsize / ((par->width>>3)*2)) << 4; in calculate_height() 88 static int next_tag_read(AVFormatContext *avctx, uint64_t *fsize) in next_tag_read() argument 103 *fsize -= 256; in next_tag_read() 122 static void predict_width(AVCodecParameters *par, uint64_t fsize, int got_width) in predict_width() argument 126 par->width = fsize > 4000 ? (160<<3) : (80<<3); in predict_width() 193 bin->fsize = avio_size(pb); in bintext_read_header() 194 if (ff_sauce_read(s, &bin->fsize, &got_width, 0) < 0) in bintext_read_header() 195 next_tag_read(s, &bin->fsize); in bintext_read_header() [all …]
|
D | tty.c | 47 uint64_t fsize; /**< file size less metadata buffer */ member 98 s->fsize = start_pos; in efi_read() 125 s->fsize = avio_size(avctx->pb); in read_header() 126 st->duration = (s->fsize + s->chars_per_frame - 1) / s->chars_per_frame; in read_header() 128 if (ff_sauce_read(avctx, &s->fsize, 0, 0) < 0) in read_header() 129 efi_read(avctx, s->fsize - 51); in read_header() 147 if (s->fsize) { in read_packet() 150 if (p == s->fsize) in read_packet() 152 if (p + s->chars_per_frame > s->fsize) in read_packet() 153 n = s->fsize - p; in read_packet()
|
D | loasdec.c | 33 int fsize, frames; in loas_probe() local 47 fsize = (header & 0x1FFF) + 3; in loas_probe() 48 if (fsize < 7) in loas_probe() 50 fsize = FFMIN(fsize, end - buf2); in loas_probe() 51 buf2 += fsize; in loas_probe()
|
D | aacdec.c | 37 int fsize, frames; in adts_aac_probe() local 60 fsize = (AV_RB32(buf2 + 3) >> 13) & 0x1FFF; in adts_aac_probe() 61 if (fsize < 7) in adts_aac_probe() 63 fsize = FFMIN(fsize, end - buf2); in adts_aac_probe() 64 buf2 += fsize; in adts_aac_probe() 320 int ret, fsize; in adts_aac_read_packet() local 351 fsize = (AV_RB32(pkt->data + 3) >> 13) & 0x1FFF; in adts_aac_read_packet() 352 if (fsize < ADTS_HEADER_SIZE) { in adts_aac_read_packet() 356 ret = av_append_packet(s->pb, pkt, fsize - pkt->size); in adts_aac_read_packet()
|
D | dxa.c | 99 uint32_t size, fsize; in dxa_read_header() local 104 fsize = avio_rl32(pb); in dxa_read_header() 109 ret = ff_get_wav_header(s, pb, ast->codecpar, fsize, 0); in dxa_read_header() 117 fsize = avio_rl32(pb); in dxa_read_header() 119 avio_skip(pb, fsize); in dxa_read_header() 121 c->bpc = (fsize + c->frames - 1) / c->frames; in dxa_read_header() 124 c->bytes_left = fsize; in dxa_read_header()
|
D | sauce.c | 32 int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int get_height) in ff_sauce_read() argument 83 *fsize -= 128; in ff_sauce_read() 90 *fsize -= 64*nb_comments + 5; in ff_sauce_read()
|
D | thp.c | 67 int64_t fsize= avio_size(pb); in thp_read_header() local 83 if(fsize>0 && (!pb->maxsize || fsize < pb->maxsize)) in thp_read_header() 84 pb->maxsize= fsize; in thp_read_header()
|
/third_party/ltp/testcases/kernel/mem/mtest06/ |
D | mmap2.c | 157 unsigned long fsize = 128; in main() local 198 fsize = atoi(optarg); in main() 199 if (fsize == 0) in main() 201 "fsize %lu MB\n", fsize = 128); in main() 218 "\tSize of temp file in MB: %lu\n", exec_time, fsize); in main() 222 if (fsize > avail_memory_mb) { in main() 245 fd = mkfile(fsize); in main() 255 memptr = mmap(0, (fsize * MB), PROT_READ | PROT_WRITE, in main() 264 memset(memptr, 'A', ((fsize * MB) / sizeof(char))); in main() 266 if (msync(memptr, ((fsize * MB) / sizeof(char)), in main() [all …]
|
D | mmap3.c | 70 int fsize; in map_write_unmap() local 82 if ((fd = mkfile(&fsize)) == -1) in map_write_unmap() 85 addr = SAFE_MMAP(NULL, fsize, PROT_WRITE | PROT_READ, in map_write_unmap() 88 memset(addr, 'A', fsize); in map_write_unmap() 91 tid, addr, fsize/1024, i); in map_write_unmap() 95 SAFE_MUNMAP(addr, fsize); in map_write_unmap()
|
D | shmat1.c | 94 int fsize; /* size of the file to be created. */ variable 237 fsize = (1 + (int)(1000.0 * rand() / (RAND_MAX + 1.0))) * 4096; in shmat_shmdt() 239 if ((shmid = shmget(shmkey, fsize, IPC_CREAT | 0666)) == -1) { in shmat_shmdt() 245 STR_SHMAT, pthread_self(), fsize); in shmat_shmdt()
|
/third_party/ltp/testcases/misc/math/float/ |
D | thread_code.c | 45 size_t fsize; in read_file() local 66 fsize = bufstat.st_size; in read_file() 67 if (!fsize) { in read_file() 72 while ((buffer = malloc(fsize)) == NULL) { in read_file() 95 while (read(fd, buffer, fsize) != fsize) { in read_file() 112 return fsize; in read_file() 280 size_t fsize, fsize2, fsize3; in thread_code() local 284 fsize = read_file(th_data->th_func.din_fname, (void **)&din); in thread_code() 285 if (fsize == (size_t) 0) { in thread_code() 331 if (fsize2 != fsize) in thread_code() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | dpx_parser.c | 35 uint32_t fsize; member 80 d->fsize = d->is_be ? d->pc.state : av_bswap32(d->pc.state); in dpx_parse() 81 if (d->fsize <= 1664) { in dpx_parse() 85 if (d->fsize > buf_size - i + 19) in dpx_parse() 86 d->remaining_size = d->fsize - buf_size + i - 19; in dpx_parse() 88 i += d->fsize - 19; in dpx_parse()
|
D | webp_parser.c | 33 uint32_t fsize; member 55 ctx->fsize = av_bswap32(state); in webp_parse() 56 if (ctx->fsize > 15 && ctx->fsize <= UINT32_MAX - 10) { in webp_parse() 58 ctx->fsize += 8; in webp_parse() 67 ctx->remaining_size = ctx->fsize + i - 15; in webp_parse()
|
D | bmp.c | 37 unsigned int fsize, hsize; in bmp_decode_frame() local 61 fsize = bytestream_get_le32(&buf); in bmp_decode_frame() 62 if (buf_size < fsize) { in bmp_decode_frame() 64 buf_size, fsize); in bmp_decode_frame() 65 fsize = buf_size; in bmp_decode_frame() 79 if (fsize == 14 || fsize == ihsize + 14) in bmp_decode_frame() 80 fsize = buf_size - 2; in bmp_decode_frame() 82 if (fsize <= hsize) { in bmp_decode_frame() 85 fsize, hsize); in bmp_decode_frame()
|
D | bmp_parser.c | 34 uint32_t fsize; member 56 bpc->fsize = av_bswap32(state >> 16); in bmp_parse() 57 if (bpc->fsize > 17) in bmp_parse() 68 bpc->remaining_size = bpc->fsize + i - 17; in bmp_parse()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | growfiles.c | 1956 off_t fsize; /* current size of file */ in growfile() local 1976 fsize = stbuf.st_size; in growfile() 2021 Woffset = fsize; in growfile() 2105 random_range(min_lseek, fsize, 1, NULL); in growfile() 2109 random_range(min_lseek, fsize + grow_incr, in growfile() 2122 if (fsize <= min_lseek + grow_incr) in growfile() 2127 fsize - grow_incr, 1, in growfile() 2317 size_grew = (Woffset + Grow_incr) - fsize; in growfile() 2493 int fsize; in check_write() local 2526 if ((fsize = file_size(fd)) == -1) { in check_write() [all …]
|
/third_party/iowow/src/fs/ |
D | iwexfile.c | 47 uint64_t fsize; /**< Current file size */ member 139 if (s->off >= impl->fsize) { in _exfile_initmmap_slot_lw() 142 nlen = MIN(s->maxlen, impl->fsize - s->off); in _exfile_initmmap_slot_lw() 198 assert(!(impl->fsize & (impl->psize - 1))); in _exfile_initmmap_lw() 215 uint64_t old_size = impl->fsize; in _exfile_truncate_lw() 235 impl->fsize = (uint64_t) size; in _exfile_truncate_lw() 249 impl->fsize = (uint64_t) size; in _exfile_truncate_lw() 259 impl->fsize = old_size; in _exfile_truncate_lw() 267 if (impl->fsize >= sz) { in _exfile_ensure_size_lw() 270 off_t nsz = impl->rspolicy(sz, impl->fsize, f, &impl->rspolicy_ctx); in _exfile_ensure_size_lw() [all …]
|
/third_party/lwip/src/apps/http/makefsdata/ |
D | makefsdata.c | 535 size_t fsize = 0; in get_file_data() local 551 fsize = (size_t)rs; in get_file_data() 553 buf = (u8_t *)malloc(fsize); in get_file_data() 555 r = fread(buf, 1, fsize, inFile); in get_file_data() 556 LWIP_ASSERT("r == fsize", r == fsize); in get_file_data() 557 *file_size = fsize; in get_file_data() 560 overallDataBytes += fsize; in get_file_data() 563 if (fsize < OUT_BUF_SIZE) { in get_file_data() 566 size_t in_bytes = fsize; in get_file_data() 587 if (out_bytes < fsize) { in get_file_data() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/audioparsers/ |
D | gstamrparse.c | 264 gint fsize = 0, mode, dsize; in gst_amr_parse_handle_frame() local 295 fsize = amrparse->block_size[mode] + 1; /* +1 for the header byte */ in gst_amr_parse_handle_frame() 304 if (fsize) { in gst_amr_parse_handle_frame() 309 } else if (dsize > fsize) { in gst_amr_parse_handle_frame() 311 if ((map.data[fsize] & 0x83) == 0) in gst_amr_parse_handle_frame() 323 if (found && fsize <= map.size) { in gst_amr_parse_handle_frame() 324 ret = gst_base_parse_finish_frame (parse, frame, fsize); in gst_amr_parse_handle_frame()
|
/third_party/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead02.c | 152 const char *fname, size_t fsize, in read_testfile() argument 166 TEST(tc->readahead(fd, offset, fsize - offset)); in read_testfile() 174 } while ((size_t)offset < fsize); in read_testfile() 189 p = SAFE_MMAP(NULL, fsize, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); in read_testfile() 193 for (i = 0; i < fsize; i += pagesize) in read_testfile() 202 SAFE_MUNMAP(p, fsize); in read_testfile()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
D | dio_read.c | 37 static void do_buffered_writes(int fd, char *bufptr, long long fsize, long long wsize, int pattern) in do_buffered_writes() argument 46 for (offset = 0; offset + wsize <= fsize; offset += wsize) { in do_buffered_writes() 57 static int do_direct_reads(char *filename, char *bufptr, long long fsize, long long rsize) in do_direct_reads() argument 68 for (offset = 0; offset + rsize < fsize; offset += rsize) { in do_direct_reads()
|
/third_party/openssl/crypto/ |
D | getenv.c | 28 int rsize, fsize; in ossl_safe_getenv() local 51 fsize = MultiByteToWideChar(curacp, dwFlags, name, -1, namew, rsize); in ossl_safe_getenv() 53 if (fsize > 0) in ossl_safe_getenv()
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
D | spdy_fileserver.c | 166 char *fsize; in standard_request_handler() local 204 if(-1 == asprintf(&fsize, "%zd", filesize) in standard_request_handler() 205 || SPDY_YES != SPDY_name_value_add(resp_headers,SPDY_HTTP_HEADER_CONTENT_LENGTH,fsize)) in standard_request_handler() 210 free(fsize); in standard_request_handler()
|
/third_party/ffmpeg/tests/ |
D | audiomatch.c | 29 static int64_t fsize(FILE *f) { in fsize() function 79 datlen = fsize(f[0]) - ftell(f[0]); in main() 80 siglen = fsize(f[1]) - ftell(f[1]); in main()
|