/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/ |
D | mempool.c | 19 mempool_create (mempool * mptr, const unsigned int size, unsigned int max_size, in mempool_create() argument 32 if (!max_size) in mempool_create() 33 max_size = (1 << 17); in mempool_create() 34 max_size = size + ALIGN_MASK > max_size ? size + ALIGN_MASK : max_size; in mempool_create() 36 *mptr = malloc (MEMPOOL_RESERVED + max_size); in mempool_create() 40 .malloc = malloc,.free = free,.size = MEMPOOL_RESERVED + max_size,.used = in mempool_create() 50 mempool_alloc (mempool * mptr, unsigned int size, unsigned int max_size) in mempool_alloc() argument 58 return mempool_create (mptr, size, max_size, (*mptr)->malloc, (*mptr)->free); in mempool_alloc()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe12.c | 20 static ssize_t max_size, invalid_size; variable 43 memset(rdbuf, 0, max_size); in verify_pipe() 47 SAFE_WRITE(1, fds[1], wrbuf, max_size); in verify_pipe() 68 if (nbytes == max_size - tc->offset) in verify_pipe() 72 max_size, nbytes); in verify_pipe() 77 SAFE_READ(0, fds[0], rdbuf, max_size); in verify_pipe() 97 max_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ); in setup() 98 invalid_size = max_size + 4096; in setup() 100 rdbuf = SAFE_MALLOC(max_size); in setup()
|
/third_party/json/docs/examples/ |
D | max_size.cpp | 18 std::cout << j_null.max_size() << '\n'; in main() 19 std::cout << j_boolean.max_size() << '\n'; in main() 20 std::cout << j_number_integer.max_size() << '\n'; in main() 21 std::cout << j_number_float.max_size() << '\n'; in main() 22 std::cout << j_object.max_size() << '\n'; in main() 23 std::cout << j_array.max_size() << '\n'; in main() 24 std::cout << j_string.max_size() << '\n'; in main()
|
/third_party/ffmpeg/libavformat/ |
D | voc_packet.c | 27 ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size) in ff_voc_get_packet() argument 47 if (max_size < 4) in ff_voc_get_packet() 48 max_size = 0; in ff_voc_get_packet() 62 max_size -= 4; in ff_voc_get_packet() 81 max_size -= 2; in ff_voc_get_packet() 94 max_size -= 4; in ff_voc_get_packet() 112 max_size -= 12; in ff_voc_get_packet() 117 max_size -= voc->remaining_size; in ff_voc_get_packet() 145 if (max_size <= 0) in ff_voc_get_packet() 146 max_size = 2048; in ff_voc_get_packet() [all …]
|
D | libgme.c | 38 int64_t max_size; member 47 …{"max_size", "set max file size supported (in bytes)", OFFSET(max_size), AV_OPT_TYPE_INT64, … 104 sz = gme->max_size; in read_header_gme() 105 } else if (gme->max_size && sz > gme->max_size) { in read_header_gme() 106 sz = gme->max_size; in read_header_gme() 118 gme->max_size); in read_header_gme()
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_cache.c | 76 int max_size) in sanitize_hash() argument 79 sc->sanitize_cb(hash, type, max_size, sc->sanitize_data); in sanitize_hash() 84 int max_size, void *user_data) in sanitize_cb() argument 91 int max_entries = (max_size > hash_size) ? max_size : hash_size; in sanitize_cb() 92 int to_remove = (max_size < max_entries) * max_entries/4; in sanitize_cb() 93 if (hash_size > max_size) in sanitize_cb() 94 to_remove += hash_size - max_size; in sanitize_cb() 111 sanitize_hash(sc, hash, type, sc->max_size); in cso_insert_state() 163 sc->max_size = 4096; in cso_cache_init() 207 sc->max_size = number; in cso_set_maximum_cache_size() [all …]
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitUtils.c | 175 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument 182 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 189 ptr = SLJIT_MALLOC(max_size, allocator_data); in sljit_allocate_stack() 196 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 239 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument 247 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 256 max_size = (max_size + page_align) & ~page_align; in sljit_allocate_stack() 259 ptr = VirtualAlloc(NULL, max_size, MEM_RESERVE, PAGE_READWRITE); in sljit_allocate_stack() 266 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 275 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack() [all …]
|
/third_party/node/deps/v8/src/heap/ |
D | heap-controller.cc | 36 size_t max_size = max_heap_size; in MaxGrowingFactor() local 37 max_size = std::max({max_size, Trait::kMinSize}); in MaxGrowingFactor() 41 if (max_size >= Trait::kMaxSize) { in MaxGrowingFactor() 45 DCHECK_GE(max_size, Trait::kMinSize); in MaxGrowingFactor() 46 DCHECK_LT(max_size, Trait::kMaxSize); in MaxGrowingFactor() 49 double factor = (max_size - Trait::kMinSize) * in MaxGrowingFactor() 129 Heap* heap, size_t current_size, size_t min_size, size_t max_size, in CalculateAllocationLimit() argument 157 (static_cast<uint64_t>(current_size) + max_size) / 2; in CalculateAllocationLimit()
|
/third_party/json/docs/mkdocs/docs/api/basic_json/ |
D | max_size.md | 1 # <small>nlohmann::basic_json::</small>max_size 4 size_type max_size() const noexcept; 21 | object | result of function `object_t::max_size()` | 22 | array | result of function `array_t::max_size()` | 31 …/en.cppreference.com/w/cpp/named_req/Container) concept; that is, their `max_size()` functions have 43 The following code calls `max_size()` on the different value types. 46 --8<-- "examples/max_size.cpp" 52 --8<-- "examples/max_size.output"
|
/third_party/json/tests/src/ |
D | unit-capacity.cpp | 424 CHECK(j.max_size() == 1); 425 CHECK(j_const.max_size() == 1); 436 CHECK(j.max_size() == 1); 437 CHECK(j_const.max_size() == 1); 450 CHECK(j.max_size() >= j.size()); 451 CHECK(j_const.max_size() >= j_const.size()); 462 CHECK(j.max_size() >= j.size()); 463 CHECK(j_const.max_size() >= j_const.size()); 477 CHECK(j.max_size() >= j.size()); 478 CHECK(j_const.max_size() >= j_const.size()); [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | udpsrc.c | 147 gsize max_size; in GST_START_TEST() local 194 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 195 fail_unless (max_size <= 2000); in GST_START_TEST() 201 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 202 fail_unless (max_size <= 2000); in GST_START_TEST() 208 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 209 fail_unless (max_size <= 2000); in GST_START_TEST() 215 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 216 fail_unless (max_size <= 2000); in GST_START_TEST() 222 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() [all …]
|
/third_party/mesa3d/src/util/ |
D | disk_cache.c | 78 uint64_t max_size; in disk_cache_create() local 122 max_size = 0; in disk_cache_create() 142 max_size = strtoul(max_size_str, &end, 10); in disk_cache_create() 144 max_size = 0; in disk_cache_create() 149 max_size *= 1024; in disk_cache_create() 153 max_size *= 1024*1024; in disk_cache_create() 159 max_size *= 1024*1024*1024; in disk_cache_create() 166 if (max_size == 0) { in disk_cache_create() 167 max_size = 1024*1024*1024; in disk_cache_create() 170 cache->max_size = max_size; in disk_cache_create() [all …]
|
/third_party/curl/lib/vauth/ |
D | krb5_gssapi.c | 199 unsigned int max_size = 0; in Curl_auth_create_gssapi_security_message() local 229 max_size = (indata[1] << 16) | (indata[2] << 8) | indata[3]; in Curl_auth_create_gssapi_security_message() 243 if(max_size > 0) { in Curl_auth_create_gssapi_security_message() 247 max_size = 0; in Curl_auth_create_gssapi_security_message() 261 message[1] = (max_size >> 16) & 0xFF; in Curl_auth_create_gssapi_security_message() 262 message[2] = (max_size >> 8) & 0xFF; in Curl_auth_create_gssapi_security_message() 263 message[3] = max_size & 0xFF; in Curl_auth_create_gssapi_security_message()
|
D | krb5_sspi.c | 270 unsigned long max_size = 0; in Curl_auth_create_gssapi_security_message() local 322 max_size = (indata[1] << 16) | (indata[2] << 8) | indata[3]; in Curl_auth_create_gssapi_security_message() 335 if(max_size > 0) { in Curl_auth_create_gssapi_security_message() 339 max_size = 0; in Curl_auth_create_gssapi_security_message() 361 message[1] = (max_size >> 16) & 0xFF; in Curl_auth_create_gssapi_security_message() 362 message[2] = (max_size >> 8) & 0xFF; in Curl_auth_create_gssapi_security_message() 363 message[3] = max_size & 0xFF; in Curl_auth_create_gssapi_security_message()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | imageio_util.c | 38 size_t max_size = 0; in ImgIoUtilReadFromStdin() local 50 const size_t extra_size = (max_size == 0) ? kBlockSize : max_size; in ImgIoUtilReadFromStdin() 52 void* const new_data = realloc(input, max_size + extra_size + 1); in ImgIoUtilReadFromStdin() 55 max_size += extra_size; in ImgIoUtilReadFromStdin() 57 if (size < max_size) break; in ImgIoUtilReadFromStdin()
|
/third_party/alsa-utils/axfer/ |
D | container.c | 218 cntr->max_size = parser->max_size; in container_parser_init() 276 cntr->max_size = builder->max_size; in container_builder_init() 299 byte_count = cntr->max_size; in container_context_pre_process() 332 cntr->max_size -= cntr->max_size / bytes_per_frame; in container_context_pre_process() 390 if (cntr->handled_byte_count > cntr->max_size - byte_count) in container_context_process_frames() 391 byte_count = cntr->max_size - cntr->handled_byte_count; in container_context_process_frames() 402 if (cntr->handled_byte_count == cntr->max_size) in container_context_process_frames()
|
/third_party/ltp/testcases/network/mpls/ |
D | mpls_lib.sh | 87 local max_size=$TST_NET_MAX_PKT 90 tst_ping -I $ip_virt_local -H $ip_virt_remote -s "10 100 1000 2000 $max_size" 91 tst_ping -I $ip6_virt_local -H $ip6_virt_remote -s "10 100 1000 2000 $max_size" 95 tst_netload -S $ip_virt_local -H $ip_virt_remote -T $type -A $max_size 96 tst_netload -S $ip6_virt_local -H $ip6_virt_remote -T $type -A $max_size
|
D | mpls02.sh | 43 local max_size=$TST_NET_MAX_PKT 46 tst_ping -I $ip_loc -H $ip_rmt -s "10 100 1000 2000 $max_size" 49 tst_netload -S $ip_loc -H $ip_rmt -T $type -A $max_size
|
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/containers/ |
D | mru_cache.h | 82 explicit MRUCacheBase(size_type max_size) : max_size_(max_size) {} in MRUCacheBase() argument 86 size_type max_size() const { return max_size_; } in max_size() function 238 explicit MRUCache(typename ParentType::size_type max_size) : ParentType(max_size) {} in MRUCache() argument 264 explicit HashingMRUCache(typename ParentType::size_type max_size) : ParentType(max_size) {} in HashingMRUCache() argument
|
/third_party/libcoap/tests/ |
D | test_error_response.c | 36 coap_pdu_clear(pdu, pdu->max_size); in t_error_response1() 65 coap_pdu_clear(pdu, pdu->max_size); in t_error_response2() 95 coap_pdu_clear(pdu, pdu->max_size); in t_error_response3() 134 coap_pdu_clear(pdu, pdu->max_size); in t_error_response4() 175 coap_pdu_clear(pdu, pdu->max_size); in t_error_response5() 216 coap_pdu_clear(pdu, pdu->max_size); in t_error_response6() 257 coap_pdu_clear(pdu, pdu->max_size); in t_error_response7() 293 coap_pdu_clear(pdu, pdu->max_size); in t_error_response8()
|
D | test_pdu.c | 274 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_parse_pdu15() 340 coap_pdu_clear(pdu, pdu->max_size); in t_encode_pdu1() 357 size_t old_max = pdu->max_size; in t_encode_pdu2() 402 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu4() 453 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu5() 491 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu6() 512 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu7() 535 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu8() 568 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu9() 650 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_encode_pdu10() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | histogram_enc.c | 129 memory += set->max_size * sizeof(*set->histograms); in HistogramSetResetPointers() 130 for (i = 0; i < set->max_size; ++i) { in HistogramSetResetPointers() 156 set->max_size = size; in VP8LAllocateHistogramSet() 168 const int size = set->max_size; in VP8LHistogramSetClear() 175 set->max_size = size; in VP8LHistogramSetClear() 590 assert(image_histo->max_size == orig_histo->max_size); in HistogramCopyAndAnalyze() 591 for (cluster_id = 0, i = 0; i < orig_histo->max_size; ++i) { in HistogramCopyAndAnalyze() 610 assert(cluster_id <= image_histo->max_size); in HistogramCopyAndAnalyze() 741 int max_size; member 744 static int HistoQueueInit(HistoQueue* const histo_queue, const int max_size) { in HistoQueueInit() argument [all …]
|
/third_party/gstreamer/gstreamer/plugins/elements/ |
D | gstmultiqueue.c | 157 GstDataQueueSize max_size, extra_size; member 904 mqueue->max_size.bytes = DEFAULT_MAX_SIZE_BYTES; in gst_multi_queue_init() 905 mqueue->max_size.visible = DEFAULT_MAX_SIZE_BUFFERS; in gst_multi_queue_init() 906 mqueue->max_size.time = DEFAULT_MAX_SIZE_TIME; in gst_multi_queue_init() 971 q->max_size.format = mq->max_size.format; \ 987 mq->max_size.bytes = g_value_get_uint (value); in gst_multi_queue_set_property() 999 mq->max_size.visible = new_size; in gst_multi_queue_set_property() 1009 q->max_size.visible); in gst_multi_queue_set_property() 1014 q->max_size.visible = new_size; in gst_multi_queue_set_property() 1015 } else if (q->max_size.visible == 0) { in gst_multi_queue_set_property() [all …]
|
/third_party/node/deps/v8/tools/testrunner/testproc/ |
D | combiner.py | 85 max_size = self._rng.randint(self._min_size, self._max_size) 86 sample = groups.sample(self._rng, max_size) 117 def sample(self, rng, max_size): argument 124 return [rng.choice(tests) for _ in range(0, max_size)]
|
/third_party/ffmpeg/libavcodec/ |
D | dca.c | 55 int max_size) in avpriv_dca_convert_bitstream() argument 61 if ((unsigned) src_size > (unsigned) max_size) in avpriv_dca_convert_bitstream() 62 src_size = max_size; in avpriv_dca_convert_bitstream() 79 init_put_bits(&pb, dst, max_size); in avpriv_dca_convert_bitstream()
|