tc 96 libavcodec/cavs.c tc = tc_tab[av_clip_uintp2(qp_avg + h->alpha_offset, 6)]; tc 113 libavcodec/cavs.c int qp_avg, alpha, beta, tc; tc 152 libavcodec/cavs.c h->cdsp.cavs_filter_lv(h->cy, h->l_stride, alpha, beta, tc, bs[0], bs[1]); tc 155 libavcodec/cavs.c h->cdsp.cavs_filter_cv(h->cu, h->c_stride, alpha, beta, tc, bs[0], bs[1]); tc 156 libavcodec/cavs.c h->cdsp.cavs_filter_cv(h->cv, h->c_stride, alpha, beta, tc, bs[0], bs[1]); tc 160 libavcodec/cavs.c h->cdsp.cavs_filter_lv(h->cy + 8, h->l_stride, alpha, beta, tc, bs[2], bs[3]); tc 161 libavcodec/cavs.c h->cdsp.cavs_filter_lh(h->cy + 8 * h->l_stride, h->l_stride, alpha, beta, tc, bs[6], bs[7]); tc 166 libavcodec/cavs.c h->cdsp.cavs_filter_lh(h->cy, h->l_stride, alpha, beta, tc, bs[4], bs[5]); tc 169 libavcodec/cavs.c h->cdsp.cavs_filter_ch(h->cu, h->c_stride, alpha, beta, tc, bs[4], bs[5]); tc 170 libavcodec/cavs.c h->cdsp.cavs_filter_ch(h->cv, h->c_stride, alpha, beta, tc, bs[4], bs[5]); tc 65 libavcodec/cavsdsp.c static inline void loop_filter_l1(uint8_t *p0_p, int stride, int alpha, int beta, int tc) { tc 70 libavcodec/cavsdsp.c int delta = av_clip(((q0-p0)*3+P1-Q1+4)>>3,-tc, tc); tc 74 libavcodec/cavsdsp.c delta = av_clip(((P0-P1)*3+P2-Q0+4)>>3, -tc, tc); tc 78 libavcodec/cavsdsp.c delta = av_clip(((Q1-Q0)*3+P0-Q2+4)>>3, -tc, tc); tc 103 libavcodec/cavsdsp.c int tc) { tc 105 libavcodec/cavsdsp.c int delta = av_clip(((Q0-P0)*3+P1-Q1+4)>>3, -tc, tc); tc 118 libavcodec/cavsdsp.c static void cavs_filter_lv_c(uint8_t *d, int stride, int alpha, int beta, int tc, tc 127 libavcodec/cavsdsp.c loop_filter_l1(d + i*stride,1,alpha,beta,tc); tc 130 libavcodec/cavsdsp.c loop_filter_l1(d + i*stride,1,alpha,beta,tc); tc 134 libavcodec/cavsdsp.c static void cavs_filter_lh_c(uint8_t *d, int stride, int alpha, int beta, int tc, tc 143 libavcodec/cavsdsp.c loop_filter_l1(d + i,stride,alpha,beta,tc); tc 146 libavcodec/cavsdsp.c loop_filter_l1(d + i,stride,alpha,beta,tc); tc 150 libavcodec/cavsdsp.c static void cavs_filter_cv_c(uint8_t *d, int stride, int alpha, int beta, int tc, tc 159 libavcodec/cavsdsp.c loop_filter_c1(d + i*stride,1,alpha,beta,tc); tc 162 libavcodec/cavsdsp.c loop_filter_c1(d + i*stride,1,alpha,beta,tc); tc 166 libavcodec/cavsdsp.c static void cavs_filter_ch_c(uint8_t *d, int stride, int alpha, int beta, int tc, tc 175 libavcodec/cavsdsp.c loop_filter_c1(d + i,stride,alpha,beta,tc); tc 178 libavcodec/cavsdsp.c loop_filter_c1(d + i,stride,alpha,beta,tc); tc 33 libavcodec/cavsdsp.h void (*cavs_filter_lv)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); tc 34 libavcodec/cavsdsp.h void (*cavs_filter_lh)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); tc 35 libavcodec/cavsdsp.h void (*cavs_filter_cv)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); tc 36 libavcodec/cavsdsp.h void (*cavs_filter_ch)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); tc 112 libavcodec/h264_loopfilter.c int8_t tc[4]; tc 113 libavcodec/h264_loopfilter.c tc[0] = tc0_table[index_a][bS[0]]; tc 114 libavcodec/h264_loopfilter.c tc[1] = tc0_table[index_a][bS[1]]; tc 115 libavcodec/h264_loopfilter.c tc[2] = tc0_table[index_a][bS[2]]; tc 116 libavcodec/h264_loopfilter.c tc[3] = tc0_table[index_a][bS[3]]; tc 117 libavcodec/h264_loopfilter.c h->h264dsp.h264_h_loop_filter_luma(pix, stride, alpha, beta, tc); tc 134 libavcodec/h264_loopfilter.c int8_t tc[4]; tc 135 libavcodec/h264_loopfilter.c tc[0] = tc0_table[index_a][bS[0]]+1; tc 136 libavcodec/h264_loopfilter.c tc[1] = tc0_table[index_a][bS[1]]+1; tc 137 libavcodec/h264_loopfilter.c tc[2] = tc0_table[index_a][bS[2]]+1; tc 138 libavcodec/h264_loopfilter.c tc[3] = tc0_table[index_a][bS[3]]+1; tc 139 libavcodec/h264_loopfilter.c h->h264dsp.h264_h_loop_filter_chroma(pix, stride, alpha, beta, tc); tc 157 libavcodec/h264_loopfilter.c int8_t tc[4]; tc 158 libavcodec/h264_loopfilter.c tc[0] = tc0_table[index_a][bS[0*bsi]]; tc 159 libavcodec/h264_loopfilter.c tc[1] = tc0_table[index_a][bS[1*bsi]]; tc 160 libavcodec/h264_loopfilter.c tc[2] = tc0_table[index_a][bS[2*bsi]]; tc 161 libavcodec/h264_loopfilter.c tc[3] = tc0_table[index_a][bS[3*bsi]]; tc 162 libavcodec/h264_loopfilter.c h->h264dsp.h264_h_loop_filter_luma_mbaff(pix, stride, alpha, beta, tc); tc 180 libavcodec/h264_loopfilter.c int8_t tc[4]; tc 181 libavcodec/h264_loopfilter.c tc[0] = tc0_table[index_a][bS[0*bsi]] + 1; tc 182 libavcodec/h264_loopfilter.c tc[1] = tc0_table[index_a][bS[1*bsi]] + 1; tc 183 libavcodec/h264_loopfilter.c tc[2] = tc0_table[index_a][bS[2*bsi]] + 1; tc 184 libavcodec/h264_loopfilter.c tc[3] = tc0_table[index_a][bS[3*bsi]] + 1; tc 185 libavcodec/h264_loopfilter.c h->h264dsp.h264_h_loop_filter_chroma_mbaff(pix, stride, alpha, beta, tc); tc 202 libavcodec/h264_loopfilter.c int8_t tc[4]; tc 203 libavcodec/h264_loopfilter.c tc[0] = tc0_table[index_a][bS[0]]; tc 204 libavcodec/h264_loopfilter.c tc[1] = tc0_table[index_a][bS[1]]; tc 205 libavcodec/h264_loopfilter.c tc[2] = tc0_table[index_a][bS[2]]; tc 206 libavcodec/h264_loopfilter.c tc[3] = tc0_table[index_a][bS[3]]; tc 207 libavcodec/h264_loopfilter.c h->h264dsp.h264_v_loop_filter_luma(pix, stride, alpha, beta, tc); tc 224 libavcodec/h264_loopfilter.c int8_t tc[4]; tc 225 libavcodec/h264_loopfilter.c tc[0] = tc0_table[index_a][bS[0]]+1; tc 226 libavcodec/h264_loopfilter.c tc[1] = tc0_table[index_a][bS[1]]+1; tc 227 libavcodec/h264_loopfilter.c tc[2] = tc0_table[index_a][bS[2]]+1; tc 228 libavcodec/h264_loopfilter.c tc[3] = tc0_table[index_a][bS[3]]+1; tc 229 libavcodec/h264_loopfilter.c h->h264dsp.h264_v_loop_filter_chroma(pix, stride, alpha, beta, tc); tc 130 libavcodec/h264dsp_template.c int tc = tc_orig; tc 136 libavcodec/h264dsp_template.c tc++; tc 141 libavcodec/h264dsp_template.c tc++; tc 144 libavcodec/h264dsp_template.c i_delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); tc 240 libavcodec/h264dsp_template.c const int tc = ((tc0[i] - 1) << (BIT_DEPTH - 8)) + 1; tc 241 libavcodec/h264dsp_template.c if( tc <= 0 ) { tc 255 libavcodec/h264dsp_template.c int delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); tc 482 libavcodec/hevc_filter.c int32_t c_tc[2], tc[2]; tc 530 libavcodec/hevc_filter.c tc[0] = bs0 ? TC_CALC(qp, bs0) : 0; tc 531 libavcodec/hevc_filter.c tc[1] = bs1 ? TC_CALC(qp, bs1) : 0; tc 540 libavcodec/hevc_filter.c beta, tc, no_p, no_q); tc 544 libavcodec/hevc_filter.c beta, tc, no_p, no_q); tc 562 libavcodec/hevc_filter.c tc[0] = bs0 ? TC_CALC(qp, bs0) : 0; tc 563 libavcodec/hevc_filter.c tc[1] = bs1 ? TC_CALC(qp, bs1) : 0; tc 572 libavcodec/hevc_filter.c beta, tc, no_p, no_q); tc 576 libavcodec/hevc_filter.c beta, tc, no_p, no_q); tc 102 libavcodec/hevcdsp.h int beta, int32_t *tc, tc 105 libavcodec/hevcdsp.h int beta, int32_t *tc, tc 108 libavcodec/hevcdsp.h int32_t *tc, uint8_t *no_p, uint8_t *no_q); tc 110 libavcodec/hevcdsp.h int32_t *tc, uint8_t *no_p, uint8_t *no_q); tc 112 libavcodec/hevcdsp.h int beta, int32_t *tc, tc 115 libavcodec/hevcdsp.h int beta, int32_t *tc, tc 118 libavcodec/hevcdsp.h int32_t *tc, uint8_t *no_p, tc 121 libavcodec/hevcdsp.h int32_t *tc, uint8_t *no_p, tc 1539 libavcodec/hevcdsp_template.c const int tc = _tc[j] << (BIT_DEPTH - 8); tc 1549 libavcodec/hevcdsp_template.c const int tc25 = ((tc * 5 + 1) >> 1); tc 1555 libavcodec/hevcdsp_template.c const int tc2 = tc << 1; tc 1580 libavcodec/hevcdsp_template.c const int tc_2 = tc >> 1; tc 1594 libavcodec/hevcdsp_template.c if (abs(delta0) < 10 * tc) { tc 1595 libavcodec/hevcdsp_template.c delta0 = av_clip(delta0, -tc, tc); tc 1626 libavcodec/hevcdsp_template.c const int tc = _tc[j] << (BIT_DEPTH - 8); tc 1627 libavcodec/hevcdsp_template.c if (tc <= 0) { tc 1640 libavcodec/hevcdsp_template.c delta0 = av_clip((((q0 - p0) * 4) + p1 - q1 + 4) >> 3, -tc, tc); tc 1651 libavcodec/hevcdsp_template.c int32_t *tc, uint8_t *no_p, tc 1654 libavcodec/hevcdsp_template.c FUNC(hevc_loop_filter_chroma)(pix, stride, sizeof(pixel), tc, no_p, no_q); tc 1658 libavcodec/hevcdsp_template.c int32_t *tc, uint8_t *no_p, tc 1661 libavcodec/hevcdsp_template.c FUNC(hevc_loop_filter_chroma)(pix, sizeof(pixel), stride, tc, no_p, no_q); tc 1665 libavcodec/hevcdsp_template.c int beta, int32_t *tc, uint8_t *no_p, tc 1669 libavcodec/hevcdsp_template.c beta, tc, no_p, no_q); tc 1673 libavcodec/hevcdsp_template.c int beta, int32_t *tc, uint8_t *no_p, tc 1677 libavcodec/hevcdsp_template.c beta, tc, no_p, no_q); tc 2380 libavcodec/mpeg12dec.c int64_t tc; tc 2384 libavcodec/mpeg12dec.c tc = avctx->timecode_frame_start = get_bits(&s->gb, 25); tc 2394 libavcodec/mpeg12dec.c av_timecode_make_mpeg_tc_string(tcbuf, tc); tc 210 libavcodec/mpeg12enc.c s->tc.flags |= AV_TIMECODE_FLAG_DROPFRAME; tc 219 libavcodec/mpeg12enc.c int ret = av_timecode_init_from_string(&s->tc, rate, s->tc_opt_str, s); tc 222 libavcodec/mpeg12enc.c s->drop_frame_timecode = !!(s->tc.flags & AV_TIMECODE_FLAG_DROPFRAME); tc 223 libavcodec/mpeg12enc.c s->avctx->timecode_frame_start = s->tc.start; tc 378 libavcodec/mpeg12enc.c av_assert0(s->drop_frame_timecode == !!(s->tc.flags & AV_TIMECODE_FLAG_DROPFRAME)); tc 619 libavcodec/mpegvideo.h AVTimecode tc; ///< timecode context tc 32 libavcodec/x86/hevcdsp_init.c void ff_hevc_ ## DIR ## _loop_filter_chroma_ ## DEPTH ## _ ## OPT(uint8_t *pix, ptrdiff_t stride, int *tc, uint8_t *no_p, uint8_t *no_q); tc 35 libavcodec/x86/hevcdsp_init.c void ff_hevc_ ## DIR ## _loop_filter_luma_ ## DEPTH ## _ ## OPT(uint8_t *pix, ptrdiff_t stride, int beta, int *tc, uint8_t *no_p, uint8_t *no_q); tc 101 libavcodec/xsubenc.c static int make_tc(uint64_t ms, int *tc) tc 106 libavcodec/xsubenc.c tc[i] = ms % tc_divs[i]; tc 109 libavcodec/xsubenc.c tc[3] = ms; tc 184 libavfilter/vf_drawtext.c AVTimecode tc; ///< timecode context tc 617 libavfilter/vf_drawtext.c int ret = av_timecode_init_from_string(&s->tc, s->tc_rate, tc 622 libavfilter/vf_drawtext.c s->tc.flags |= AV_TIMECODE_FLAG_24HOURSMAX; tc 1137 libavfilter/vf_drawtext.c av_timecode_make_string(&s->tc, tcbuf, inlink->frame_count); tc 109 libavfilter/vf_vidstabtransform.c TransformContext *tc = ctx->priv; tc 111 libavfilter/vf_vidstabtransform.c tc->class = &vidstabtransform_class; tc 118 libavfilter/vf_vidstabtransform.c TransformContext *tc = ctx->priv; tc 120 libavfilter/vf_vidstabtransform.c vsTransformDataCleanup(&tc->td); tc 121 libavfilter/vf_vidstabtransform.c vsTransformationsCleanup(&tc->trans); tc 143 libavfilter/vf_vidstabtransform.c TransformContext *tc = ctx->priv; tc 148 libavfilter/vf_vidstabtransform.c VSTransformData *td = &(tc->td); tc 174 libavfilter/vf_vidstabtransform.c tc->conf.modName = "vidstabtransform"; tc 175 libavfilter/vf_vidstabtransform.c tc->conf.verbose = 1 + tc->debug; tc 176 libavfilter/vf_vidstabtransform.c if (tc->tripod) { tc 178 libavfilter/vf_vidstabtransform.c tc->conf.relative = 0; tc 179 libavfilter/vf_vidstabtransform.c tc->conf.smoothing = 0; tc 181 libavfilter/vf_vidstabtransform.c tc->conf.simpleMotionCalculation = 0; tc 182 libavfilter/vf_vidstabtransform.c tc->conf.storeTransforms = tc->debug; tc 183 libavfilter/vf_vidstabtransform.c tc->conf.smoothZoom = 0; tc 185 libavfilter/vf_vidstabtransform.c if (vsTransformDataInit(td, &tc->conf, &fi_src, &fi_dest) != VS_OK) { tc 190 libavfilter/vf_vidstabtransform.c vsTransformGetConfig(&tc->conf, td); tc 192 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " input = %s\n", tc->input); tc 193 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " smoothing = %d\n", tc->conf.smoothing); tc 195 libavfilter/vf_vidstabtransform.c tc->conf.camPathAlgo == VSOptimalL1 ? "opt" : tc 196 libavfilter/vf_vidstabtransform.c (tc->conf.camPathAlgo == VSGaussian ? "gauss" : "avg")); tc 197 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " maxshift = %d\n", tc->conf.maxShift); tc 198 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " maxangle = %f\n", tc->conf.maxAngle); tc 199 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " crop = %s\n", tc->conf.crop ? "Black" : "Keep"); tc 200 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " relative = %s\n", tc->conf.relative ? "True": "False"); tc 201 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " invert = %s\n", tc->conf.invert ? "True" : "False"); tc 202 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " zoom = %f\n", tc->conf.zoom); tc 204 libavfilter/vf_vidstabtransform.c tc->conf.optZoom == 1 ? "Static (1)" : (tc->conf.optZoom == 2 ? "Dynamic (2)" : "Off (0)")); tc 205 libavfilter/vf_vidstabtransform.c if (tc->conf.optZoom == 2) tc 206 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " zoomspeed = %g\n", tc->conf.zoomSpeed); tc 207 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_INFO, " interpol = %s\n", getInterpolationTypeName(tc->conf.interpolType)); tc 209 libavfilter/vf_vidstabtransform.c f = fopen(tc->input, "r"); tc 212 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_ERROR, "cannot open input file %s\n", tc->input); tc 218 libavfilter/vf_vidstabtransform.c if (vsLocalmotions2Transforms(td, &mlms, &tc->trans) != VS_OK) { tc 223 libavfilter/vf_vidstabtransform.c if (!vsReadOldTransforms(td, f, &tc->trans)) { /* read input file */ tc 224 libavfilter/vf_vidstabtransform.c av_log(ctx, AV_LOG_ERROR, "error parsing input file %s\n", tc->input); tc 231 libavfilter/vf_vidstabtransform.c if (vsPreprocessTransforms(td, &tc->trans) != VS_OK) { tc 244 libavfilter/vf_vidstabtransform.c TransformContext *tc = ctx->priv; tc 245 libavfilter/vf_vidstabtransform.c VSTransformData* td = &(tc->td); tc 280 libavfilter/vf_vidstabtransform.c vsDoTransform(td, vsGetNextTransform(td, &tc->trans)); tc 310 libavformat/dv.c static int dv_extract_timecode(DVDemuxContext* c, const uint8_t* frame, char *tc) tc 322 libavformat/dv.c av_timecode_make_smpte_tc_string(tc, AV_RB32(tc_pack + 1), prevent_df); tc 57 libavformat/dvenc.c AVTimecode tc; /* timecode context */ tc 91 libavformat/dvenc.c struct tm tc; tc 101 libavformat/dvenc.c timecode = av_timecode_get_smpte_from_framenum(&c->tc, c->frames); tc 151 libavformat/dvenc.c ff_brktimegm(ct, &tc); tc 155 libavformat/dvenc.c ((tc.tm_mday / 10) << 4) | /* Tens of day */ tc 156 libavformat/dvenc.c (tc.tm_mday % 10); /* Units of day */ tc 158 libavformat/dvenc.c ((tc.tm_mon / 10) << 4) | /* Tens of month */ tc 159 libavformat/dvenc.c (tc.tm_mon % 10); /* Units of month */ tc 160 libavformat/dvenc.c buf[4] = (((tc.tm_year % 100) / 10) << 4) | /* Tens of year */ tc 161 libavformat/dvenc.c (tc.tm_year % 10); /* Units of year */ tc 167 libavformat/dvenc.c ff_brktimegm(ct, &tc); tc 171 libavformat/dvenc.c ((tc.tm_sec / 10) << 4) | /* Tens of seconds */ tc 172 libavformat/dvenc.c (tc.tm_sec % 10); /* Units of seconds */ tc 174 libavformat/dvenc.c ((tc.tm_min / 10) << 4) | /* Tens of minutes */ tc 175 libavformat/dvenc.c (tc.tm_min % 10); /* Units of minutes */ tc 177 libavformat/dvenc.c ((tc.tm_hour / 10) << 4) | /* Tens of hours */ tc 178 libavformat/dvenc.c (tc.tm_hour % 10); /* Units of hours */ tc 410 libavformat/dvenc.c if (tcr && av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s) >= 0) tc 412 libavformat/dvenc.c return av_timecode_init(&dvc->tc, rate, 0, 0, s); tc 85 libavformat/gxfenc.c GXFTimecode tc; tc 235 libavformat/gxfenc.c uint32_t timecode = GXF_TIMECODE(gxf->tc.color, gxf->tc.drop, tc 236 libavformat/gxfenc.c gxf->tc.hh, gxf->tc.mm, tc 237 libavformat/gxfenc.c gxf->tc.ss, gxf->tc.ff); tc 447 libavformat/gxfenc.c timecode_in = GXF_TIMECODE(gxf->tc.color, gxf->tc.drop, tc 448 libavformat/gxfenc.c gxf->tc.hh, gxf->tc.mm, tc 449 libavformat/gxfenc.c gxf->tc.ss, gxf->tc.ff); tc 452 libavformat/gxfenc.c gxf->tc.hh * (timecode_base * 3600) + tc 453 libavformat/gxfenc.c gxf->tc.mm * (timecode_base * 60) + tc 454 libavformat/gxfenc.c gxf->tc.ss * timecode_base + tc 455 libavformat/gxfenc.c gxf->tc.ff; tc 457 libavformat/gxfenc.c timecode_out = GXF_TIMECODE(gxf->tc.color, gxf->tc.drop, tc 622 libavformat/gxfenc.c gxf_write_umf_media_timecode(pb, gxf->tc.drop); tc 685 libavformat/gxfenc.c static int gxf_init_timecode(AVFormatContext *s, GXFTimecode *tc, const char *tcstr, int fields) tc 689 libavformat/gxfenc.c if (sscanf(tcstr, "%d:%d:%d%c%d", &tc->hh, &tc->mm, &tc->ss, &c, &tc->ff) != 5) { tc 695 libavformat/gxfenc.c tc->color = 0; tc 696 libavformat/gxfenc.c tc->drop = c != ':'; tc 699 libavformat/gxfenc.c tc->ff = tc->ff * 2; tc 827 libavformat/gxfenc.c gxf_init_timecode(s, &gxf->tc, tcr->value, vsc->fields); tc 3798 libavformat/mov.c AVTimecode tc; tc 3802 libavformat/mov.c int ret = av_timecode_init(&tc, rate, flags, 0, s); tc 3806 libavformat/mov.c av_timecode_make_string(&tc, buf, value), 0); tc 4619 libavformat/movenc.c AVTimecode tc; tc 4624 libavformat/movenc.c ret = av_timecode_init_from_string(&tc, rate, tcstr, s); tc 4633 libavformat/movenc.c if (tc.flags & AV_TIMECODE_FLAG_DROPFRAME) tc 4651 libavformat/movenc.c AV_WB32(pkt.data, tc.start); tc 127 libavformat/mxfdec.c AVTimecode tc; tc 1517 libavformat/mxfdec.c static int mxf_add_timecode_metadata(AVDictionary **pm, const char *key, AVTimecode *tc) tc 1520 libavformat/mxfdec.c av_dict_set(pm, key, av_timecode_make_string(tc, buf, 0), 0); tc 1640 libavformat/mxfdec.c AVTimecode tc; tc 1682 libavformat/mxfdec.c if (av_timecode_init(&tc, mxf_tc->rate, flags, start_position + mxf_tc->start_frame, mxf->fc) == 0) { tc 1683 libavformat/mxfdec.c mxf_add_timecode_metadata(&st->metadata, "timecode", &tc); tc 1726 libavformat/mxfdec.c AVTimecode tc; tc 1737 libavformat/mxfdec.c if (av_timecode_init(&tc, mxf_tc->rate, flags, mxf_tc->start_frame, mxf->fc) == 0) { tc 1738 libavformat/mxfdec.c mxf_add_timecode_metadata(&mxf->fc->metadata, "timecode", &tc); tc 1754 libavformat/mxfdec.c if (av_timecode_init(&tc, mxf_tc->rate, flags, mxf_tc->start_frame, mxf->fc) == 0) { tc 1755 libavformat/mxfdec.c mxf_add_timecode_metadata(&mxf->fc->metadata, "timecode", &tc); tc 307 libavformat/mxfenc.c AVTimecode tc; ///< timecode context tc 806 libavformat/mxfenc.c avio_wb64(pb, mxf->tc.start); tc 814 libavformat/mxfenc.c avio_w8(pb, !!(mxf->tc.flags & AV_TIMECODE_FLAG_DROPFRAME)); tc 1870 libavformat/mxfenc.c ret = av_timecode_init_from_string(&mxf->tc, rate, tcr->value, s); tc 1872 libavformat/mxfenc.c ret = av_timecode_init(&mxf->tc, rate, 0, 0, s); tc 1997 libavformat/mxfenc.c avio_wb16(pb, (mxf->tc.start + frame) & 0xFFFF); // continuity count, supposed to overflow tc 2009 libavformat/mxfenc.c time_code = av_timecode_get_smpte_from_framenum(&mxf->tc, frame); tc 50 libavformat/takdec.c TAKDemuxContext *tc = s->priv_data; tc 65 libavformat/takdec.c tc->mlast_frame = 0; tc 133 libavformat/takdec.c tc->data_end += curpos; tc 161 libavformat/takdec.c tc->mlast_frame = 1; tc 162 libavformat/takdec.c tc->data_end = get_bits64(&gb, TAK_LAST_FRAME_POS_BITS) + tc 177 libavformat/takdec.c TAKDemuxContext *tc = s->priv_data; tc 180 libavformat/takdec.c if (tc->mlast_frame) { tc 184 libavformat/takdec.c left = tc->data_end - avio_tell(pb); tc 277 libavformat/tedcaptionsdec.c TEDCaptionsDemuxer *tc = avf->priv_data; tc 282 libavformat/tedcaptionsdec.c ret = parse_file(avf->pb, &tc->subs); tc 287 libavformat/tedcaptionsdec.c ff_subtitles_queue_clean(&tc->subs); tc 290 libavformat/tedcaptionsdec.c ff_subtitles_queue_finalize(&tc->subs); tc 291 libavformat/tedcaptionsdec.c for (i = 0; i < tc->subs.nb_subs; i++) tc 292 libavformat/tedcaptionsdec.c tc->subs.subs[i].pts += tc->start_time; tc 294 libavformat/tedcaptionsdec.c last = &tc->subs.subs[tc->subs.nb_subs - 1]; tc 311 libavformat/tedcaptionsdec.c TEDCaptionsDemuxer *tc = avf->priv_data; tc 313 libavformat/tedcaptionsdec.c return ff_subtitles_queue_read_packet(&tc->subs, packet); tc 318 libavformat/tedcaptionsdec.c TEDCaptionsDemuxer *tc = avf->priv_data; tc 320 libavformat/tedcaptionsdec.c ff_subtitles_queue_clean(&tc->subs); tc 351 libavformat/tedcaptionsdec.c TEDCaptionsDemuxer *tc = avf->priv_data; tc 352 libavformat/tedcaptionsdec.c return ff_subtitles_queue_seek(&tc->subs, avf, stream_index, tc 55 libavutil/timecode.c uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum) tc 57 libavutil/timecode.c unsigned fps = tc->fps; tc 58 libavutil/timecode.c int drop = !!(tc->flags & AV_TIMECODE_FLAG_DROPFRAME); tc 61 libavutil/timecode.c framenum += tc->start; tc 63 libavutil/timecode.c framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps); tc 84 libavutil/timecode.c char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) tc 86 libavutil/timecode.c int fps = tc->fps; tc 87 libavutil/timecode.c int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME; tc 90 libavutil/timecode.c framenum += tc->start; tc 95 libavutil/timecode.c neg = tc->flags & AV_TIMECODE_FLAG_ALLOWNEGATIVE; tc 101 libavutil/timecode.c if (tc->flags & AV_TIMECODE_FLAG_24HOURSMAX) tc 152 libavutil/timecode.c static int check_timecode(void *log_ctx, AVTimecode *tc) tc 154 libavutil/timecode.c if (tc->fps <= 0) { tc 158 libavutil/timecode.c if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) { tc 162 libavutil/timecode.c if (check_fps(tc->fps) < 0) { tc 164 libavutil/timecode.c tc->rate.num, tc->rate.den); tc 182 libavutil/timecode.c int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx) tc 184 libavutil/timecode.c memset(tc, 0, sizeof(*tc)); tc 185 libavutil/timecode.c tc->start = frame_start; tc 186 libavutil/timecode.c tc->flags = flags; tc 187 libavutil/timecode.c tc->rate = rate; tc 188 libavutil/timecode.c tc->fps = fps_from_frame_rate(rate); tc 189 libavutil/timecode.c return check_timecode(log_ctx, tc); tc 192 libavutil/timecode.c int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx) tc 203 libavutil/timecode.c memset(tc, 0, sizeof(*tc)); tc 204 libavutil/timecode.c tc->flags = c != ':' ? AV_TIMECODE_FLAG_DROPFRAME : 0; // drop if ';', '.', ... tc 205 libavutil/timecode.c tc->rate = rate; tc 206 libavutil/timecode.c tc->fps = fps_from_frame_rate(rate); tc 208 libavutil/timecode.c ret = check_timecode(log_ctx, tc); tc 212 libavutil/timecode.c tc->start = (hh*3600 + mm*60 + ss) * tc->fps + ff; tc 213 libavutil/timecode.c if (tc->flags & AV_TIMECODE_FLAG_DROPFRAME) { /* adjust frame number */ tc 215 libavutil/timecode.c tc->start -= 2 * (tmins - tmins/10); tc 71 libavutil/timecode.h uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum); tc 85 libavutil/timecode.h char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum); tc 119 libavutil/timecode.h int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx); tc 131 libavutil/timecode.h int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx);