Lines Matching defs:out

49     URLContext *out;  // Current output stream where all output is written
81 if (os->out)
82 ffurl_write(os->out, buf, buf_size);
98 ffurl_closep(&os->out);
100 os->out = os->tail_out;
104 if (os->out)
105 ffurl_seek(os->out, offset - os->cur_start_pos, SEEK_SET);
114 os->tail_out = os->out;
116 ret = ffurl_open_whitelist(&os->out, frag->file, AVIO_FLAG_WRITE,
120 os->out = os->tail_out;
128 ffurl_seek(os->out, offset - frag->start_pos, SEEK_SET);
169 ffurl_closep(&os->out);
183 static void output_chunk_list(OutputStream *os, AVIOContext *out, int final, int skip, int window_size)
197 avio_printf(out, "<c t=\"%"PRIu64"\" d=\"%"PRIu64"\" />\n", frag->start_time, frag->duration);
199 avio_printf(out, "<c n=\"%d\" d=\"%"PRIu64"\" />\n", frag->n, frag->duration);
206 AVIOContext *out;
213 ret = s->io_open(s, &out, temp_filename, AVIO_FLAG_WRITE, NULL);
218 avio_printf(out, "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
241 avio_printf(out, "<SmoothStreamingMedia MajorVersion=\"2\" MinorVersion=\"0\" Duration=\"%"PRIu64"\"", duration);
243 avio_printf(out, " IsLive=\"true\" LookAheadFragmentCount=\"%d\" DVRWindowLength=\"0\"", c->lookahead_count);
244 avio_printf(out, ">\n");
247 avio_printf(out, "<StreamIndex Type=\"video\" QualityLevels=\"%d\" Chunks=\"%d\" Url=\"QualityLevels({bitrate})/Fragments(video={start time})\">\n", video_streams, video_chunks);
253 avio_printf(out, "<QualityLevel Index=\"%d\" Bitrate=\"%"PRId64"\" FourCC=\"%s\" MaxWidth=\"%d\" MaxHeight=\"%d\" CodecPrivateData=\"%s\" />\n", index, s->streams[i]->codecpar->bit_rate, os->fourcc, s->streams[i]->codecpar->width, s->streams[i]->codecpar->height, os->private_str);
256 output_chunk_list(&c->streams[last], out, final, c->lookahead_count, c->window_size);
257 avio_printf(out, "</StreamIndex>\n");
261 avio_printf(out, "<StreamIndex Type=\"audio\" QualityLevels=\"%d\" Chunks=\"%d\" Url=\"QualityLevels({bitrate})/Fragments(audio={start time})\">\n", audio_streams, audio_chunks);
267 avio_printf(out, "<QualityLevel Index=\"%d\" Bitrate=\"%"PRId64"\" FourCC=\"%s\" SamplingRate=\"%d\" Channels=\"%d\" BitsPerSample=\"16\" PacketSize=\"%d\" AudioTag=\"%d\" CodecPrivateData=\"%s\" />\n",
272 output_chunk_list(&c->streams[last], out, final, c->lookahead_count, c->window_size);
273 avio_printf(out, "</StreamIndex>\n");
275 avio_printf(out, "</SmoothStreamingMedia>\n");
276 avio_flush(out);
277 ff_format_io_close(s, &out);
471 AVIOContext *in, *out;
475 if ((ret = s->io_open(s, &out, outfile, AVIO_FLAG_WRITE, NULL)) < 0) {
487 avio_write(out, buf, n);
490 avio_flush(out);
491 ff_format_io_close(s, &out);
510 ret = ffurl_open_whitelist(&os->out, filename, AVIO_FLAG_WRITE, &s->interrupt_callback, NULL, s->protocol_whitelist, s->protocol_blacklist, NULL);
517 if (!os->out || os->tail_out)
520 ffurl_closep(&os->out);