Lines Matching refs:avf
33 static int scc_write_header(AVFormatContext *avf)
35 SCCContext *scc = avf->priv_data;
37 if (avf->nb_streams != 1 ||
38 avf->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE) {
39 av_log(avf, AV_LOG_ERROR,
43 if (avf->streams[0]->codecpar->codec_id != AV_CODEC_ID_EIA_608) {
44 av_log(avf, AV_LOG_ERROR,
46 avcodec_get_name(avf->streams[0]->codecpar->codec_id));
49 avpriv_set_pts_info(avf->streams[0], 64, 1, 1000);
50 avio_printf(avf->pb, "Scenarist_SCC V1.0\n");
58 static int scc_write_packet(AVFormatContext *avf, AVPacket *pkt)
60 SCCContext *scc = avf->priv_data;
65 av_log(avf, AV_LOG_WARNING,
83 avio_printf(avf->pb, "\n%02d:%02d:%02d:%02d\t", h, m, s, f);
93 avio_printf(avf->pb, "\n%02d:%02d:%02d:%02d\t", h, m, s, f);
97 avio_w8(avf->pb, ' ');
98 avio_printf(avf->pb, "%02x%02x", pkt->data[i + 1], pkt->data[i + 2]);
102 avio_w8(avf->pb, '\n');