Home
last modified time | relevance | path

Searched refs:infile (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/external/libjpeg-turbo/
Drdcolmap.c79 read_gif_map(j_decompress_ptr cinfo, FILE *infile) in read_gif_map() argument
88 if ((header[i] = getc(infile)) == EOF) in read_gif_map()
104 R = getc(infile); in read_gif_map()
105 G = getc(infile); in read_gif_map()
106 B = getc(infile); in read_gif_map()
121 pbm_getc(FILE *infile) in pbm_getc() argument
127 ch = getc(infile); in pbm_getc()
130 ch = getc(infile); in pbm_getc()
138 read_pbm_integer(j_decompress_ptr cinfo, FILE *infile) in read_pbm_integer() argument
149 ch = pbm_getc(infile); in read_pbm_integer()
[all …]
Drdppm.c75 pbm_getc(FILE *infile) in pbm_getc() argument
81 ch = getc(infile); in pbm_getc()
84 ch = getc(infile); in pbm_getc()
92 read_pbm_integer(j_compress_ptr cinfo, FILE *infile, unsigned int maxval) in read_pbm_integer() argument
103 ch = pbm_getc(infile); in read_pbm_integer()
112 while ((ch = pbm_getc(infile)) >= '0' && ch <= '9') { in read_pbm_integer()
139 FILE *infile = source->pub.input_file; in get_text_gray_row() local
147 *ptr++ = rescale[read_pbm_integer(cinfo, infile, maxval)]; in get_text_gray_row()
167 FILE *infile = source->pub.input_file; in get_text_gray_rgb_row() local
181 GRAY_RGB_READ_LOOP(read_pbm_integer(cinfo, infile, maxval), in get_text_gray_rgb_row()
[all …]
/external/vboot_reference/futility/
Dcmd_vbutil_key.c70 static int Pack(const char *infile, const char *outfile, uint64_t algorithm, in Pack() argument
76 if (!infile || !outfile) { in Pack()
81 pubkey = PublicKeyReadKeyb(infile, algorithm, version); in Pack()
91 privkey = PrivateKeyReadPem(infile, algorithm); in Pack()
101 VbExError("Unable to parse either .keyb or .pem from %s\n", infile); in Pack()
106 static int Unpack(const char *infile, const char *outfile) in Unpack() argument
111 if (!infile) { in Unpack()
116 pubkey = PublicKeyRead(infile); in Unpack()
118 printf("Public Key file: %s\n", infile); in Unpack()
138 privkey = PrivateKeyRead(infile); in Unpack()
[all …]
/external/lz4/ossfuzz/
Dstandaloneengine.c18 FILE *infile; in main() local
22 infile = fopen(argv[ii], "rb"); in main()
23 if(infile) in main()
31 fseek(infile, 0L, SEEK_END); in main()
32 buffer_len = ftell(infile); in main()
35 fseek(infile, 0L, SEEK_SET); in main()
42 fread(buffer, sizeof(uint8_t), buffer_len, infile); in main()
63 fclose(infile); in main()
64 infile = NULL; in main()
/external/python/cpython2/Lib/plat-mac/
Dapplesingle.py107 def decode(infile, outpath, resonly=False, verbose=False): argument
119 if not hasattr(infile, 'read'):
120 if isinstance(infile, Carbon.File.Alias):
121 infile = infile.ResolveAlias()[0]
124 if isinstance(infile, (Carbon.File.FSSpec, Carbon.File.FSRef)):
125 infile = infile.as_pathname()
127 if isinstance(infile, Carbon.File.FSRef):
128 infile = infile.as_pathname()
129 infile = open(infile, 'rb')
131 asfile = AppleSingle(infile, verbose=verbose)
/external/python/cpython3/Tools/scripts/
Dgenerate_token.py90 def make_h(infile, outfile='Include/token.h'): argument
91 tok_names, ERRORTOKEN, string_to_tok = load_tokens(infile)
102 print("%s regenerated from %s" % (outfile, infile))
161 def make_c(infile, outfile='Parser/token.c'): argument
162 tok_names, ERRORTOKEN, string_to_tok = load_tokens(infile)
186 print("%s regenerated from %s" % (outfile, infile))
197 def make_rst(infile, outfile='Doc/library/token-list.inc'): argument
198 tok_names, ERRORTOKEN, string_to_tok = load_tokens(infile)
210 print("%s regenerated from %s" % (outfile, infile))
243 def make_py(infile, outfile='Lib/token.py'): argument
[all …]
Dpysource.py54 infile = _open(fullpath)
55 if infile is None:
58 with infile:
59 line = infile.readline()
75 infile = _open(fullpath)
76 if infile is None:
79 with infile:
80 code = infile.read()
/external/bzip2/
Dformat.pl24 my $infile = shift;
26 die "Can't find file \"$infile\""
27 unless -f $infile;
29 if (! -r $infile) {
30 die "Can't read input $infile\n";
33 open( INFILE,"<$infile" ) or
34 die "Can't input $infile $!";
/external/elfutils/tests/
Drun-strip-reloc.sh28 infile=$1
35 echo "runtest $infile"
39 testrun ${abs_top_builddir}/src/strip -o $outfile1 -f $debugfile1 $infile ||
40 { echo "*** failure strip $infile"; status=1; }
43 -f $debugfile2 $infile ||
44 { echo "*** failure strip --reloc-debug-sections $infile"; status=1; }
48 { echo "*** failure readelf -a outfile1 $infile"; status=1; }
51 { echo "*** failure compare stripped files $infile"; status=1; }
58 { echo "*** failure --reloc-debug-sections not smaller $infile"; status=1; }
64 { echo "*** failure readelf -w debugfile1 $infile"; status=1; }
[all …]
Drun-strip-groups.sh45 infile=testfile58
46 outfile=$infile.stripped
47 dbgfile=$infile.debug
49 testfiles $infile
52 testrun ${abs_top_builddir}/src/strip -o $outfile -f $dbgfile $infile
53 testrun ${abs_top_builddir}/src/elflint -q $infile
Drun-compress-test.sh23 infile="$1"
24 uncompressedfile="${infile}.uncompressed"
27 echo "uncompress $infile -> $uncompressedfile"
28 testrun ${abs_top_builddir}/src/elfcompress -v -t none -o ${uncompressedfile} ${infile}
33 gnucompressedfile="${infile}.gnu"
43 gnuuncompressedfile="${infile}.gnu.uncompressed"
49 elfcompressedfile="${infile}.gabi"
59 elfuncompressedfile="${infile}.gabi.uncompressed"
/external/python/cpython3/Lib/test/test_json/
Dtest_tool.py94 infile = support.TESTFN
95 with open(infile, "w", encoding="utf-8") as fp:
96 self.addCleanup(os.remove, infile)
98 return infile
101 infile = self._create_infile()
102 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
115 infile = self._create_infile(data)
116 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
123 infile = self._create_infile()
125 rc, out, err = assert_python_ok('-m', 'json.tool', infile, outfile)
[all …]
/external/ImageMagick/PerlMagick/t/
Dsubroutines.pl172 my( $infile, $ref_8, $ref_16, $ref_32 ) = @_;
208 print( " testing reading from file \"", $infile, "\" ...\n");
211 $status=$image->ReadImage("$infile");
213 print "ReadImage $infile: $status\n";
217 print "ReadImage $infile: $status\n";
225 print "Image: $infile, signatures do not match.\n";
239 if (!($infile =~ /\.bz2$/) && !($infile =~ /\.gz$/) && !($infile =~ /\.Z$/))
243 if( open( FILE, "< $infile"))
254 print "BlobToImage $infile: $status\n";
258 print "ReadImage $infile: $status\n";
[all …]
/external/python/cpython2/Lib/json/tests/
Dtest_tool.py49 infile = test_support.TESTFN
50 with open(infile, "w") as fp:
51 self.addCleanup(os.remove, infile)
53 return infile
56 infile = self._create_infile()
57 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
62 infile = self._create_infile()
64 rc, out, err = assert_python_ok('-m', 'json.tool', infile, outfile)
/external/python/cpython2/Tools/scripts/
Dpysource.py54 infile = _open(fullpath)
55 if infile is None:
58 line = infile.readline()
59 infile.close()
75 infile = _open(fullpath)
76 if infile is None:
79 code = infile.read()
80 infile.close()
/external/brotli/python/
Dbro.py122 if options.infile:
123 if not os.path.isfile(options.infile):
124 parser.error('file "%s" not found' % options.infile)
125 with open(options.infile, 'rb') as infile:
126 data = infile.read()
131 infile = get_binary_stdio('stdin')
132 data = infile.read()
153 'bro: error: %s: %s' % (e, options.infile or 'sys.stdin'))
/external/python/cpython2/Lib/
Dshlex.py23 def __init__(self, instream=None, infile=None, posix=False): argument
28 self.infile = infile
31 self.infile = None
69 self.filestack.appendleft((self.infile, self.instream, self.lineno))
70 self.infile = newfile
75 print 'shlex: pushing to file %s' % (self.infile,)
82 (self.infile, self.instream, self.lineno) = self.filestack.popleft()
253 if isinstance(self.infile, basestring) and not os.path.isabs(newfile):
254 newfile = os.path.join(os.path.dirname(self.infile), newfile)
257 def error_leader(self, infile=None, lineno=None): argument
[all …]
/external/python/cpython3/Programs/
D_freeze_importlib.c38 FILE *infile = NULL, *outfile = NULL; in main() local
54 infile = fopen(inpath, "rb"); in main()
55 if (infile == NULL) { in main()
59 if (_Py_fstat_noraise(fileno(infile), &stat)) { in main()
69 n = fread(text, 1, text_size, infile); in main()
70 fclose(infile); in main()
71 infile = NULL; in main()
158 if (infile) in main()
159 fclose(infile); in main()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/ceva/
Daudio_provider.cc63 FILE* infile; variable
68 infile = fopen(filename, "rb"); in init_audio()
69 if (!infile) { in init_audio()
76 fread(mem, 1, 1, infile); in init_audio()
85 if (fread((char*)mem, 1, 2, infile) == 2) { in read_samples()
89 fclose(infile); in read_samples()
90 infile = fopen(filename, "rb"); in read_samples()
/external/python/cpython3/Lib/
Dshlex.py21 def __init__(self, instream=None, infile=None, posix=False, argument
27 self.infile = infile
30 self.infile = None
82 self.filestack.appendleft((self.infile, self.instream, self.lineno))
83 self.infile = newfile
88 print('shlex: pushing to file %s' % (self.infile,))
95 (self.infile, self.instream, self.lineno) = self.filestack.popleft()
284 if isinstance(self.infile, str) and not os.path.isabs(newfile):
285 newfile = os.path.join(os.path.dirname(self.infile), newfile)
288 def error_leader(self, infile=None, lineno=None): argument
[all …]
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest1.c55 static char infile[LEN]; /* Input file. Default "infile" */ variable
87 strcpy(infile, "infile"); /* Default input file */ in main()
109 strcpy(infile, optarg); in main()
122 int fd = open(infile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
129 fd1 = SAFE_OPEN(cleanup, infile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
157 if (filecmp(infile, outfile) != 0) { in main()
159 infile, outfile); in main()
/external/python/cpython2/Doc/library/
Dmimify.rst32 .. function:: mimify(infile, outfile)
34 Copy the message in *infile* to *outfile*, converting parts to quoted-printable
35 and adding MIME mail headers when necessary. *infile* and *outfile* can be file
36 objects (actually, any object that has a :meth:`readline` method (for *infile*)
38 *infile* and *outfile* are both strings, they may have the same value.
41 .. function:: unmimify(infile, outfile[, decode_base64])
43 Copy the message in *infile* to *outfile*, decoding all quoted-printable parts.
44 *infile* and *outfile* can be file objects (actually, any object that has a
45 :meth:`readline` method (for *infile*) or a :meth:`write` method (for
46 *outfile*)) or strings naming the files. If *infile* and *outfile* are both
[all …]
/external/libcups/ppdc/
Dppdmerge.cxx43 cups_file_t *infile, // Input file in main() local
84 if ((infile = cupsFileOpen(argv[i], "r")) == NULL) in main()
92 if ((ppd = ppdOpen2(infile)) == NULL) in main()
104 cupsFileRewind(infile); in main()
109 while (cupsFileGets(infile, line, sizeof(line))) in main()
118 cupsFileClose(infile); in main()
128 cupsFileClose(infile); in main()
169 cupsFileClose(infile); in main()
197 infile = cupsFileOpen(inname, "r"); in main()
210 cupsFileGets(infile, line, sizeof(line)); in main()
[all …]
/external/python/cpython2/Lib/json/
Dtool.py18 infile = sys.stdin
21 infile = open(sys.argv[1], 'rb')
24 infile = open(sys.argv[1], 'rb')
28 with infile:
30 obj = json.load(infile)
/external/ImageMagick/scripts/
Dformat_c_api_docs237 my($infile, $outfile) = @_;
239 open( IN, "<$infile" ) || die("Failed to open \"$infile\" for read\n" );
329 my($infile, $tmpfile) = @_;
335 open( IN, "<$infile" ) || die("Failed to open \"$infile\" for read\n" );
471 my($infile, $outfile) = @_;
478 open( IN, "<$infile" ) || die("Failed to open \"$infile\" for read\n" );

12345678910>>...12