Home
last modified time | relevance | path

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

12345678910

/external/libjpeg-turbo/
Drdcolmap.c80 read_gif_map(j_decompress_ptr cinfo, FILE *infile) in read_gif_map() argument
89 if ((header[i] = getc(infile)) == EOF) in read_gif_map()
105 R = getc(infile); in read_gif_map()
106 G = getc(infile); in read_gif_map()
107 B = getc(infile); in read_gif_map()
122 pbm_getc(FILE *infile) in pbm_getc() argument
128 ch = getc(infile); in pbm_getc()
131 ch = getc(infile); in pbm_getc()
139 read_pbm_integer(j_decompress_ptr cinfo, FILE *infile) in read_pbm_integer() argument
150 ch = pbm_getc(infile); in read_pbm_integer()
[all …]
Drdppm.c85 pbm_getc(FILE *infile) in pbm_getc() argument
91 ch = getc(infile); in pbm_getc()
94 ch = getc(infile); in pbm_getc()
102 read_pbm_integer(j_compress_ptr cinfo, FILE *infile, unsigned int maxval) in read_pbm_integer() argument
113 ch = pbm_getc(infile); in read_pbm_integer()
122 while ((ch = pbm_getc(infile)) >= '0' && ch <= '9') { in read_pbm_integer()
150 FILE *infile = source->pub.input_file; in get_text_gray_row() local
158 *ptr++ = rescale[read_pbm_integer(cinfo, infile, maxval)]; in get_text_gray_row()
178 FILE *infile = source->pub.input_file; in get_text_gray_rgb_row() local
192 GRAY_RGB_READ_LOOP(read_pbm_integer(cinfo, infile, maxval), in get_text_gray_rgb_row()
[all …]
/external/u-boot/tools/dtoc/
Dtest_dtoc.py124 with open(output) as infile:
125 lines = infile.read().splitlines()
129 with open(output) as infile:
130 lines = infile.read().splitlines()
138 with open(output) as infile:
139 data = infile.read()
162 with open(output) as infile:
163 data = infile.read()
240 with open(output) as infile:
241 data = infile.read()
[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/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/Lib/test/test_json/
Dtest_tool.py71 infile = support.TESTFN
72 with open(infile, "w") as fp:
73 self.addCleanup(os.remove, infile)
75 return infile
78 infile = self._create_infile()
79 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
85 infile = self._create_infile()
87 rc, out, err = assert_python_ok('-m', 'json.tool', infile, outfile)
102 infile = self._create_infile()
103 rc, out, err = assert_python_ok('-m', 'json.tool', '--sort-keys', 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/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/ImageMagick/PerlMagick/t/
Dsubroutines.pl170 my( $infile, $ref_8, $ref_16, $ref_32 ) = @_;
206 print( " testing reading from file \"", $infile, "\" ...\n");
209 $status=$image->ReadImage("$infile");
211 print "ReadImage $infile: $status\n";
215 print "ReadImage $infile: $status\n";
223 print "Image: $infile, signatures do not match.\n";
237 if (!($infile =~ /\.bz2$/) && !($infile =~ /\.gz$/) && !($infile =~ /\.Z$/))
241 if( open( FILE, "< $infile"))
252 print "BlobToImage $infile: $status\n";
256 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/python/cpython3/Tools/scripts/
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/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/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/cpython3/Programs/
D_freeze_importlib.c36 FILE *infile = NULL, *outfile = NULL; in main() local
52 infile = fopen(inpath, "rb"); in main()
53 if (infile == NULL) { in main()
57 if (_Py_fstat_noraise(fileno(infile), &status)) { in main()
67 n = fread(text, 1, text_size, infile); in main()
68 fclose(infile); in main()
69 infile = NULL; in main()
156 if (infile) in main()
157 fclose(infile); in main()
/external/python/cpython3/Lib/
Dshlex.py21 def __init__(self, instream=None, infile=None, posix=False, argument
27 self.infile = infile
30 self.infile = None
78 self.filestack.appendleft((self.infile, self.instream, self.lineno))
79 self.infile = newfile
84 print('shlex: pushing to file %s' % (self.infile,))
91 (self.infile, self.instream, self.lineno) = self.filestack.popleft()
279 if isinstance(self.infile, str) and not os.path.isabs(newfile):
280 newfile = os.path.join(os.path.dirname(self.infile), newfile)
283 def error_leader(self, infile=None, lineno=None): argument
[all …]
/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/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/libaom/libaom/examples/
Dtwopass_encoder.c119 static aom_fixed_buf_t pass0(aom_image_t *raw, FILE *infile, in pass0() argument
130 while (aom_img_read(raw, infile) && frame_count < limit) { in pass0()
145 static void pass1(aom_image_t *raw, FILE *infile, const char *outfile_name, in pass1() argument
164 while (aom_img_read(raw, infile) && frame_count < limit) { in pass1()
183 FILE *infile = NULL; in main() local
232 if (!(infile = fopen(infile_arg, "rb"))) in main()
237 stats = pass0(&raw, infile, encoder, &cfg, limit); in main()
240 rewind(infile); in main()
243 pass1(&raw, infile, outfile_arg, encoder, &cfg, limit); in main()
247 fclose(infile); in main()
/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" );
/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/selinux/libselinux/src/
Dmatchmediacon.c17 FILE *infile; in matchmediacon() local
21 if ((infile = fopen(path, "re")) == NULL) in matchmediacon()
23 while (!feof_unlocked(infile)) { in matchmediacon()
24 if (!fgets_unlocked(current_line, sizeof(current_line), infile)) { in matchmediacon()
50 fclose(infile); in matchmediacon()
/external/libvpx/libvpx/examples/
Dtwopass_encoder.c123 static vpx_fixed_buf_t pass0(vpx_image_t *raw, FILE *infile, in pass0() argument
134 while (vpx_img_read(raw, infile)) { in pass0()
152 static void pass1(vpx_image_t *raw, FILE *infile, const char *outfile_name, in pass1() argument
170 while (vpx_img_read(raw, infile)) { in pass1()
191 FILE *infile = NULL; in main() local
238 if (!(infile = fopen(infile_arg, "rb"))) in main()
243 stats = pass0(&raw, infile, encoder, &cfg, max_frames); in main()
246 rewind(infile); in main()
249 pass1(&raw, infile, outfile_arg, encoder, &cfg, max_frames); in main()
253 fclose(infile); in main()

12345678910