• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavutil/

Lines Matching defs:tc

55 uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum)
57 unsigned fps = tc->fps;
58 int drop = !!(tc->flags & AV_TIMECODE_FLAG_DROPFRAME);
61 framenum += tc->start;
63 framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps);
84 char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum)
86 int fps = tc->fps;
87 int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME;
90 framenum += tc->start;
95 neg = tc->flags & AV_TIMECODE_FLAG_ALLOWNEGATIVE;
101 if (tc->flags & AV_TIMECODE_FLAG_24HOURSMAX)
152 static int check_timecode(void *log_ctx, AVTimecode *tc)
154 if (tc->fps <= 0) {
158 if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) {
162 if (check_fps(tc->fps) < 0) {
164 tc->rate.num, tc->rate.den);
182 int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx)
184 memset(tc, 0, sizeof(*tc));
185 tc->start = frame_start;
186 tc->flags = flags;
187 tc->rate = rate;
188 tc->fps = fps_from_frame_rate(rate);
189 return check_timecode(log_ctx, tc);
192 int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx)
203 memset(tc, 0, sizeof(*tc));
204 tc->flags = c != ':' ? AV_TIMECODE_FLAG_DROPFRAME : 0; // drop if ';', '.', ...
205 tc->rate = rate;
206 tc->fps = fps_from_frame_rate(rate);
208 ret = check_timecode(log_ctx, tc);
212 tc->start = (hh*3600 + mm*60 + ss) * tc->fps + ff;
213 if (tc->flags & AV_TIMECODE_FLAG_DROPFRAME) { /* adjust frame number */
215 tc->start -= 2 * (tmins - tmins/10);