/third_party/python/Lib/test/ |
D | test_aifc.py | 168 self.fout = aifc.open(TESTFN, 'wb') 188 fout = aifc.open(io.BytesIO(), 'wb') 189 fout.setnchannels(1) 190 fout.setframerate(1) 191 fout.setcomptype(comptype, b'') 192 fout.close() 193 self.assertEqual(fout.getsampwidth(), 2) 194 fout.initfp(None) 197 fout = aifc.open(io.BytesIO(), 'wb') 198 self.assertEqual(fout.getmarkers(), None) [all …]
|
D | audiotests.py | 20 self.f = self.fout = None 25 if self.fout is not None: 26 self.fout.close() 56 f = self.fout = self.module.open(testfile, 'wb') 269 fout = self.fout = self.module.open(testfile, 'wb') 272 fout.close() 274 fout.close() # do nothing 302 fout = self.fout = self.module.open(TESTFN, 'wb') 303 fout.setparams(f.getparams()) 308 fout.writeframes(f.readframes(i)) [all …]
|
D | test_uu.py | 188 with open(self.tmpout, 'wb') as fout: 189 uu.encode(fin, fout, self.tmpin, mode=0o644) 191 with open(self.tmpout, 'rb') as fout: 192 s = fout.read() 197 with open(self.tmpout, 'rb') as fout: 198 s = fout.read()
|
/third_party/flutter/skia/third_party/externals/libwebp/imageio/ |
D | image_enc.c | 207 int WebPWritePNG(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePNG() argument 208 if (fout == NULL || buffer == NULL) return 0; in WebPWritePNG() 220 static int WritePPMPAM(FILE* fout, const WebPDecBuffer* const buffer, in WritePPMPAM() argument 222 if (fout == NULL || buffer == NULL) { in WritePPMPAM() 235 fprintf(fout, "P7\nWIDTH %u\nHEIGHT %u\nDEPTH 4\nMAXVAL 255\n" in WritePPMPAM() 238 fprintf(fout, "P6\n%u %u\n255\n", width, height); in WritePPMPAM() 241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM() 250 int WebPWritePPM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePPM() argument 251 return WritePPMPAM(fout, buffer, 0); in WebPWritePPM() 254 int WebPWritePAM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePAM() argument [all …]
|
D | image_enc.h | 64 int WebPWritePPM(FILE* fout, const struct WebPDecBuffer* const buffer); 67 int WebPWritePAM(FILE* fout, const struct WebPDecBuffer* const buffer); 70 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer); 73 int WebPWriteBMP(FILE* fout, const struct WebPDecBuffer* const buffer); 76 int WebPWriteTIFF(FILE* fout, const struct WebPDecBuffer* const buffer); 79 int WebPWriteAlphaPlane(FILE* fout, const struct WebPDecBuffer* const buffer); 84 int WebPWritePGM(FILE* fout, const struct WebPDecBuffer* const buffer); 87 int WebPWriteYUV(FILE* fout, const struct WebPDecBuffer* const buffer); 90 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer);
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | image_enc.c | 207 int WebPWritePNG(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePNG() argument 208 if (fout == NULL || buffer == NULL) return 0; in WebPWritePNG() 220 static int WritePPMPAM(FILE* fout, const WebPDecBuffer* const buffer, in WritePPMPAM() argument 222 if (fout == NULL || buffer == NULL) { in WritePPMPAM() 235 fprintf(fout, "P7\nWIDTH %u\nHEIGHT %u\nDEPTH 4\nMAXVAL 255\n" in WritePPMPAM() 238 fprintf(fout, "P6\n%u %u\n255\n", width, height); in WritePPMPAM() 241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM() 250 int WebPWritePPM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePPM() argument 251 return WritePPMPAM(fout, buffer, 0); in WebPWritePPM() 254 int WebPWritePAM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePAM() argument [all …]
|
D | image_enc.h | 64 int WebPWritePPM(FILE* fout, const struct WebPDecBuffer* const buffer); 67 int WebPWritePAM(FILE* fout, const struct WebPDecBuffer* const buffer); 70 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer); 73 int WebPWriteBMP(FILE* fout, const struct WebPDecBuffer* const buffer); 76 int WebPWriteTIFF(FILE* fout, const struct WebPDecBuffer* const buffer); 79 int WebPWriteAlphaPlane(FILE* fout, const struct WebPDecBuffer* const buffer); 84 int WebPWritePGM(FILE* fout, const struct WebPDecBuffer* const buffer); 87 int WebPWriteYUV(FILE* fout, const struct WebPDecBuffer* const buffer); 90 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer);
|
/third_party/jsoncpp/test/ |
D | pyjsontestrunner.py | 25 def valueTreeToString(fout, value, path = '.'): argument 28 fout.write('%s={}\n' % path) 33 valueTreeToString(fout, value[name], path + suffix + name) 35 fout.write('%s=[]\n' % path) 37 valueTreeToString(fout, childValue, path + '[%d]' % index) 39 fout.write('%s="%s"\n' % (path,value)) 41 fout.write('%s=%d\n' % (path,value)) 43 fout.write('%s=%.16g\n' % (path,value)) 45 fout.write('%s=true\n' % path) 47 fout.write('%s=false\n' % path) [all …]
|
/third_party/skia/third_party/externals/brotli/research/ |
D | brotli_decoder.c | 17 FILE* fout; member 25 ctx->fout = 0; in init() 35 if (ctx->fout) fclose(ctx->fout); in cleanup() 56 ctx.fout = fdopen(STDOUT_FILENO, "wb"); in main() 57 if (!ctx.fout) fail(&ctx, "can't open output file"); in main() 74 fwrite(ctx.output_buffer, 1, BUFFER_SIZE, ctx.fout); in main() 75 if (ferror(ctx.fout)) break; in main() 85 fwrite(ctx.output_buffer, 1, next_out - ctx.output_buffer, ctx.fout); in main() 87 if ((result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) || ferror(ctx.fout)) { in main()
|
D | find_opt_references.cc | 77 int right_lcp, FILE* fout) { in PrintReference() argument 86 fputc(1, fout); in PrintReference() 87 fwrite(&idx, sizeof(int), 1, fout); // Position in input. in PrintReference() 88 fwrite(&dist, sizeof(int), 1, fout); // Backward distance. in PrintReference() 164 void ProcessEntries(entry_type* entries, size_t size, FILE* fout) { in ProcessEntries() argument 188 fputc(1, fout); in ProcessEntries() 189 fwrite(&idx, sizeof(int), 1, fout); // Position in input. in ProcessEntries() 190 fwrite(&dist, sizeof(int), 1, fout); // Backward distance. in ProcessEntries() 205 FILE* fout = fopen(argv[2], "w"); in main() local 242 Fn print = std::bind(PrintReference, _1, _2, _3, _4, _5, _6, _7, _8, fout); in main() [all …]
|
D | draw_histogram.cc | 158 void DrawPixels(uint8_t** pixel, FILE* fout) { in DrawPixels() argument 162 fprintf(fout, "P5\n%d %d\n255\n", width, height); in DrawPixels() 164 fwrite(pixel[i], 1, width, fout); in DrawPixels() 179 FILE* fout = fopen(argv[2], "wb"); in main() local 181 if (fin != nullptr && fout != nullptr) { in main() 193 DrawPixels(pixel, fout); in main() 197 if (fout) fclose(fout); in main()
|
/third_party/mesa3d/src/util/ |
D | os_misc.c | 82 static FILE *fout = NULL; in os_log_message() local 84 if (!fout) { in os_log_message() 97 fout = fopen(filename, mode); in os_log_message() 100 if (!fout) in os_log_message() 101 fout = stderr; in os_log_message() 108 fputs(message, fout); in os_log_message() 109 fflush(fout); in os_log_message() 111 else if (fout != stderr) { in os_log_message() 112 fputs(message, fout); in os_log_message() 113 fflush(fout); in os_log_message() [all …]
|
/third_party/jsoncpp/src/jsontestrunner/ |
D | main.cpp | 73 static void printValueTree(FILE* fout, Json::Value& value, in printValueTree() argument 76 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); in printValueTree() 80 fprintf(fout, "%s=null\n", path.c_str()); in printValueTree() 83 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree() 87 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree() 91 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree() 95 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); in printValueTree() 98 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); in printValueTree() 101 fprintf(fout, "%s=[]\n", path.c_str()); in printValueTree() 106 printValueTree(fout, value[index], path + buffer); in printValueTree() [all …]
|
/third_party/glslang/Test/ |
D | spv.intOps.vert | 20 out vec4 fout; 26 fout = vec4(0.0); 45 fout.xyz += frexp(v3, i3out); 48 fout.x += frexp(v1, i1out); 51 fout.xy += ldexp(v2, i2); 52 fout.x += ldexp(v1, i1); 70 fout += unpackUnorm4x8(u1); 71 fout += unpackSnorm4x8(u1);
|
/third_party/glslang/Test/baseResults/ |
D | spv.intOps.vert.out | 14 Name 21 "fout" 43 Decorate 21(fout) Location 2 73 21(fout): 20(ptr) Variable Output 137 Store 21(fout) 23 211 114: 19(fvec4) Load 21(fout) 214 118: 117(ptr) AccessChain 21(fout) 16 217 120: 117(ptr) AccessChain 21(fout) 41 220 123: 117(ptr) AccessChain 21(fout) 122 241 145: 117(ptr) AccessChain 21(fout) 16 244 148: 117(ptr) AccessChain 21(fout) 16 [all …]
|
/third_party/ffmpeg/doc/examples/ |
D | vaapi_encode.c | 74 static int encode_write(AVCodecContext *avctx, AVFrame *frame, FILE *fout) in encode_write() argument 92 ret = fwrite(enc_pkt->data, enc_pkt->size, 1, fout); in encode_write() 105 FILE *fin = NULL, *fout = NULL; in main() local 124 if (!(fout = fopen(argv[4], "w+b"))) { in main() 200 if ((err = (encode_write(avctx, hw_frame, fout))) < 0) { in main() 209 err = encode_write(avctx, NULL, fout); in main() 216 if (fout) in main() 217 fclose(fout); in main()
|
/third_party/mbedtls/programs/pkey/ |
D | dh_genprime.c | 75 FILE *fout; in main() local 164 if( ( fout = fopen( "dh_prime.txt", "wb+" ) ) == NULL ) in main() 170 if( ( ret = mbedtls_mpi_write_file( "P = ", &P, 16, fout ) != 0 ) || in main() 171 ( ret = mbedtls_mpi_write_file( "G = ", &G, 16, fout ) != 0 ) ) in main() 174 fclose( fout ); in main() 179 fclose( fout ); in main()
|
/third_party/optimized-routines/math/test/rtest/ |
D | semi.c | 489 char *test_modf(uint32 *x, uint32 *fout, uint32 *iout) { in test_modf() argument 498 fout[0] = iout[0] = x[0]; in test_modf() 499 fout[1] = iout[1] = x[1]; in test_modf() 507 fout[0] = sign; in test_modf() 508 fout[1] = 0; in test_modf() 512 fout[0] = x[0]; in test_modf() 513 fout[1] = x[1]; in test_modf() 521 fout[0] = sign | (ex << 20) | (fh & 0xFFFFF); in test_modf() 522 fout[1] = fl; in test_modf() 526 char *test_modff(uint32 *x, uint32 *fout, uint32 *iout) { in test_modff() argument [all …]
|
/third_party/mbedtls/programs/aes/ |
D | crypt_and_hash.c | 87 FILE *fkey, *fin = NULL, *fout = NULL; in main() local 168 if( ( fout = fopen( argv[3], "wb+" ) ) == NULL ) in main() 307 if( fwrite( IV, 1, 16, fout ) != 16 ) in main() 400 if( fwrite( output, 1, olen, fout ) != olen ) in main() 418 if( fwrite( output, 1, olen, fout ) != olen ) in main() 433 … if( fwrite( digest, 1, mbedtls_md_get_size( md_info ), fout ) != mbedtls_md_get_size( md_info ) ) in main() 576 if( fwrite( output, 1, olen, fout ) != olen ) in main() 619 if( fwrite( output, 1, olen, fout ) != olen ) in main() 631 if( fout ) in main() 632 fclose( fout ); in main()
|
/third_party/flutter/skia/third_party/externals/zlib/contrib/minizip/ |
D | miniunz.c | 322 FILE *fout=NULL; local 411 fout=FOPEN_FUNC(write_filename,"wb"); 413 if ((fout==NULL) && ((*popt_extract_without_path)==0) && 420 fout=FOPEN_FUNC(write_filename,"wb"); 423 if (fout==NULL) 429 if (fout!=NULL) 442 if (fwrite(buf,err,1,fout)!=1) 450 if (fout) 451 fclose(fout); 484 FILE* fout=NULL; local
|
/third_party/skia/third_party/externals/zlib/contrib/minizip/ |
D | miniunz.c | 322 FILE *fout=NULL; local 411 fout=FOPEN_FUNC(write_filename,"wb"); 413 if ((fout==NULL) && ((*popt_extract_without_path)==0) && 420 fout=FOPEN_FUNC(write_filename,"wb"); 423 if (fout==NULL) 429 if (fout!=NULL) 442 if (fwrite(buf,err,1,fout)!=1) 450 if (fout) 451 fclose(fout); 484 FILE* fout=NULL; local
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | LLVMAsm.cpp | 88 std::ofstream fout(filename); in fixupAsmFile() local 91 fout << "\nFunction Addresses:\n"; in fixupAsmFile() 94 fout << "f" << i << ": " << addresses[i] << "\n"; in fixupAsmFile() 96 fout << "\n"; in fixupAsmFile() 154 fout << line + "\n"; in fixupAsmFile()
|
/third_party/zlib/contrib/minizip/ |
D | miniunz.c | 324 FILE *fout=NULL; local 412 fout=FOPEN_FUNC(write_filename,"wb"); 414 if ((fout==NULL) && ((*popt_extract_without_path)==0) && 421 fout=FOPEN_FUNC(write_filename,"wb"); 424 if (fout==NULL) 430 if (fout!=NULL) 443 if (fwrite(buf,(unsigned)err,1,fout)!=1) 451 if (fout) 452 fclose(fout);
|
/third_party/spirv-tools/test/diff/diff_files/ |
D | generate_tests.py | 119 with open(out_path, 'w') as fout: 125 fout.write(line) 263 with open(test_file_name, 'wb') as fout: 264 fout.write(str.encode(test_file)) 277 with open('diff_test_files_autogen.cmake', 'wb') as fout: 278 fout.write(str.encode(cmake))
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/ |
D | icuzdump.cpp | 389 ofstream* fout = new ofstream(path.str().c_str(), mode); in main() local 390 if (fout->fail()) { in main() 392 delete fout; in main() 397 dumper.dump(*fout); in main() 398 fout->close(); in main() 399 delete fout; in main()
|