Lines Matching refs:fps
35 int av_timecode_adjust_ntsc_framenum2(int framenum, int fps)
41 if (fps && fps % 30 == 0) {
42 drop_frames = fps / 30 * 2;
43 frames_per_10mins = fps / 30 * 17982;
55 unsigned fps = tc->fps;
61 framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps);
62 ff = framenum % fps;
63 ss = framenum / fps % 60;
64 mm = framenum / (fps*60) % 60;
65 hh = framenum / (fps*3600) % 24;
105 int fps = tc->fps;
111 framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps);
116 ff = framenum % fps;
117 ss = framenum / fps % 60;
118 mm = framenum / (fps*60LL) % 60;
119 hh = framenum / (fps*3600LL);
122 ff_len = fps > 10000 ? 5 : fps > 1000 ? 4 : fps > 100 ? 3 : fps > 10 ? 2 : 1;
179 static int check_fps(int fps)
187 if (fps == supported_fps[i])
194 if ((int)tc->fps <= 0) {
198 if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps % 30 != 0) {
202 if (check_fps(tc->fps) < 0) {
227 tc->fps = fps_from_frame_rate(rate);
238 tc->fps = fps_from_frame_rate(rate);
244 tc->start = (hh*3600 + mm*60 + ss) * tc->fps + ff;
247 tc->start -= (tc->fps / 30 * 2) * (tmins - tmins/10);