Lines Matching refs:ic
250 AVFormatContext * ic; member
281 ic = 0; in init()
335 if( ic ) in close()
338 av_close_input_file(ic); in close()
340 avformat_close_input(&ic); in close()
343 ic = NULL; in close()
571 int err = avformat_open_input(&ic, _filename, NULL, NULL); in open()
573 int err = av_open_input_file(&ic, _filename, NULL, 0, NULL); in open()
583 avformat_find_stream_info(ic, NULL); in open()
585 av_find_stream_info(ic); in open()
592 for(i = 0; i < ic->nb_streams; i++) in open()
595 AVCodecContext *enc = ic->streams[i]->codec; in open()
597 AVCodecContext *enc = &ic->streams[i]->codec; in open()
631 video_st = ic->streams[i]; in open()
668 if( !ic || !video_st ) return false; in grabFrame()
670 if( ic->streams[video_stream]->nb_frames > 0 && in grabFrame()
671 frame_number > ic->streams[video_stream]->nb_frames ) in grabFrame()
681 int ret = av_read_frame(ic, &packet); in grabFrame()
795 return r2d(ic->streams[video_stream]->time_base); in getProperty()
831 double sec = (double)ic->duration / (double)AV_TIME_BASE; in get_duration_sec()
835 … sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base); in get_duration_sec()
840 … sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base); in get_duration_sec()
848 return ic->bit_rate; in get_bitrate()
854 double fps = r2d(ic->streams[video_stream]->avg_frame_rate); in get_fps()
856 double fps = r2d(ic->streams[video_stream]->r_frame_rate); in get_fps()
862 fps = r2d(ic->streams[video_stream]->avg_frame_rate); in get_fps()
868 fps = 1.0 / r2d(ic->streams[video_stream]->codec->time_base); in get_fps()
876 int64_t nbf = ic->streams[video_stream]->nb_frames; in get_total_frames()
893 return (double)(dts - ic->streams[video_stream]->start_time) * in dts_to_sec()
894 r2d(ic->streams[video_stream]->time_base); in dts_to_sec()
911 int64_t time_stamp = ic->streams[video_stream]->start_time; in seek()
912 double time_base = r2d(ic->streams[video_stream]->time_base); in seek()
914 … if (get_total_frames() > 1) av_seek_frame(ic, video_stream, time_stamp, AVSEEK_FLAG_BACKWARD); in seek()
915 avcodec_flush_buffers(ic->streams[video_stream]->codec); in seek()
981 seek((int64_t)(value*ic->duration)); in setProperty()