Home
last modified time | relevance | path

Searched refs:size (Results 1726 - 1750 of 21438) sorted by relevance

1...<<61626364656667686970>>...858

/third_party/ffmpeg/libavfilter/
H A Dvf_showpalette.c32 int size; member
38 { "s", "set pixel box size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=30}, 1, 100, FLAGS },
61 outlink->w = outlink->h = 16 * s->size; in config_output()
65 static void disp_palette(AVFrame *out, const AVFrame *in, int size) in disp_palette() argument
74 for (j = 0; j < size; j++) in disp_palette()
75 for (i = 0; i < size; i++) in disp_palette()
76 dst[(y*dst_linesize + x) * size + j*dst_linesize + i] = pal[y*16 + x]; in disp_palette()
92 disp_palette(out, in, s->size); in filter_frame()
/third_party/gn/src/base/files/
H A Dfile.h100 // The size of the file in bytes. Undefined when is_directory is true.
101 int64_t size = 0; member
169 // normal expectation is that actually |size| bytes are read unless there is
171 int Read(int64_t offset, char* data, int size);
174 int ReadAtCurrentPos(char* data, int size);
179 int ReadNoBestEffort(int64_t offset, char* data, int size);
182 int ReadAtCurrentPosNoBestEffort(char* data, int size);
187 // all platforms. |data| can be nullptr when |size| is 0.
188 int Write(int64_t offset, const char* data, int size);
191 int WriteAtCurrentPos(const char* data, int size);
[all...]
/third_party/alsa-utils/axfer/
H A Dframe-cache.c16 unsigned int size; in align_frames_in_i() local
22 size = cache->bytes_per_sample * cache->samples_per_frame * in align_frames_in_i()
24 memmove(buf, buf + offset, size); in align_frames_in_i()
26 cache->buf_ptr = buf + size; in align_frames_in_i()
35 unsigned int size; in align_frames_in_n() local
42 size = cache->bytes_per_sample * cache->remained_count; in align_frames_in_n()
43 memmove(bufs[i], bufs[i] + offset, size); in align_frames_in_n()
44 buf_ptrs[i] = bufs[i] + size; in align_frames_in_n()
/third_party/curl/docs/examples/
H A Dhttp2-pushinmemory.c41 size_t size; member
45 write_cb(void *contents, size_t size, size_t nmemb, void *userp) in write_cb() argument
47 size_t realsize = size * nmemb; in write_cb()
49 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in write_cb()
57 memcpy(&(mem->memory[mem->size]), contents, realsize); in write_cb()
58 mem->size += realsize; in write_cb()
59 mem->memory[mem->size] = 0; in write_cb()
71 chunk->size = 0; /* no data at this point */ in init_memory()
/third_party/curl/lib/
H A Dinet_ntop.c61 static char *inet_ntop4 (const unsigned char *src, char *dst, size_t size) in inet_ntop4() argument
66 DEBUGASSERT(size >= 16); in inet_ntop4()
76 if(len == 0 || len >= size) { in inet_ntop4()
87 static char *inet_ntop6 (const unsigned char *src, char *dst, size_t size) in inet_ntop6() argument
91 * to contain a value of the specified size. On some systems, like in inet_ntop6()
173 if((size_t)(tp - tmp) > size) { in inet_ntop6()
193 char *Curl_inet_ntop(int af, const void *src, char *buf, size_t size) in Curl_inet_ntop() argument
197 return inet_ntop4((const unsigned char *)src, buf, size); in Curl_inet_ntop()
199 return inet_ntop6((const unsigned char *)src, buf, size); in Curl_inet_ntop()
/third_party/mesa3d/src/egl/main/
H A Deglarray.c38 * Grow the size of the array.
153 _eglFilterArray(_EGLArray *array, void **data, EGLint size, in _eglFilterArray() argument
164 if (data && count < size) in _eglFilterArray()
168 if (data && count >= size) in _eglFilterArray()
181 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size, in _eglFlattenArray() argument
191 /* clamp size to 0 */ in _eglFlattenArray()
192 if (size < 0) in _eglFlattenArray()
193 size = 0; in _eglFlattenArray()
194 /* do not exceed buffer size */ in _eglFlattenArray()
195 if (count > size) in _eglFlattenArray()
[all...]
/third_party/mesa3d/src/intel/vulkan/
H A Danv_gem_stubs.c31 anv_gem_create(struct anv_device *device, uint64_t size) in anv_gem_create() argument
33 int fd = os_create_anonymous_file(size, "fake bo"); in anv_gem_create()
58 uint64_t offset, uint64_t size, uint32_t flags) in anv_gem_mmap()
63 return mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, in anv_gem_mmap()
71 anv_gem_munmap(struct anv_device *device, void *p, uint64_t size) in anv_gem_munmap() argument
73 munmap(p, size); in anv_gem_munmap()
77 anv_gem_userptr(struct anv_device *device, void *mem, size_t size) in anv_gem_userptr() argument
79 int fd = os_create_anonymous_file(size, "fake bo"); in anv_gem_userptr()
57 anv_gem_mmap(struct anv_device *device, uint32_t gem_handle, uint64_t offset, uint64_t size, uint32_t flags) anv_gem_mmap() argument
/third_party/mesa3d/src/util/
H A Du_worklist.c35 w->size = num_entries; in u_worklist_init()
57 assert(w->count < w->size); in u_worklist_push_head_index()
60 w->start = w->size - 1; in u_worklist_push_head_index()
85 w->start = (w->start + 1) % w->size; in u_worklist_pop_head_index()
99 assert(w->count < w->size); in u_worklist_push_tail_index()
103 unsigned tail = (w->start + w->count - 1) % w->size; in u_worklist_push_tail_index()
114 unsigned tail = (w->start + w->count - 1) % w->size; in u_worklist_peek_tail_index()
124 unsigned tail = (w->start + w->count - 1) % w->size; in u_worklist_pop_tail_index()
/third_party/mesa3d/src/panfrost/lib/
H A Dpan_pool.h46 /* Minimum size for allocated BOs. */
89 unsigned size; member
96 .size = pan_size(name), \
113 unsigned size = 0; in pan_pool_alloc_descs() local
116 for (unsigned i = 0; descs[i].size; i++) { in pan_pool_alloc_descs()
117 assert(!(size & (descs[i].align - 1))); in pan_pool_alloc_descs()
118 size += descs[i].size * descs[i].nelems; in pan_pool_alloc_descs()
121 return pan_pool_alloc_aligned(pool, size, align); in pan_pool_alloc_descs()
/third_party/ltp/testcases/kernel/mem/tunable/
H A Dovercommit_memory.c81 static int heavy_malloc(long size);
82 static void alloc_and_check(long size, int expect_result);
156 static int heavy_malloc(long size) in heavy_malloc() argument
160 p = malloc(size * KB); in heavy_malloc()
162 tst_res(TINFO, "malloc %ld kB successfully", size); in heavy_malloc()
166 tst_res(TINFO, "malloc %ld kB failed", size); in heavy_malloc()
171 static void alloc_and_check(long size, int expect_result) in alloc_and_check() argument
175 /* try to alloc size kB memory */ in alloc_and_check()
176 result = heavy_malloc(size); in alloc_and_check()
/third_party/ltp/testcases/kernel/syscalls/mbind/
H A Dmbind03.c47 unsigned long size = page_size; in verify_policy() local
50 ptr = tst_numa_map(NULL, size); in verify_policy()
52 tst_numa_fault(ptr, size); in verify_policy()
53 tst_nodemap_count_pages(nodes, ptr, size); in verify_policy()
65 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
78 tst_nodemap_count_pages(nodes, ptr, size); in verify_policy()
98 tst_numa_unmap(ptr, size); in verify_policy()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
H A D14-1.c39 ssize_t size = 1024; in main() local
40 char data[size]; in main()
57 memset(data, 'a', size); in main()
59 if (write(fd, data, size) != size) { in main()
66 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
92 msync(pa, size, MS_SYNC); in main()
115 munmap(pa, size); in main()
/third_party/node/deps/v8/src/utils/
H A Dscoped-list.h40 : buffer_(*buffer), start_(buffer->size()), end_(buffer->size()) {} in ScopedList()
45 DCHECK_EQ(buffer_.size(), end_); in Rewind()
62 DCHECK_LT(index, buffer_.size()); in at()
69 DCHECK_LT(index, buffer_.size()); in at()
79 DCHECK_EQ(buffer_.size(), end_); in Add()
85 DCHECK_EQ(buffer_.size(), end_); in AddAll()
86 buffer_.reserve(buffer_.size() + list.length()); in AddAll()
/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_shader_module.c52 module->size = pCreateInfo->codeSize; in vk_common_CreateShaderModule()
54 memcpy(module->data, pCreateInfo->pCode, module->size); in vk_common_CreateShaderModule()
56 _mesa_sha1_compute(module->data, module->size, module->sha1); in vk_common_CreateShaderModule()
114 return vk_spirv_version((uint32_t *)mod->data, mod->size); in vk_shader_module_spirv_version()
143 ralloc_size(mem_ctx, sizeof(struct vk_shader_module) + src->size); in vk_shader_module_clone()
151 dst->size = src->size; in vk_shader_module_clone()
152 memcpy(dst->data, src->data, src->size); in vk_shader_module_clone()
/third_party/skia/third_party/externals/microhttpd/src/testcurl/
H A Dtest_urlparse.c55 size_t size; member
59 copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) in copyBuffer() argument
63 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
65 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
66 cbc->pos += size * nmemb; in copyBuffer()
67 return size * nmemb; in copyBuffer()
135 cbc.size = 2048; in testInternalGet()
/third_party/skia/tests/
H A DOSPathTest.cpp32 // fullName should be the combined size of dir and file, plus one if in test_dir_with_file()
34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file()
38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); in test_dir_with_file()
49 while (strippedDir.size() > 2 && strippedDir[strippedDir.size() - 1] == SkOSPath::SEPARATOR) { in test_dir_with_file()
50 strippedDir.remove(strippedDir.size() - 1, 1); in test_dir_with_file()
87 REPORTER_ASSERT(reporter, baseOfDir.size() == 0); in DEF_TEST()
91 REPORTER_ASSERT(reporter, empty.size() == 0); in DEF_TEST()
/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/
H A DBufferUploadPerf.cpp107 desc.size = data.size(); in SetUp()
117 queue.WriteBuffer(dst, 0, data.data(), data.size()); in Step()
126 desc.size = data.size(); in Step()
134 memcpy(buffer.GetMappedRange(0, data.size()), data.data(), data.size()); in Step()
136 encoder.CopyBufferToBuffer(buffer, 0, dst, 0, data.size()); in Step()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DBuffer.h66 bool IsFullBufferRange(uint64_t offset, uint64_t size) const;
71 void* GetMappedRange(size_t offset, size_t size, bool writable = true);
77 size_t size,
80 void* APIGetMappedRange(size_t offset, size_t size);
81 const void* APIGetConstMappedRange(size_t offset, size_t size);
102 virtual MaybeError MapAsyncImpl(wgpu::MapMode mode, size_t offset, size_t size) = 0;
112 size_t size,
115 bool CanGetMappedRange(bool writable, size_t offset, size_t size) const;
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DWriteBufferTests.cpp24 wgpu::Buffer CreateWritableBuffer(uint64_t size) { in CreateWritableBuffer() argument
27 desc.size = size; in CreateWritableBuffer()
33 uint64_t size) { in EncodeWriteBuffer()
34 std::vector<uint8_t> data(size); in EncodeWriteBuffer()
36 encoder.WriteBuffer(buffer, bufferOffset, data.data(), size); in EncodeWriteBuffer()
54 // Tests that the buffer size is validated to be a multiple of 4 bytes.
66 // Tests that the buffer size and offset are validated to fit within the bounds of the buffer.
82 desc.size = 64; in TEST_F()
92 desc.size in TEST_F()
31 EncodeWriteBuffer(wgpu::Buffer buffer, uint64_t bufferOffset, uint64_t size) EncodeWriteBuffer() argument
[all...]
/third_party/skia/experimental/sktext/src/
H A DLogicalRun.h19 fFont.getBounds(fGlyphs.data(), fGlyphs.size(), fBounds.data(), nullptr); in commit()
20 fPositions[fGlyphs.size()] = fAdvance; in commit()
21 fClusters[fGlyphs.size()] = this->leftToRight() ? fUtf8Range.end() : fUtf8Range.begin(); in commit()
27 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth()
38 size_t size() const { return fGlyphs.size(); } in size() function in skia::text::LogicalRun
46 for(; glyph < fClusters.size(); ++glyph) { in forEachCluster()
60 for (size_t glyph = 0; glyph < fClusters.size(); ++glyph) { in convertClusterIndexes()
/third_party/rust/crates/rustix/src/backend/linux_raw/arch/outline/
H A Dpowerpc64.s27 .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last
42 .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last
55 .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last
70 .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last
85 .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last
100 .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last
115 .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last
130 .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last
H A Driscv64.s23 .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last
36 .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last
49 .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last
62 .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last
75 .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last
88 .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last
101 .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last
114 .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last
H A Dx86_64.s26 .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last
39 .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last
52 .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last
65 .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last
78 .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last
92 .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last
106 .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last
120 .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last
H A Darm.s26 .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last
41 .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last
56 .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last
71 .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last
86 .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last
101 .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last
117 .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last
133 .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last
/third_party/selinux/libselinux/src/
H A Dcompute_create.c59 size_t size; in security_compute_create_name_raw() local
72 size = selinux_page_size; in security_compute_create_name_raw()
73 buf = malloc(size); in security_compute_create_name_raw()
79 len = snprintf(buf, size, "%s %s %hu", in security_compute_create_name_raw()
81 if (len < 0 || (size_t)len >= size) { in security_compute_create_name_raw()
88 object_name_encode(objname, buf + len, size - len) < 0) { in security_compute_create_name_raw()
98 memset(buf, 0, size); in security_compute_create_name_raw()
99 ret = read(fd, buf, size - 1); in security_compute_create_name_raw()

Completed in 11 milliseconds

1...<<61626364656667686970>>...858