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