Home
last modified time | relevance | path

Searched refs:tree_size (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/third_party/brotli/src/brotli/enc/
Dentropy_encode.cc178 int* tree_size) { in WriteHuffmanTreeRepetitions() argument
180 tree[*tree_size] = value; in WriteHuffmanTreeRepetitions()
181 extra_bits[*tree_size] = 0; in WriteHuffmanTreeRepetitions()
182 ++(*tree_size); in WriteHuffmanTreeRepetitions()
186 tree[*tree_size] = value; in WriteHuffmanTreeRepetitions()
187 extra_bits[*tree_size] = 0; in WriteHuffmanTreeRepetitions()
188 ++(*tree_size); in WriteHuffmanTreeRepetitions()
193 tree[*tree_size] = value; in WriteHuffmanTreeRepetitions()
194 extra_bits[*tree_size] = 0; in WriteHuffmanTreeRepetitions()
195 ++(*tree_size); in WriteHuffmanTreeRepetitions()
[all …]
Dbit_cost.h99 int tree_size = 0; in HuffmanBitCost() local
103 tree_size += histogram[i]; in HuffmanBitCost()
/external/chromium_org/chrome/installer/test/
Dpe_image_resources.cc29 const base::win::PEImage& image, const uint8* tree_base, DWORD tree_size, in EnumResourcesWorker() argument
35 if (!StructureAt(tree_base + directory_offset, tree_size - directory_offset, in EnumResourcesWorker()
40 sizeof(IMAGE_RESOURCE_DIRECTORY_ENTRY) > tree_size) { in EnumResourcesWorker()
65 tree_size - scan->NameOffset, &dir_string) || in EnumResourcesWorker()
67 dir_string->Length * sizeof(wchar_t) > tree_size) { in EnumResourcesWorker()
79 success = EnumResourcesWorker(image, tree_base, tree_size, in EnumResourcesWorker()
85 tree_size - scan->OffsetToData, &data_entry) && in EnumResourcesWorker()
88 tree_base + tree_size) { in EnumResourcesWorker()
/external/pdfium/core/src/fxcrt/
Dfx_basic_array.cpp227 int tree_size = 1; in Add() local
230 tree_size *= m_IndexSize; in Add()
232 if (m_DataSize == tree_size * m_SegmentSize) { in Add()
243 tree_size /= m_IndexSize; in Add()
247 if (pSpot[seg_index / tree_size] == NULL) { in Add()
248 … pSpot[seg_index / tree_size] = (void*)FX_Allocator_Alloc(m_pAllocator, void*, m_IndexSize); in Add()
249 if (pSpot[seg_index / tree_size] == NULL) { in Add()
252 FXSYS_memset32(pSpot[seg_index / tree_size], 0, sizeof(void*) * m_IndexSize); in Add()
254 pSpot = (void**)pSpot[seg_index / tree_size]; in Add()
255 seg_index = seg_index % tree_size; in Add()
[all …]
/external/chromium_org/net/cert/
Dct_log_response_parser.cc26 int tree_size; member
68 converter->RegisterIntField("tree_size", &JsonSignedTreeHead::tree_size); in RegisterJSONConverter()
80 if (sth.tree_size < 0) { in IsJsonSTHStructurallyValid()
82 << sth.tree_size; in IsJsonSTHStructurallyValid()
127 signed_tree_head->tree_size = parsed_sth.tree_size; in FillSignedTreeHead()
Dsigned_tree_head.h31 uint64 tree_size; member
Dct_log_response_parser_unittest.cc55 ASSERT_EQ(2903698u, tree_head.tree_size); in TEST()
Dct_serialization.cc317 WriteUint(kTreeSizeLength, signed_tree_head.tree_size, output); in EncodeTreeHeadSignature()
/external/chromium_org/ui/accessibility/
Dax_generated_tree_unittest.cc139 int tree_size = 3; in TEST() local
140 TreeGenerator generator(tree_size); in TEST()
181 int tree_size = 4; in TEST() local
184 int tree_size = 3; in TEST()
187 TreeGenerator generator(tree_size); in TEST()
203 for (int k = 0; k < tree_size; k++) { in TEST()
228 for (int k_index = 0; k_index < tree_size; ++k_index) { in TEST()
229 int id = 1 + (k + k_index) % tree_size; in TEST()
/external/webp/src/utils/
Dhuffman_encode.c192 int tree_size = tree_size_orig; in GenerateOptimalTree() local
210 qsort(tree, tree_size, sizeof(*tree), CompareHuffmanTrees); in GenerateOptimalTree()
212 if (tree_size > 1) { // Normal case. in GenerateOptimalTree()
214 while (tree_size > 1) { // Finish when we have only one root. in GenerateOptimalTree()
216 tree_pool[tree_pool_size++] = tree[tree_size - 1]; in GenerateOptimalTree()
217 tree_pool[tree_pool_size++] = tree[tree_size - 2]; in GenerateOptimalTree()
220 tree_size -= 2; in GenerateOptimalTree()
224 for (k = 0; k < tree_size; ++k) { in GenerateOptimalTree()
229 memmove(tree + (k + 1), tree + k, (tree_size - k) * sizeof(*tree)); in GenerateOptimalTree()
235 tree_size = tree_size + 1; in GenerateOptimalTree()
[all …]
/external/chromium_org/third_party/libwebp/utils/
Dhuffman_encode.c192 int tree_size = tree_size_orig; in GenerateOptimalTree() local
210 qsort(tree, tree_size, sizeof(*tree), CompareHuffmanTrees); in GenerateOptimalTree()
212 if (tree_size > 1) { // Normal case. in GenerateOptimalTree()
214 while (tree_size > 1) { // Finish when we have only one root. in GenerateOptimalTree()
216 tree_pool[tree_pool_size++] = tree[tree_size - 1]; in GenerateOptimalTree()
217 tree_pool[tree_pool_size++] = tree[tree_size - 2]; in GenerateOptimalTree()
220 tree_size -= 2; in GenerateOptimalTree()
224 for (k = 0; k < tree_size; ++k) { in GenerateOptimalTree()
229 memmove(tree + (k + 1), tree + k, (tree_size - k) * sizeof(*tree)); in GenerateOptimalTree()
235 tree_size = tree_size + 1; in GenerateOptimalTree()
[all …]
/external/lldb/examples/scripting/
Dtree_utils.py78 def tree_size (root): function
93 left_size = tree_size (root.GetChildAtIndex(1));
94 right_size = tree_size (root.GetChildAtIndex(2));
/external/chromium_org/mojo/services/public/cpp/view_manager/tests/
Dview_manager_unittest.cc146 TreeSizeMatchesObserver(Node* tree, size_t tree_size) in TreeSizeMatchesObserver() argument
148 tree_size_(tree_size) {} in TreeSizeMatchesObserver()
176 void WaitForTreeSizeToMatch(Node* node, size_t tree_size) { in WaitForTreeSizeToMatch() argument
177 TreeSizeMatchesObserver observer(node, tree_size); in WaitForTreeSizeToMatch()
/external/chromium_org/net/test/
Dct_test_util.cc261 sth->tree_size = 21u; in GetSignedTreeHead()