• Home
  • Raw
  • Download

Lines Matching full:wc

52     WebMChunkContext *wc = s->priv_data;  in webm_chunk_init()  local
63 if (!wc->header_filename) { in webm_chunk_init()
68 wc->prev_pts = AV_NOPTS_VALUE; in webm_chunk_init()
74 ret = avformat_alloc_output_context2(&wc->avf, oformat, NULL, NULL); in webm_chunk_init()
77 oc = wc->avf; in webm_chunk_init()
79 ff_format_set_url(oc, wc->header_filename); in webm_chunk_init()
80 wc->header_filename = NULL; in webm_chunk_init()
105 if (wc->http_method) in webm_chunk_init()
106 if ((ret = av_dict_set(&dict, "method", wc->http_method, 0)) < 0) in webm_chunk_init()
116 wc->chunk_duration, 0)) < 0 || in webm_chunk_init()
143 WebMChunkContext *wc = s->priv_data; in get_chunk_filename() local
148 s->url, wc->chunk_index - 1) < 0) { in get_chunk_filename()
157 WebMChunkContext *wc = s->priv_data; in webm_chunk_write_header() local
158 AVFormatContext *oc = wc->avf; in webm_chunk_write_header()
163 wc->header_written = 1; in webm_chunk_write_header()
171 WebMChunkContext *wc = s->priv_data; in chunk_start() local
172 AVFormatContext *oc = wc->avf; in chunk_start()
178 wc->chunk_index++; in chunk_start()
184 WebMChunkContext *wc = s->priv_data; in chunk_end() local
185 AVFormatContext *oc = wc->avf; in chunk_end()
204 if (wc->http_method) in chunk_end()
205 if ((ret = av_dict_set(&options, "method", wc->http_method, 0)) < 0) in chunk_end()
220 WebMChunkContext *wc = s->priv_data; in webm_chunk_write_packet() local
221 AVFormatContext *oc = wc->avf; in webm_chunk_write_packet()
226 if (wc->prev_pts != AV_NOPTS_VALUE) in webm_chunk_write_packet()
227 wc->duration_written += av_rescale_q(pkt->pts - wc->prev_pts, in webm_chunk_write_packet()
230 wc->prev_pts = pkt->pts; in webm_chunk_write_packet()
239 wc->duration_written >= wc->chunk_duration)) { in webm_chunk_write_packet()
240 wc->duration_written = 0; in webm_chunk_write_packet()
252 WebMChunkContext *wc = s->priv_data; in webm_chunk_write_trailer() local
253 AVFormatContext *oc = wc->avf; in webm_chunk_write_trailer()
269 WebMChunkContext *wc = s->priv_data; in webm_chunk_deinit() local
271 if (!wc->avf) in webm_chunk_deinit()
274 if (wc->header_written) in webm_chunk_deinit()
275 ffio_free_dyn_buf(&wc->avf->pb); in webm_chunk_deinit()
277 ff_format_io_close(s, &wc->avf->pb); in webm_chunk_deinit()
278 avformat_free_context(wc->avf); in webm_chunk_deinit()
279 wc->avf = NULL; in webm_chunk_deinit()