Home
last modified time | relevance | path

Searched refs:input_file (Results 1 – 25 of 101) sorted by relevance

12345

/external/vboot_reference/host/lib/
Dfile_keys.c21 uint8_t* BufferFromFile(const char* input_file, uint64_t* len) { in BufferFromFile() argument
26 if ((fd = open(input_file, O_RDONLY)) == -1) { in BufferFromFile()
27 VBDEBUG(("Couldn't open file %s\n", input_file)); in BufferFromFile()
32 VBDEBUG(("Couldn't stat file %s\n", input_file)); in BufferFromFile()
39 VbExError("Couldn't allocate %ld bytes for file %s\n", *len, input_file); in BufferFromFile()
44 VBDEBUG(("Couldn't read file %s into a buffer\n", input_file)); in BufferFromFile()
52 RSAPublicKey* RSAPublicKeyFromFile(const char* input_file) { in RSAPublicKeyFromFile() argument
55 uint8_t* buf = BufferFromFile(input_file, &len); in RSAPublicKeyFromFile()
62 uint8_t* DigestFile(char* input_file, int sig_algorithm) { in DigestFile() argument
68 if( (input_fd = open(input_file, O_RDONLY)) == -1 ) { in DigestFile()
[all …]
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc44 FILE* input_file = NULL; in LoadFile() local
46 fopen_s(&input_file, input_file_path, "rb"); in LoadFile()
48 input_file = fopen(input_file_path, "rb"); in LoadFile()
50 if (input_file == NULL) { in LoadFile()
53 fseek(input_file, 0, SEEK_END); in LoadFile()
54 size_t file_size = ftell(input_file); in LoadFile()
55 fseek(input_file, 0, SEEK_SET); in LoadFile()
57 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
58 fclose(input_file); in LoadFile()
/external/sfntly/cpp/src/test/
Dtest_font_utils.cc67 FILE* input_file = NULL; in LoadFile() local
69 fopen_s(&input_file, input_file_path, "rb"); in LoadFile()
71 input_file = fopen(input_file_path, "rb"); in LoadFile()
73 EXPECT_NE(input_file, reinterpret_cast<FILE*>(NULL)); in LoadFile()
74 fseek(input_file, 0, SEEK_END); in LoadFile()
75 size_t file_size = ftell(input_file); in LoadFile()
76 fseek(input_file, 0, SEEK_SET); in LoadFile()
78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
80 fclose(input_file); in LoadFile()
/external/sfntly/cpp/src/sample/subsetter/
Dsubset_util.cc46 FILE* input_file = fopen(input_file_path, "rb"); in Subset() local
47 if (input_file == NULL) { in Subset()
51 fseek(input_file, 0, SEEK_END); in Subset()
52 size_t file_size = ftell(input_file); in Subset()
53 fseek(input_file, 0, SEEK_SET); in Subset()
55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); in Subset()
57 fclose(input_file); in Subset()
/external/webrtc/webrtc/tools/frame_analyzer/
Dvideo_quality_analysis.cc102 FILE* input_file = fopen(i420_file_name, "rb"); in ExtractFrameFromYuvFile() local
103 if (input_file == NULL) { in ExtractFrameFromYuvFile()
110 fseek(input_file, offset, SEEK_SET); in ExtractFrameFromYuvFile()
112 size_t bytes_read = fread(result_frame, 1, frame_size, input_file); in ExtractFrameFromYuvFile()
114 ferror(input_file)) { in ExtractFrameFromYuvFile()
119 fclose(input_file); in ExtractFrameFromYuvFile()
132 FILE* input_file = fopen(y4m_file_name, "rb"); in ExtractFrameFromY4mFile() local
133 if (input_file == NULL) { in ExtractFrameFromY4mFile()
145 fread(frame_header, 1, Y4M_FILE_HEADER_MAX_SIZE, input_file); in ExtractFrameFromY4mFile()
146 if (bytes_read != static_cast<size_t>(frame_size) && ferror(input_file)) { in ExtractFrameFromY4mFile()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Disac_unittest.cc44 FILE* input_file; in SetUp() local
47 input_file = fopen(file_name.c_str(), "rb"); in SetUp()
48 ASSERT_TRUE(input_file != NULL); in SetUp()
51 kIsacNumberOfSamples, input_file))); in SetUp()
52 fclose(input_file); in SetUp()
53 input_file = NULL; in SetUp()
/external/webrtc/webrtc/voice_engine/test/auto_test/
Dvoe_conference_test.cc53 const std::string input_file = in TEST() local
61 unsigned int id_1 = trans.AddStream(input_file, kInputFormat); in TEST()
62 unsigned int id_2 = trans.AddStream(input_file, kInputFormat); in TEST()
130 const std::string input_file = in TEST() local
142 unsigned int id_1 = trans.AddStream(input_file, kInputFormat); in TEST()
143 unsigned int id_2 = trans.AddStream(input_file, kInputFormat); in TEST()
144 unsigned int id_3 = trans.AddStream(input_file, kInputFormat); in TEST()
/external/eigen/bench/btl/generic_bench/utils/
Dxy_file.hh32 std::ifstream input_file (filename.c_str(),std::ios::in); in read_xy_file() local
34 if (!input_file){ in read_xy_file()
45 while (input_file >> size >> mflops ){ in read_xy_file()
52 input_file.close(); in read_xy_file()
/external/libjpeg-turbo/
Drdppm.c143 FILE * infile = source->pub.input_file; in get_text_gray_row()
162 FILE * infile = source->pub.input_file; in get_text_rgb_row()
188 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_scaled_gray_row()
209 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_scaled_rgb_row()
231 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_raw_row()
247 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_word_gray_row()
271 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_word_rgb_row()
303 if (getc(source->pub.input_file) != 'P') in start_input_ppm()
306 c = getc(source->pub.input_file); /* subformat discriminator character */ in start_input_ppm()
321 w = read_pbm_integer(cinfo, source->pub.input_file, 65535); in start_input_ppm()
[all …]
Dcjpeg.c496 FILE * input_file; in main() local
564 if ((input_file = fopen(argv[file_index], READ_BINARY)) == NULL) { in main()
570 input_file = read_stdin(); in main()
589 src_mgr = select_file_type(&cinfo, input_file); in main()
590 src_mgr->input_file = input_file; in main()
624 if (input_file != stdin) in main()
625 fclose(input_file); in main()
Dcdjpeg.c113 FILE * input_file = stdin; in read_stdin() local
119 if ((input_file = fdopen(fileno(stdin), READ_BINARY)) == NULL) { in read_stdin()
124 return input_file; in read_stdin()
/external/valgrind/callgrind/
Dcallgrind_annotate.in194 my $input_file = "";
303 if ($input_file eq "") {
304 $input_file = $arg;
319 if ($input_file eq "") {
320 $input_file = (<callgrind.out*>)[0];
321 if (!defined $input_file) {
322 $input_file = (<cachegrind.out*>)[0];
325 (defined $input_file) or die($usage);
326 print "Reading data from '$input_file'...\n";
399 open(INPUTFILE, "< $input_file") || die "File $input_file not opened\n";
[all …]
/external/vboot_reference/host/lib/include/
Dfile_keys.h19 uint8_t* BufferFromFile(const char* input_file, uint64_t* len);
26 RSAPublicKey* RSAPublicKeyFromFile(const char* input_file);
32 uint8_t* DigestFile(char* input_file, int sig_algorithm);
/external/eigen/bench/btl/data/
Dregularize.cxx111 ifstream input_file (filename.c_str(),ios::in) ; in read_xy_file() local
113 if (!input_file){ in read_xy_file()
122 while (input_file >> size >> mflops ){ in read_xy_file()
129 input_file.close(); in read_xy_file()
Dsmooth.cxx178 ifstream input_file (filename.c_str(),ios::in) ; in read_xy_file() local
180 if (!input_file){ in read_xy_file()
189 while (input_file >> size >> mflops ){ in read_xy_file()
196 input_file.close(); in read_xy_file()
/external/autotest/client/site_tests/firmware_TouchMTB/
Dnoise_summary.py211 input_file = sys.argv[1]
212 if '.html' not in input_file:
219 directory = os.path.dirname(input_file)
221 os.path.splitext(os.path.basename(input_file))[0]
225 html_file = open(input_file)
227 print '%s could not be found.' % input_file
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dfile_before_streaming_test.cc44 FILE* input_file = fopen(input_filename_.c_str(), "wb"); in GenerateInputFile() local
45 ASSERT_TRUE(input_file != NULL); in GenerateInputFile()
47 ASSERT_EQ(1u, fwrite(&kInputValue, sizeof(kInputValue), 1, input_file)); in GenerateInputFile()
49 ASSERT_EQ(0, fclose(input_file)); in GenerateInputFile()
/external/wpa_supplicant_8/wpa_supplicant/utils/
Dlog2pcap.py34 input_file = open(input, 'r') variable
40 for line in input_file:
53 input_file.close()
/external/webrtc/webrtc/tools/converter/
Dconverter.cc137 FILE* input_file = fopen(input_file_name, "rb"); in ReadRGBAFrame() local
138 if (input_file == NULL) { in ReadRGBAFrame()
144 size_t nbr_read = fread(buffer, 1, input_frame_size, input_file); in ReadRGBAFrame()
145 fclose(input_file); in ReadRGBAFrame()
/external/webrtc/webrtc/modules/audio_processing/agc/
Dagc_unittest.cc54 FILE* input_file = fopen( in RunAgc() local
56 ASSERT_TRUE(input_file != NULL); in RunAgc()
71 input_file)); in RunAgc()
83 fclose(input_file); in RunAgc()
/external/chromium-trace/catapult/third_party/beautifulsoup4/scripts/
Ddemonstrate_parser_differences.py70 input_file = sys.stdin variable
76 input_file = open(filename) variable
78 for markup in input_file:
/external/vboot_reference/utility/include/
Dverify_data.h13 RSAPublicKey* read_RSAkey(char *input_file);
18 uint8_t* read_signature(char *input_file, int len);
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/
Dcng_unittest.cc52 FILE* input_file; in SetUp() local
55 input_file = fopen(file_name.c_str(), "rb"); in SetUp()
56 ASSERT_TRUE(input_file != NULL); in SetUp()
58 640, input_file))); in SetUp()
59 fclose(input_file); in SetUp()
60 input_file = NULL; in SetUp()
/external/webrtc/webrtc/modules/video_processing/test/
Ddeflickering_test.cc36 const std::string input_file = in TEST_F() local
38 source_file_ = fopen(input_file.c_str(), "rb"); in TEST_F()
39 ASSERT_TRUE(source_file_ != NULL) << "Cannot read input file: " << input_file in TEST_F()
/external/libvpx/libvpx/test/
Dsimple_decoder.sh31 local input_file="$1"
40 eval "${VPX_TEST_PREFIX}" "${decoder}" "${input_file}" "${output_file}" \

12345