Home
last modified time | relevance | path

Searched refs:input_buffer (Results 1 – 25 of 64) sorted by relevance

123

/external/chromium_org/third_party/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc40 bool LoadFile(const char* input_file_path, sfntly::ByteVector* input_buffer) { in LoadFile() argument
42 assert(input_buffer); in LoadFile()
56 input_buffer->resize(file_size); in LoadFile()
57 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
107 sfntly::ByteVector input_buffer; in main() local
108 if (!LoadFile(argv[1], &input_buffer)) { in main()
122 &(input_buffer[0]), in main()
123 input_buffer.size(), in main()
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc40 bool LoadFile(const char* input_file_path, sfntly::ByteVector* input_buffer) { in LoadFile() argument
42 assert(input_buffer); in LoadFile()
56 input_buffer->resize(file_size); in LoadFile()
57 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
107 sfntly::ByteVector input_buffer; in main() local
108 if (!LoadFile(argv[1], &input_buffer)) { in main()
122 &(input_buffer[0]), in main()
123 input_buffer.size(), in main()
/external/elfutils/0.153/libdwfl/
Dgzip.c123 void *input_buffer = NULL; in unzip() local
129 *whole = input_buffer; in unzip()
132 free (input_buffer); in unzip()
156 input_buffer = malloc (READ_SIZE); in unzip()
157 if (unlikely (input_buffer == NULL)) in unzip()
160 ssize_t n = pread_retry (fd, input_buffer, READ_SIZE, start_offset); in unzip()
165 mapped = input_buffer; in unzip()
170 input_buffer = *whole; in unzip()
203 if (z.avail_in == 0 && input_buffer != NULL) in unzip()
205 ssize_t n = pread_retry (fd, input_buffer, READ_SIZE, in unzip()
[all …]
/external/sfntly/cpp/src/test/
Dchrome_subsetter.cc36 sfntly::ByteVector input_buffer; in TestChromeSubsetter() local
37 sfntly::LoadFile(kInputFileName, &input_buffer); in TestChromeSubsetter()
38 EXPECT_GT(input_buffer.size(), (size_t)0); in TestChromeSubsetter()
43 &(input_buffer[0]), in TestChromeSubsetter()
44 input_buffer.size(), in TestChromeSubsetter()
Dfont_parsing_test.cc35 ByteVector input_buffer; in TestFontParsing() local
36 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in TestFontParsing()
46 factory->LoadFontsForBuilding(&input_buffer, &font_builder_array2); in TestFontParsing()
117 ByteVector input_buffer; in TestTTFMemoryBasedReadWrite() local
118 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in TestTTFMemoryBasedReadWrite()
123 factory->LoadFontsForBuilding(&input_buffer, &font_builder_array); in TestTTFMemoryBasedReadWrite()
129 EXPECT_GE(output_stream.Size(), input_buffer.size()); in TestTTFMemoryBasedReadWrite()
Dtest_font_utils.cc63 void LoadFile(const char* input_file_path, ByteVector* input_buffer) { in LoadFile() argument
65 assert(input_buffer); in LoadFile()
77 input_buffer->resize(file_size); in LoadFile()
78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
Dname_editing_test.cc36 static ByteVector input_buffer; variable
41 if (input_buffer.empty()) { in LoadTestFile()
42 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in LoadTestFile()
44 factory->LoadFontsForBuilding(&input_buffer, font_builders); in LoadTestFile()
/external/chromium_org/third_party/sfntly/cpp/src/test/
Dchrome_subsetter.cc36 sfntly::ByteVector input_buffer; in TestChromeSubsetter() local
37 sfntly::LoadFile(kInputFileName, &input_buffer); in TestChromeSubsetter()
38 EXPECT_GT(input_buffer.size(), (size_t)0); in TestChromeSubsetter()
43 &(input_buffer[0]), in TestChromeSubsetter()
44 input_buffer.size(), in TestChromeSubsetter()
Dfont_parsing_test.cc35 ByteVector input_buffer; in TestFontParsing() local
36 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in TestFontParsing()
46 factory->LoadFontsForBuilding(&input_buffer, &font_builder_array2); in TestFontParsing()
117 ByteVector input_buffer; in TestTTFMemoryBasedReadWrite() local
118 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in TestTTFMemoryBasedReadWrite()
123 factory->LoadFontsForBuilding(&input_buffer, &font_builder_array); in TestTTFMemoryBasedReadWrite()
129 EXPECT_GE(output_stream.Size(), input_buffer.size()); in TestTTFMemoryBasedReadWrite()
Dtest_font_utils.cc63 void LoadFile(const char* input_file_path, ByteVector* input_buffer) { in LoadFile() argument
65 assert(input_buffer); in LoadFile()
77 input_buffer->resize(file_size); in LoadFile()
78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
Dname_editing_test.cc36 static ByteVector input_buffer; variable
41 if (input_buffer.empty()) { in LoadTestFile()
42 LoadFile(SAMPLE_TTF_FILE, &input_buffer); in LoadTestFile()
44 factory->LoadFontsForBuilding(&input_buffer, font_builders); in LoadTestFile()
/external/sfntly/cpp/src/sample/subsetter/
Dsubset_util.cc45 ByteVector input_buffer; in Subset() local
54 input_buffer.resize(file_size); in Subset()
55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); in Subset()
63 factory->LoadFonts(&input_buffer, &font_array); in Subset()
/external/chromium_org/third_party/sfntly/cpp/src/sample/subsetter/
Dsubset_util.cc45 ByteVector input_buffer; in Subset() local
54 input_buffer.resize(file_size); in Subset()
55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); in Subset()
63 factory->LoadFonts(&input_buffer, &font_array); in Subset()
/external/chromium_org/third_party/libjingle/source/talk/examples/call/
Dconsole.cc140 char input_buffer[128]; in RunConsole() local
141 while (fgets(input_buffer, sizeof(input_buffer), stdin) != NULL) { in RunConsole()
143 new talk_base::TypedMessageData<std::string>(input_buffer)); in RunConsole()
/external/chromium_org/media/cdm/ppapi/external_clear_key/
Dclear_key_cdm.cc98 const cdm::InputBuffer& input_buffer) { in CopyDecoderBufferFrom() argument
99 if (!input_buffer.data) { in CopyDecoderBufferFrom()
100 DCHECK(!input_buffer.data_size); in CopyDecoderBufferFrom()
106 media::DecoderBuffer::CopyFrom(input_buffer.data, input_buffer.data_size); in CopyDecoderBufferFrom()
109 for (uint32_t i = 0; i < input_buffer.num_subsamples; ++i) { in CopyDecoderBufferFrom()
111 subsample.clear_bytes = input_buffer.subsamples[i].clear_bytes; in CopyDecoderBufferFrom()
112 subsample.cypher_bytes = input_buffer.subsamples[i].cipher_bytes; in CopyDecoderBufferFrom()
116 DCHECK_EQ(input_buffer.data_offset, 0u); in CopyDecoderBufferFrom()
118 std::string(reinterpret_cast<const char*>(input_buffer.key_id), in CopyDecoderBufferFrom()
119 input_buffer.key_id_size), in CopyDecoderBufferFrom()
[all …]
/external/chromium_org/media/cdm/ppapi/
Dcdm_adapter.cc54 cdm::InputBuffer* input_buffer) { in ConfigureInputBuffer() argument
58 input_buffer->data = static_cast<uint8_t*>(encrypted_buffer.data()); in ConfigureInputBuffer()
59 input_buffer->data_size = encrypted_block_info.data_size; in ConfigureInputBuffer()
60 PP_DCHECK(encrypted_buffer.size() >= input_buffer->data_size); in ConfigureInputBuffer()
64 input_buffer->key_id_size = encrypted_block_info.key_id_size; in ConfigureInputBuffer()
65 input_buffer->key_id = input_buffer->key_id_size > 0 ? in ConfigureInputBuffer()
69 input_buffer->iv_size = encrypted_block_info.iv_size; in ConfigureInputBuffer()
70 input_buffer->iv = encrypted_block_info.iv_size > 0 ? in ConfigureInputBuffer()
73 input_buffer->num_subsamples = encrypted_block_info.num_subsamples; in ConfigureInputBuffer()
83 input_buffer->subsamples = &(*subsamples)[0]; in ConfigureInputBuffer()
[all …]
/external/chromium_org/third_party/libevent/test/
Dregress_http.c515 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(what)) { in http_request_done()
520 if (memcmp(EVBUFFER_DATA(req->input_buffer), what, strlen(what)) != 0) { in http_request_done()
556 if (EVBUFFER_LENGTH(req->input_buffer) != 0) { in http_request_empty_done()
597 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(what)) { in http_dispatcher_test_done()
599 EVBUFFER_LENGTH(req->input_buffer), strlen(what)); in http_dispatcher_test_done()
603 if (memcmp(EVBUFFER_DATA(req->input_buffer), what, strlen(what)) != 0) { in http_dispatcher_test_done()
736 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(POST_DATA)) { in http_post_cb()
738 EVBUFFER_LENGTH(req->input_buffer), strlen(POST_DATA)); in http_post_cb()
742 if (memcmp(EVBUFFER_DATA(req->input_buffer), POST_DATA, in http_post_cb()
745 fprintf(stdout, "Got :%s\n", EVBUFFER_DATA(req->input_buffer)); in http_post_cb()
[all …]
/external/chromium_org/media/base/
Daudio_buffer_converter.cc100 scoped_refptr<AudioBuffer> input_buffer = queued_inputs_.front(); in ProvideInput() local
104 input_buffer->frame_count() - last_input_buffer_offset_); in ProvideInput()
105 input_buffer->ReadFrames( in ProvideInput()
109 if (last_input_buffer_offset_ == input_buffer->frame_count()) { in ProvideInput()
/external/chromium_org/chrome/browser/profile_resetter/
Dbrandcode_config_fetcher.cc53 static void Parse(const std::string& input_buffer,
80 void XmlConfigParser::Parse(const std::string& input_buffer, in Parse() argument
92 input_buffer.c_str(), in Parse()
93 input_buffer.size()); in Parse()
/external/chromium_org/chrome/browser/extensions/api/idltest/
Didltest_api.cc15 const char* input_buffer = input->GetBuffer(); in CopyBinaryValueToIntegerList() local
17 output->Append(new base::FundamentalValue(input_buffer[i])); in CopyBinaryValueToIntegerList()
/external/chromium_org/third_party/brotli/src/brotli/enc/
Dencode.h52 const uint8_t* input_buffer,
86 const uint8_t* input_buffer,
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_emit.c121 unsigned input_buffer = src->vertex_buffer_index; in fetch_emit_prepare() local
133 input_buffer = draw->pt.nr_vertex_buffers; in fetch_emit_prepare()
139 key.element[i].input_buffer = input_buffer; in fetch_emit_prepare()
Ddraw_pt_fetch.c100 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()
111 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()
122 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_emit.c121 unsigned input_buffer = src->vertex_buffer_index; in fetch_emit_prepare() local
133 input_buffer = draw->pt.nr_vertex_buffers; in fetch_emit_prepare()
139 key.element[i].input_buffer = input_buffer; in fetch_emit_prepare()
Ddraw_pt_fetch.c100 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()
111 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()
122 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()

123