Home
last modified time | relevance | path

Searched refs:data_sz (Results 1 – 16 of 16) sorted by relevance

/third_party/flutter/skia/third_party/externals/imgui/misc/fonts/
Dbinary_to_compressed_c.cpp70 int data_sz; in binary_to_compressed_c() local
71 …if (fseek(f, 0, SEEK_END) || (data_sz = (int)ftell(f)) == -1 || fseek(f, 0, SEEK_SET)) { fclose(f)… in binary_to_compressed_c()
72 char* data = new char[data_sz+4]; in binary_to_compressed_c()
73 if (fread(data, 1, data_sz, f) != (size_t)data_sz) { fclose(f); delete[] data; return false; } in binary_to_compressed_c()
74 memset((void*)(((char*)data) + data_sz), 0, 4); in binary_to_compressed_c()
78 int maxlen = data_sz + 512 + (data_sz >> 2) + sizeof(int); // total guess in binary_to_compressed_c()
80 …d_sz = use_compression ? stb_compress((stb_uchar*)compressed, (stb_uchar*)data, data_sz) : data_sz; in binary_to_compressed_c()
86 fprintf(out, "// File: '%s' (%d bytes)\n", filename, (int)data_sz); in binary_to_compressed_c()
/third_party/skia/third_party/externals/imgui/misc/fonts/
Dbinary_to_compressed_c.cpp75 int data_sz; in binary_to_compressed_c() local
76 …if (fseek(f, 0, SEEK_END) || (data_sz = (int)ftell(f)) == -1 || fseek(f, 0, SEEK_SET)) { fclose(f)… in binary_to_compressed_c()
77 char* data = new char[data_sz + 4]; in binary_to_compressed_c()
78 if (fread(data, 1, data_sz, f) != (size_t)data_sz) { fclose(f); delete[] data; return false; } in binary_to_compressed_c()
79 memset((void*)(((char*)data) + data_sz), 0, 4); in binary_to_compressed_c()
83 int maxlen = data_sz + 512 + (data_sz >> 2) + sizeof(int); // total guess in binary_to_compressed_c()
85 …d_sz = use_compression ? stb_compress((stb_uchar*)compressed, (stb_uchar*)data, data_sz) : data_sz; in binary_to_compressed_c()
91 fprintf(out, "// File: '%s' (%d bytes)\n", filename, (int)data_sz); in binary_to_compressed_c()
/third_party/libbpf/src/
Dbpf_prog_linfo.c104 __u64 data_sz; in bpf_prog_linfo__new() local
126 data_sz = (__u64)nr_linfo * prog_linfo->rec_size; in bpf_prog_linfo__new()
127 prog_linfo->raw_linfo = malloc(data_sz); in bpf_prog_linfo__new()
130 memcpy(prog_linfo->raw_linfo, (void *)(long)info->line_info, data_sz); in bpf_prog_linfo__new()
146 data_sz = (__u64)nr_linfo * prog_linfo->jited_rec_size; in bpf_prog_linfo__new()
147 prog_linfo->raw_jited_linfo = malloc(data_sz); in bpf_prog_linfo__new()
151 (void *)(long)info->jited_line_info, data_sz); in bpf_prog_linfo__new()
Dbtf.c1373 __u32 data_sz; local
1382 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len;
1383 data = calloc(1, data_sz);
1411 *size = data_sz;
1421 __u32 data_sz; local
1424 data = btf_get_raw_data(btf, &data_sz, btf->swapped_endian);
1428 btf->raw_size = data_sz;
1433 *size = data_sz;
1664 static int btf_commit_type(struct btf *btf, int data_sz) argument
1672 btf->hdr->type_len += data_sz;
[all …]
Dskel_internal.h64 __u32 data_sz; member
316 err = map_fd = skel_map_create(BPF_MAP_TYPE_ARRAY, "__loader.map", 4, opts->data_sz, 1); in bpf_load_and_run()
Dlibbpf.h1327 size_t data_sz; member
1381 __u32 data_sz; member
Dbtf.h293 const void *data, size_t data_sz,
Dbtf_dump.c2492 const void *data, size_t data_sz, in btf_dump__dump_type_data() argument
2507 d->typed_dump->data_end = data + data_sz; in btf_dump__dump_type_data()
Dgen_loader.c403 opts->data_sz = gen->data_cur - gen->data_start; in bpf_gen__finish()
Dlibbpf.c1711 const char *real_name, int sec_idx, void *data, size_t data_sz) argument
1735 def->value_size = data_sz;
1762 memcpy(map->mmaped, data, data_sz);
12743 obj = bpf_object__open_mem(s->data, s->data_sz, &skel_opts);
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dav1parser.c116 guint data_sz = sizeof (aom_testdata_av1_1_b8_01_size_16x16); in GST_START_TEST() local
120 ret = gst_av1_parser_identify_one_obu (parser, data_ptr, data_sz, in GST_START_TEST()
124 data_sz -= consumed; in GST_START_TEST()
135 ret = gst_av1_parser_identify_one_obu (parser, data_ptr, data_sz, in GST_START_TEST()
139 data_sz -= consumed; in GST_START_TEST()
187 ret = gst_av1_parser_identify_one_obu (parser, data_ptr, data_sz, in GST_START_TEST()
191 data_sz -= consumed; in GST_START_TEST()
263 ret = gst_av1_parser_identify_one_obu (parser, data_ptr, data_sz, in GST_START_TEST()
267 data_sz -= consumed; in GST_START_TEST()
278 ret = gst_av1_parser_identify_one_obu (parser, data_ptr, data_sz, in GST_START_TEST()
[all …]
/third_party/mesa3d/src/util/
Dfossilize_db.c405 uint32_t data_sz = entry->header.payload_size; in foz_read_entry() local
406 data = malloc(data_sz); in foz_read_entry()
407 if (fread(data, 1, data_sz, foz_db->file[file_idx]) != data_sz) in foz_read_entry()
412 if (util_hash_crc32(data, data_sz) != entry->header.crc) in foz_read_entry()
419 *size = data_sz; in foz_read_entry()
/third_party/ffmpeg/libavfilter/
Dvf_vmafmotion.c237 size_t data_sz; in ff_vmafmotion_init() local
248 data_sz = (size_t) s->stride * h; in ff_vmafmotion_init()
249 if (!(s->blur_data[0] = av_malloc(data_sz)) || in ff_vmafmotion_init()
250 !(s->blur_data[1] = av_malloc(data_sz)) || in ff_vmafmotion_init()
251 !(s->temp_data = av_malloc(data_sz))) { in ff_vmafmotion_init()
/third_party/openssl/providers/implementations/rands/seeding/
Drand_vms.c287 size_t data_sz = 0; in prepare_item_list() local
302 data_sz += items_input->length; in prepare_item_list()
308 return data_sz / sizeof(databuffer[0]); in prepare_item_list()
/third_party/ffmpeg/libavcodec/
Dlibvpxdec.c198 uint8_t *data, uint32_t data_sz) in decode_frame() argument
200 if (vpx_codec_decode(decoder, data, data_sz, NULL, 0) != VPX_CODEC_OK) { in decode_frame()
/third_party/mesa3d/src/intel/compiler/
Dbrw_eu.h1277 enum lsc_data_size data_sz, unsigned num_channels, in lsc_msg_desc() argument
1283 DIV_ROUND_UP(lsc_data_size_bytes(data_sz) * num_channels * simd_size, in lsc_msg_desc()
1295 SET_BITS(data_sz, 11, 9) | in lsc_msg_desc()