Home
last modified time | relevance | path

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

12

/external/libmojo/mojo/public/cpp/bindings/lib/
Dserialization.h78 void* input_buffer = in StructDeserializeImpl() local
84 bool need_copy = !IsAligned(input_buffer); in StructDeserializeImpl()
87 input_buffer = malloc(input.size()); in StructDeserializeImpl()
88 DCHECK(IsAligned(input_buffer)); in StructDeserializeImpl()
89 memcpy(input_buffer, &input.front(), input.size()); in StructDeserializeImpl()
92 ValidationContext validation_context(input_buffer, input.size(), 0); in StructDeserializeImpl()
94 if (DataType::Validate(input_buffer, &validation_context)) { in StructDeserializeImpl()
95 auto data = reinterpret_cast<DataType*>(input_buffer); in StructDeserializeImpl()
101 free(input_buffer); in StructDeserializeImpl()
/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/libdwfl/
Dgzip.c78 void *input_buffer; member
108 *state->whole = state->input_buffer; in fail()
111 free (state->input_buffer); in fail()
182 .input_buffer = NULL, in unzip()
190 state.input_buffer = malloc (READ_SIZE); in unzip()
191 if (unlikely (state.input_buffer == NULL)) in unzip()
194 ssize_t n = pread_retry (fd, state.input_buffer, READ_SIZE, start_offset); in unzip()
199 mapped = state.input_buffer; in unzip()
204 state.input_buffer = *state.whole; in unzip()
238 if (z.avail_in == 0 && state.input_buffer != NULL) 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()
Dtest_font_utils.h34 void LoadFile(const char* input_file_path, ByteVector* input_buffer);
/external/elfutils/tests/
Dmd5-sha1-test.c71 char input_buffer[1000]; \
72 memset (input_buffer, tests[I].sample[1], sizeof input_buffer); \
74 ALGO##_process_bytes (input_buffer, sizeof input_buffer, &ctx); \
/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/curl/lib/
Dkrb5.c159 gss_buffer_desc input_buffer, output_buffer, _gssresp, *gssresp; in krb5_auth() local
196 input_buffer.value = data->state.buffer; in krb5_auth()
197 input_buffer.length = snprintf(input_buffer.value, BUFSIZE, "%s@%s", in krb5_auth()
199 maj = gss_import_name(&min, &input_buffer, GSS_C_NT_HOSTBASED_SERVICE, in krb5_auth()
205 input_buffer.value); in krb5_auth()
/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()
Ddraw_vs_variant.c298 fetch.element[i].input_buffer = key->element[i].in.buffer; in draw_vs_create_variant_generic()
314 emit.element[i].input_buffer = 0; in draw_vs_create_variant_generic()
324 emit.element[i].input_buffer = 1; in draw_vs_create_variant_generic()
Ddraw_pt_emit.c97 hw_key.element[i].input_buffer = src_buffer; in draw_pt_emit_prepare()
Ddraw_pipe_vbuf.c243 hw_key.element[i].input_buffer = src_buffer; in vbuf_start_prim()
/external/webrtc/webrtc/common_video/libyuv/
Dscaler_unittest.cc308 uint8_t* input_buffer = new uint8_t[required_size]; in ComputeAvgSequencePSNR() local
318 if (fread(input_buffer, 1, required_size, input_file) != required_size) { in ComputeAvgSequencePSNR()
325 EXPECT_EQ(0, ConvertToI420(kI420, input_buffer, 0, 0, width, height, in ComputeAvgSequencePSNR()
334 delete [] input_buffer; in ComputeAvgSequencePSNR()
/external/libevent/include/event2/
Dhttp_struct.h106 struct evbuffer *input_buffer; /* read data */ member
/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate.h57 unsigned input_buffer:8; member
Dtranslate_sse.c1477 p->nr_buffers = MAX2(p->nr_buffers, key->element[i].input_buffer + 1); in translate_sse2_create()
1487 if (p->buffer_variant[j].buffer_index == key->element[i].input_buffer && in translate_sse2_create()
1493 p->buffer_variant[j].buffer_index = key->element[i].input_buffer; in translate_sse2_create()
/external/libevent/
Devrpc.c291 evbuffer_get_length(req->input_buffer) <= 0) in evrpc_request_cb()
310 rpc_state, req, req->input_buffer); in evrpc_request_cb()
357 rpc_state->request, req->input_buffer) == -1) { in evrpc_request_cb_closure()
884 ctx, req, req->input_buffer); in evrpc_reply_done()
933 res = ctx->reply_unmarshal(ctx->reply, req->input_buffer); in evrpc_reply_done_closure()
Dhttp.c915 evbuffer_remove_buffer(buf, req->input_buffer, (size_t)req->ntoread); in evhttp_handle_chunked_read()
920 evbuffer_drain(req->input_buffer, in evhttp_handle_chunked_read()
921 evbuffer_get_length(req->input_buffer)); in evhttp_handle_chunked_read()
988 evbuffer_add_buffer(req->input_buffer, buf); in evhttp_read_body()
999 evbuffer_remove_buffer(buf, req->input_buffer, n); in evhttp_read_body()
1013 if (evbuffer_get_length(req->input_buffer) > 0 && req->chunk_cb != NULL) { in evhttp_read_body()
1017 evbuffer_drain(req->input_buffer, in evhttp_read_body()
1018 evbuffer_get_length(req->input_buffer)); in evhttp_read_body()
3490 if ((req->input_buffer = evbuffer_new()) == NULL) { in evhttp_request_new()
3536 if (req->input_buffer != NULL) in evhttp_request_free()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_temporal_filter.c604 uint8_t *input_buffer[MAX_MB_PLANE]; in temporal_filter_iterate_c() local
607 for (i = 0; i < MAX_MB_PLANE; i++) input_buffer[i] = mbd->plane[i].pre[0].buf; in temporal_filter_iterate_c()
618 for (i = 0; i < MAX_MB_PLANE; i++) mbd->plane[i].pre[0].buf = input_buffer[i]; in temporal_filter_iterate_c()
/external/mesa3d/src/gallium/tests/unit/
Dtranslate_test.c147 key.element[0].input_buffer = 0; in main()
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_vbo.c292 transkey.element[j].input_buffer = vbi; in nv30_vertex_state_create()

12