/third_party/python/Lib/test/ |
H A D | test_aifc.py | 171 self.fout = aifc.open(TESTFN, 'wb') 191 fout = aifc.open(io.BytesIO(), 'wb') 192 fout.setnchannels(1) 193 fout.setframerate(1) 194 fout.setcomptype(comptype, b'') 195 fout.close() 196 self.assertEqual(fout.getsampwidth(), 2) 197 fout.initfp(None) 200 fout = aifc.open(io.BytesIO(), 'wb') 201 self.assertEqual(fout [all...] |
H A 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 [all...] |
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A 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, cons argument 262 WebPWrite16bAsPGM(FILE* fout, const WebPDecBuffer* const buffer) WebPWrite16bAsPGM() argument 296 WebPWriteBMP(FILE* fout, const WebPDecBuffer* const buffer) WebPWriteBMP() argument 363 WebPWriteTIFF(FILE* fout, const WebPDecBuffer* const buffer) WebPWriteTIFF() argument 440 WebPWriteAlphaPlane(FILE* fout, const WebPDecBuffer* const buffer) WebPWriteAlphaPlane() argument 464 WebPWritePGM(FILE* fout, const WebPDecBuffer* const buffer) WebPWritePGM() argument 508 WebPWriteYUV(FILE* fout, const WebPDecBuffer* const buffer) WebPWriteYUV() argument 553 FILE* fout = NULL; WebPSaveImage() local [all...] |
H A 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/node/deps/v8/tools/wasm-compilation-hints/ |
H A D | wasm.py | 68 def write_varuintN(value, fout): 70 fout.write(bs) 93 def write_custom_section(fout, section_name_bs, payload_bs): 98 fout.write(section_id_bs) 99 fout.write(payload_length_bs) 100 fout.write(section_name_length_bs) 101 fout.write(section_name_bs) 102 fout.write(payload_bs) 104 def write_compilation_hints_section(fout, hints_bs): 108 write_custom_section(fout, section_name_b [all...] |
H A D | inject-compilation-hints.py | 36 with io.open(out_wasm_file, "wb") as fout: 38 fout.write(bs) 40 fout.write(bs) 44 fout.write(bs) 48 fout.write(bs) 55 fout.write(bs) 60 write_compilation_hints_section(fout, hints_bs)
|
/third_party/skia/third_party/externals/brotli/research/ |
H A 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() [all...] |
H A D | find_opt_references.cc | 77 int right_lcp, FILE* fout) { in PrintReference() 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() 75 PrintReference(sarray_type* sarray, lcp_type* lcp, size_t size, int idx, int left_ix, int right_ix, int left_lcp, int right_lcp, FILE* fout) PrintReference() argument [all...] |
H A 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/ |
H A 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/pulseaudio/speex/libspeexdsp/ |
H A D | testresample2.c | 49 float *fin, *fout; in main() local 59 fout = malloc(INBLOCK*4*sizeof(float)); in main() 71 speex_resampler_process_float(st, 0, fin + off, &in_len, fout, &out_len); in main() 80 fwrite(fout, sizeof(float), out_len, stdout); in main() 90 free(fout); in main()
|
H A D | testresample.c | 49 float *fin, *fout; in main() local 58 fout = malloc(2*NN*sizeof(float)); in main() 72 speex_resampler_process_float(st, 0, fin, &in_len, fout, &out_len); in main() 74 out[i]=floor(.5+fout[i]); in main() 83 free(fout); in main()
|
H A D | kiss_fft.h | 82 * fout will be F[0] , F[1] , ... ,F[nfft-1] 86 void kiss_fft(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); 91 void kiss_fft_stride(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout,int fin_stride);
|
/third_party/mbedtls/programs/pkey/ |
H A D | dh_genprime.c | 65 FILE *fout; in main() local 147 if ((fout = fopen("dh_prime.txt", "wb+")) == NULL) { in main() 152 if (((ret = mbedtls_mpi_write_file("P = ", &P, 16, fout)) != 0) || in main() 153 ((ret = mbedtls_mpi_write_file("G = ", &G, 16, fout)) != 0)) { in main() 155 fclose(fout); in main() 160 fclose(fout); in main()
|
/third_party/ffmpeg/doc/examples/ |
H A 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/pulseaudio/speex/doc/ |
H A D | sampledec.c | 9 FILE *fout; in main() local 30 fout = fopen(outFile, "w"); in main() 56 fwrite(out, sizeof(short), FRAME_SIZE, fout); in main() 63 fclose(fout); in main()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | LLVMAsm.cpp | 88 std::ofstream fout(filename); in fixupAsmFile() 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/mbedtls/programs/aes/ |
H A D | crypt_and_hash.c | 65 FILE *fkey, *fin = NULL, *fout = NULL; in main() local 142 if ((fout = fopen(argv[3], "wb+")) == NULL) { in main() 149 mbedtls_setbuf(fout, NULL); in main() 270 if (fwrite(IV, 1, 16, fout) != 16) { in main() 349 if (fwrite(output, 1, olen, fout) != olen) { in main() 364 if (fwrite(output, 1, olen, fout) != olen) { in main() 377 if (fwrite(digest, 1, md_size, fout) != md_size) { in main() 504 if (fwrite(output, 1, olen, fout) != olen) { in main() 543 if (fwrite(output, 1, olen, fout) != olen) { in main() 555 if (fout) { in main() [all...] |
/third_party/spirv-tools/test/diff/diff_files/ |
H A 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/node/deps/v8/third_party/zlib/contrib/minizip/ |
H A D | miniunz.c | 321 FILE *fout=NULL; local 410 fout=FOPEN_FUNC(write_filename,"wb"); 412 if ((fout==NULL) && ((*popt_extract_without_path)==0) && 419 fout=FOPEN_FUNC(write_filename,"wb"); 422 if (fout==NULL) 428 if (fout!=NULL) 441 if (fwrite(buf,err,1,fout)!=1) 449 if (fout) 450 fclose(fout); 483 FILE* fout local [all...] |
/third_party/skia/third_party/externals/zlib/contrib/minizip/ |
H A 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 local [all...] |
/third_party/zlib/contrib/minizip/ |
H A D | miniunz.c | 352 FILE *fout = NULL; in do_extract_currentfile() local 470 fout=FOPEN_FUNC(write_filename,"wb"); in do_extract_currentfile() 472 if ((fout == NULL) && ((*popt_extract_without_path) == 0) && in do_extract_currentfile() 479 fout=FOPEN_FUNC(write_filename,"wb"); in do_extract_currentfile() 482 if (fout == NULL) in do_extract_currentfile() 488 if (fout != NULL) in do_extract_currentfile() 501 if (fwrite(buf,(unsigned)err,1,fout) != 1) in do_extract_currentfile() 509 if (fout) in do_extract_currentfile() 511 fclose(fout); in do_extract_currentfile()
|
/third_party/optimized-routines/math/test/rtest/ |
H A 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, uint3 argument [all...] |
/third_party/icu/icu4c/source/tools/tzcode/ |
H A D | icuzdump.cpp | 391 ofstream* fout = new ofstream(path.str().c_str(), mode); in main() local 392 if (fout->fail()) { in main() 394 delete fout; in main() 399 dumper.dump(*fout); in main() 400 fout->close(); in main() 401 delete fout; in main()
|
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
H A 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()
|