fs                112 libavcodec/cbs_vp9_syntax_template.c         fs(1, found_ref[i], 1, i);
fs                165 libavcodec/cbs_vp9_syntax_template.c                 fs(1, update_ref_delta[i], 1, i);
fs                170 libavcodec/cbs_vp9_syntax_template.c                 fs(1, update_mode_delta[i], 1, i);
fs                223 libavcodec/cbs_vp9_syntax_template.c                     fs(1, feature_enabled[i][j], 2, i, j);
fs                226 libavcodec/cbs_vp9_syntax_template.c                         fs(segmentation_feature_bits[j],
fs                229 libavcodec/cbs_vp9_syntax_template.c                             fs(1, feature_sign[i][j], 2, i, j);
fs                334 libavcodec/cbs_vp9_syntax_template.c                  fs(3, ref_frame_idx[i], 1, i);
fs                335 libavcodec/cbs_vp9_syntax_template.c                  fs(1, ref_frame_sign_bias[VP9_LAST_FRAME + i],
fs               1020 libavcodec/dvenc.c     int fs;
fs               1023 libavcodec/dvenc.c         fs = c->avctx->height == 720 || c->frame->top_field_first ? 0x40 : 0x00;
fs               1025 libavcodec/dvenc.c         fs = c->frame->top_field_first ? 0x00 : 0x40;
fs               1066 libavcodec/dvenc.c                  fs       |    /* first/second field flag 0 -- field 2, 1 -- field 1 */
fs                 66 libavcodec/ffv1.c av_cold int ff_ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs)
fs                 70 libavcodec/ffv1.c     fs->plane_count  = f->plane_count;
fs                 71 libavcodec/ffv1.c     fs->transparency = f->transparency;
fs                 73 libavcodec/ffv1.c         PlaneContext *const p = &fs->plane[j];
fs                 75 libavcodec/ffv1.c         if (fs->ac != AC_GOLOMB_RICE) {
fs                 94 libavcodec/ffv1.c     if (fs->ac == AC_RANGE_CUSTOM_TAB) {
fs                 97 libavcodec/ffv1.c             fs->c. one_state[      j] = f->state_transition[j];
fs                 98 libavcodec/ffv1.c             fs->c.zero_state[256 - j] = 256 - fs->c.one_state[j];
fs                109 libavcodec/ffv1.c         FFV1Context *fs = f->slice_context[i];
fs                110 libavcodec/ffv1.c         if ((ret = ff_ffv1_init_slice_state(f, fs)) < 0)
fs                130 libavcodec/ffv1.c         FFV1Context *fs = av_mallocz(sizeof(*fs));
fs                132 libavcodec/ffv1.c         if (!fs)
fs                135 libavcodec/ffv1.c         f->slice_context[i] = fs;
fs                136 libavcodec/ffv1.c         memcpy(fs, f, sizeof(*fs));
fs                137 libavcodec/ffv1.c         memset(fs->rc_stat2, 0, sizeof(fs->rc_stat2));
fs                139 libavcodec/ffv1.c         fs->slice_width  = sxe - sxs;
fs                140 libavcodec/ffv1.c         fs->slice_height = sye - sys;
fs                141 libavcodec/ffv1.c         fs->slice_x      = sxs;
fs                142 libavcodec/ffv1.c         fs->slice_y      = sys;
fs                144 libavcodec/ffv1.c         fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
fs                145 libavcodec/ffv1.c                                       sizeof(*fs->sample_buffer));
fs                146 libavcodec/ffv1.c         fs->sample_buffer32 = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
fs                147 libavcodec/ffv1.c                                         sizeof(*fs->sample_buffer32));
fs                148 libavcodec/ffv1.c         if (!fs->sample_buffer || !fs->sample_buffer32) {
fs                149 libavcodec/ffv1.c             av_freep(&fs->sample_buffer);
fs                150 libavcodec/ffv1.c             av_freep(&fs->sample_buffer32);
fs                181 libavcodec/ffv1.c void ff_ffv1_clear_slice_state(FFV1Context *f, FFV1Context *fs)
fs                186 libavcodec/ffv1.c         PlaneContext *p = &fs->plane[i];
fs                191 libavcodec/ffv1.c         if (fs->ac != AC_GOLOMB_RICE) {
fs                223 libavcodec/ffv1.c         FFV1Context *fs = s->slice_context[j];
fs                225 libavcodec/ffv1.c             PlaneContext *p = &fs->plane[i];
fs                230 libavcodec/ffv1.c         av_freep(&fs->sample_buffer);
fs                231 libavcodec/ffv1.c         av_freep(&fs->sample_buffer32);
fs                143 libavcodec/ffv1.h int ff_ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs);
fs                147 libavcodec/ffv1.h void ff_ffv1_clear_slice_state(FFV1Context *f, FFV1Context *fs);
fs                164 libavcodec/ffv1dec.c static int decode_slice_header(FFV1Context *f, FFV1Context *fs)
fs                166 libavcodec/ffv1dec.c     RangeCoder *c = &fs->c;
fs                173 libavcodec/ffv1dec.c     fs->slice_x      =  get_symbol(c, state, 0)      * f->width ;
fs                174 libavcodec/ffv1dec.c     fs->slice_y      =  get_symbol(c, state, 0)      * f->height;
fs                175 libavcodec/ffv1dec.c     fs->slice_width  = (get_symbol(c, state, 0) + 1) * f->width  + fs->slice_x;
fs                176 libavcodec/ffv1dec.c     fs->slice_height = (get_symbol(c, state, 0) + 1) * f->height + fs->slice_y;
fs                178 libavcodec/ffv1dec.c     fs->slice_x /= f->num_h_slices;
fs                179 libavcodec/ffv1dec.c     fs->slice_y /= f->num_v_slices;
fs                180 libavcodec/ffv1dec.c     fs->slice_width  = fs->slice_width /f->num_h_slices - fs->slice_x;
fs                181 libavcodec/ffv1dec.c     fs->slice_height = fs->slice_height/f->num_v_slices - fs->slice_y;
fs                182 libavcodec/ffv1dec.c     if ((unsigned)fs->slice_width > f->width || (unsigned)fs->slice_height > f->height)
fs                184 libavcodec/ffv1dec.c     if (    (unsigned)fs->slice_x + (uint64_t)fs->slice_width  > f->width
fs                185 libavcodec/ffv1dec.c          || (unsigned)fs->slice_y + (uint64_t)fs->slice_height > f->height)
fs                189 libavcodec/ffv1dec.c         PlaneContext * const p = &fs->plane[i];
fs                227 libavcodec/ffv1dec.c     if (fs->version > 3) {
fs                228 libavcodec/ffv1dec.c         fs->slice_reset_contexts = get_rac(c, state);
fs                229 libavcodec/ffv1dec.c         fs->slice_coding_mode = get_symbol(c, state, 0);
fs                230 libavcodec/ffv1dec.c         if (fs->slice_coding_mode != 1) {
fs                231 libavcodec/ffv1dec.c             fs->slice_rct_by_coef = get_symbol(c, state, 0);
fs                232 libavcodec/ffv1dec.c             fs->slice_rct_ry_coef = get_symbol(c, state, 0);
fs                233 libavcodec/ffv1dec.c             if ((uint64_t)fs->slice_rct_by_coef + (uint64_t)fs->slice_rct_ry_coef > 4) {
fs                245 libavcodec/ffv1dec.c     FFV1Context *fs   = *(void **)arg;
fs                246 libavcodec/ffv1dec.c     FFV1Context *f    = fs->avctx->priv_data;
fs                252 libavcodec/ffv1dec.c     for( si=0; fs != f->slice_context[si]; si ++)
fs                262 libavcodec/ffv1dec.c         av_assert1(fsdst == fs);
fs                287 libavcodec/ffv1dec.c     fs->slice_rct_by_coef = 1;
fs                288 libavcodec/ffv1dec.c     fs->slice_rct_ry_coef = 1;
fs                291 libavcodec/ffv1dec.c         if (ff_ffv1_init_slice_state(f, fs) < 0)
fs                293 libavcodec/ffv1dec.c         if (decode_slice_header(f, fs) < 0) {
fs                294 libavcodec/ffv1dec.c             fs->slice_x = fs->slice_y = fs->slice_height = fs->slice_width = 0;
fs                295 libavcodec/ffv1dec.c             fs->slice_damaged = 1;
fs                299 libavcodec/ffv1dec.c     if ((ret = ff_ffv1_init_slice_state(f, fs)) < 0)
fs                301 libavcodec/ffv1dec.c     if (f->cur->key_frame || fs->slice_reset_contexts)
fs                302 libavcodec/ffv1dec.c         ff_ffv1_clear_slice_state(f, fs);
fs                304 libavcodec/ffv1dec.c     width  = fs->slice_width;
fs                305 libavcodec/ffv1dec.c     height = fs->slice_height;
fs                306 libavcodec/ffv1dec.c     x      = fs->slice_x;
fs                307 libavcodec/ffv1dec.c     y      = fs->slice_y;
fs                309 libavcodec/ffv1dec.c     if (fs->ac == AC_GOLOMB_RICE) {
fs                311 libavcodec/ffv1dec.c             get_rac(&fs->c, (uint8_t[]) { 129 });
fs                312 libavcodec/ffv1dec.c         fs->ac_byte_count = f->version > 2 || (!x && !y) ? fs->c.bytestream - fs->c.bytestream_start - 1 : 0;
fs                313 libavcodec/ffv1dec.c         init_get_bits(&fs->gb,
fs                314 libavcodec/ffv1dec.c                       fs->c.bytestream_start + fs->ac_byte_count,
fs                315 libavcodec/ffv1dec.c                       (fs->c.bytestream_end - fs->c.bytestream_start - fs->ac_byte_count) * 8);
fs                319 libavcodec/ffv1dec.c     if (f->colorspace == 0 && (f->chroma_planes || !fs->transparency)) {
fs                324 libavcodec/ffv1dec.c         decode_plane(fs, p->data[0] + ps*x + y*p->linesize[0], width, height, p->linesize[0], 0, 1);
fs                327 libavcodec/ffv1dec.c             decode_plane(fs, p->data[1] + ps*cx+cy*p->linesize[1], chroma_width, chroma_height, p->linesize[1], 1, 1);
fs                328 libavcodec/ffv1dec.c             decode_plane(fs, p->data[2] + ps*cx+cy*p->linesize[2], chroma_width, chroma_height, p->linesize[2], 1, 1);
fs                330 libavcodec/ffv1dec.c         if (fs->transparency)
fs                331 libavcodec/ffv1dec.c             decode_plane(fs, p->data[3] + ps*x + y*p->linesize[3], width, height, p->linesize[3], (f->version >= 4 && !f->chroma_planes) ? 1 : 2, 1);
fs                333 libavcodec/ffv1dec.c          decode_plane(fs, p->data[0] + ps*x + y*p->linesize[0]    , width, height, p->linesize[0], 0, 2);
fs                334 libavcodec/ffv1dec.c          decode_plane(fs, p->data[0] + ps*x + y*p->linesize[0] + 1, width, height, p->linesize[0], 1, 2);
fs                340 libavcodec/ffv1dec.c         decode_rgb_frame32(fs, planes, width, height, p->linesize);
fs                346 libavcodec/ffv1dec.c         decode_rgb_frame(fs, planes, width, height, p->linesize);
fs                348 libavcodec/ffv1dec.c     if (fs->ac != AC_GOLOMB_RICE && f->version > 2) {
fs                350 libavcodec/ffv1dec.c         get_rac(&fs->c, (uint8_t[]) { 129 });
fs                351 libavcodec/ffv1dec.c         v = fs->c.bytestream_end - fs->c.bytestream - 2 - 5*f->ec;
fs                354 libavcodec/ffv1dec.c             fs->slice_damaged = 1;
fs                760 libavcodec/ffv1dec.c         FFV1Context *fs = f->slice_context[j];
fs                761 libavcodec/ffv1dec.c         fs->ac            = f->ac;
fs                762 libavcodec/ffv1dec.c         fs->packed_at_lsb = f->packed_at_lsb;
fs                764 libavcodec/ffv1dec.c         fs->slice_damaged = 0;
fs                767 libavcodec/ffv1dec.c             fs->slice_x      =  get_symbol(c, state, 0)      * f->width ;
fs                768 libavcodec/ffv1dec.c             fs->slice_y      =  get_symbol(c, state, 0)      * f->height;
fs                769 libavcodec/ffv1dec.c             fs->slice_width  = (get_symbol(c, state, 0) + 1) * f->width  + fs->slice_x;
fs                770 libavcodec/ffv1dec.c             fs->slice_height = (get_symbol(c, state, 0) + 1) * f->height + fs->slice_y;
fs                772 libavcodec/ffv1dec.c             fs->slice_x     /= f->num_h_slices;
fs                773 libavcodec/ffv1dec.c             fs->slice_y     /= f->num_v_slices;
fs                774 libavcodec/ffv1dec.c             fs->slice_width  = fs->slice_width  / f->num_h_slices - fs->slice_x;
fs                775 libavcodec/ffv1dec.c             fs->slice_height = fs->slice_height / f->num_v_slices - fs->slice_y;
fs                776 libavcodec/ffv1dec.c             if ((unsigned)fs->slice_width  > f->width ||
fs                777 libavcodec/ffv1dec.c                 (unsigned)fs->slice_height > f->height)
fs                779 libavcodec/ffv1dec.c             if (   (unsigned)fs->slice_x + (uint64_t)fs->slice_width  > f->width
fs                780 libavcodec/ffv1dec.c                 || (unsigned)fs->slice_y + (uint64_t)fs->slice_height > f->height)
fs                785 libavcodec/ffv1dec.c             PlaneContext *const p = &fs->plane[i];
fs                887 libavcodec/ffv1dec.c         FFV1Context *fs = f->slice_context[i];
fs                912 libavcodec/ffv1dec.c                 fs->slice_damaged = 1;
fs                920 libavcodec/ffv1dec.c             ff_init_range_decoder(&fs->c, buf_p, v);
fs                922 libavcodec/ffv1dec.c             fs->c.bytestream_end = buf_p + v;
fs                924 libavcodec/ffv1dec.c         fs->avctx = avctx;
fs                925 libavcodec/ffv1dec.c         fs->cur = p;
fs                936 libavcodec/ffv1dec.c         FFV1Context *fs = f->slice_context[i];
fs                938 libavcodec/ffv1dec.c         if (fs->slice_damaged && f->last_picture.f->data[0]) {
fs                948 libavcodec/ffv1dec.c                          (fs->slice_y >> sv) + ((fs->slice_x >> sh) << pixshift);
fs                950 libavcodec/ffv1dec.c                          (fs->slice_y >> sv) + ((fs->slice_x >> sh) << pixshift);
fs                961 libavcodec/ffv1dec.c                           fs->slice_width,
fs                962 libavcodec/ffv1dec.c                           fs->slice_height);
fs                374 libavcodec/ffv1enc.c             FFV1Context *fs = f->slice_context[i];
fs                376 libavcodec/ffv1enc.c                        (fs->slice_x      + 1) * f->num_h_slices / f->width, 0);
fs                378 libavcodec/ffv1enc.c                        (fs->slice_y      + 1) * f->num_v_slices / f->height, 0);
fs                380 libavcodec/ffv1enc.c                        (fs->slice_width  + 1) * f->num_h_slices / f->width - 1,
fs                383 libavcodec/ffv1enc.c                        (fs->slice_height + 1) * f->num_v_slices / f->height - 1,
fs                927 libavcodec/ffv1enc.c static void encode_slice_header(FFV1Context *f, FFV1Context *fs)
fs                929 libavcodec/ffv1enc.c     RangeCoder *c = &fs->c;
fs                934 libavcodec/ffv1enc.c     put_symbol(c, state, (fs->slice_x     +1)*f->num_h_slices / f->width   , 0);
fs                935 libavcodec/ffv1enc.c     put_symbol(c, state, (fs->slice_y     +1)*f->num_v_slices / f->height  , 0);
fs                936 libavcodec/ffv1enc.c     put_symbol(c, state, (fs->slice_width +1)*f->num_h_slices / f->width -1, 0);
fs                937 libavcodec/ffv1enc.c     put_symbol(c, state, (fs->slice_height+1)*f->num_v_slices / f->height-1, 0);
fs                949 libavcodec/ffv1enc.c         put_rac(c, state, fs->slice_coding_mode == 1);
fs                950 libavcodec/ffv1enc.c         if (fs->slice_coding_mode == 1)
fs                951 libavcodec/ffv1enc.c             ff_ffv1_clear_slice_state(f, fs);
fs                952 libavcodec/ffv1enc.c         put_symbol(c, state, fs->slice_coding_mode, 0);
fs                953 libavcodec/ffv1enc.c         if (fs->slice_coding_mode != 1) {
fs                954 libavcodec/ffv1enc.c             put_symbol(c, state, fs->slice_rct_by_coef, 0);
fs                955 libavcodec/ffv1enc.c             put_symbol(c, state, fs->slice_rct_ry_coef, 0);
fs                960 libavcodec/ffv1enc.c static void choose_rct_params(FFV1Context *fs, const uint8_t *src[3], const int stride[3], int w, int h)
fs                985 libavcodec/ffv1enc.c     int lbd = fs->bits_per_raw_sample <= 8;
fs                990 libavcodec/ffv1enc.c             sample[p] = fs->sample_buffer + p*w;
fs               1038 libavcodec/ffv1enc.c     fs->slice_rct_by_coef = rct_y_coeff[best][1];
fs               1039 libavcodec/ffv1enc.c     fs->slice_rct_ry_coef = rct_y_coeff[best][0];
fs               1044 libavcodec/ffv1enc.c     FFV1Context *fs  = *(void **)arg;
fs               1045 libavcodec/ffv1enc.c     FFV1Context *f   = fs->avctx->priv_data;
fs               1046 libavcodec/ffv1enc.c     int width        = fs->slice_width;
fs               1047 libavcodec/ffv1enc.c     int height       = fs->slice_height;
fs               1048 libavcodec/ffv1enc.c     int x            = fs->slice_x;
fs               1049 libavcodec/ffv1enc.c     int y            = fs->slice_y;
fs               1053 libavcodec/ffv1enc.c     RangeCoder c_bak = fs->c;
fs               1059 libavcodec/ffv1enc.c     fs->slice_coding_mode = 0;
fs               1061 libavcodec/ffv1enc.c         choose_rct_params(fs, planes, p->linesize, width, height);
fs               1063 libavcodec/ffv1enc.c         fs->slice_rct_by_coef = 1;
fs               1064 libavcodec/ffv1enc.c         fs->slice_rct_ry_coef = 1;
fs               1069 libavcodec/ffv1enc.c         ff_ffv1_clear_slice_state(f, fs);
fs               1071 libavcodec/ffv1enc.c         encode_slice_header(f, fs);
fs               1073 libavcodec/ffv1enc.c     if (fs->ac == AC_GOLOMB_RICE) {
fs               1074 libavcodec/ffv1enc.c         fs->ac_byte_count = f->version > 2 || (!x && !y) ? ff_rac_terminate(&fs->c, f->version > 2) : 0;
fs               1075 libavcodec/ffv1enc.c         init_put_bits(&fs->pb,
fs               1076 libavcodec/ffv1enc.c                       fs->c.bytestream_start + fs->ac_byte_count,
fs               1077 libavcodec/ffv1enc.c                       fs->c.bytestream_end - fs->c.bytestream_start - fs->ac_byte_count);
fs               1086 libavcodec/ffv1enc.c         ret = encode_plane(fs, p->data[0] + ps*x + y*p->linesize[0], width, height, p->linesize[0], 0, 1);
fs               1089 libavcodec/ffv1enc.c             ret |= encode_plane(fs, p->data[1] + ps*cx+cy*p->linesize[1], chroma_width, chroma_height, p->linesize[1], 1, 1);
fs               1090 libavcodec/ffv1enc.c             ret |= encode_plane(fs, p->data[2] + ps*cx+cy*p->linesize[2], chroma_width, chroma_height, p->linesize[2], 1, 1);
fs               1092 libavcodec/ffv1enc.c         if (fs->transparency)
fs               1093 libavcodec/ffv1enc.c             ret |= encode_plane(fs, p->data[3] + ps*x + y*p->linesize[3], width, height, p->linesize[3], 2, 1);
fs               1095 libavcodec/ffv1enc.c         ret  = encode_plane(fs, p->data[0] +     ps*x + y*p->linesize[0], width, height, p->linesize[0], 0, 2);
fs               1096 libavcodec/ffv1enc.c         ret |= encode_plane(fs, p->data[0] + 1 + ps*x + y*p->linesize[0], width, height, p->linesize[0], 1, 2);
fs               1098 libavcodec/ffv1enc.c         ret = encode_rgb_frame32(fs, planes, width, height, p->linesize);
fs               1100 libavcodec/ffv1enc.c         ret = encode_rgb_frame(fs, planes, width, height, p->linesize);
fs               1105 libavcodec/ffv1enc.c         av_assert0(fs->slice_coding_mode == 0);
fs               1106 libavcodec/ffv1enc.c         if (fs->version < 4 || !fs->ac) {
fs               1111 libavcodec/ffv1enc.c         fs->slice_coding_mode = 1;
fs               1112 libavcodec/ffv1enc.c         fs->c = c_bak;
fs               1143 libavcodec/ffv1enc.c                 FFV1Context *fs = f->slice_context[j];
fs               1145 libavcodec/ffv1enc.c                     f->rc_stat[i][0] += fs->rc_stat[i][0];
fs               1146 libavcodec/ffv1enc.c                     f->rc_stat[i][1] += fs->rc_stat[i][1];
fs               1151 libavcodec/ffv1enc.c                             f->rc_stat2[i][k][m][0] += fs->rc_stat2[i][k][m][0];
fs               1152 libavcodec/ffv1enc.c                             f->rc_stat2[i][k][m][1] += fs->rc_stat2[i][k][m][1];
fs               1219 libavcodec/ffv1enc.c         FFV1Context *fs = f->slice_context[i];
fs               1223 libavcodec/ffv1enc.c             ff_init_range_encoder(&fs->c, start, len);
fs               1225 libavcodec/ffv1enc.c             av_assert0(fs->c.bytestream_end >= fs->c.bytestream_start + len);
fs               1226 libavcodec/ffv1enc.c             av_assert0(fs->c.bytestream < fs->c.bytestream_start + len);
fs               1227 libavcodec/ffv1enc.c             fs->c.bytestream_end = fs->c.bytestream_start + len;
fs               1235 libavcodec/ffv1enc.c         FFV1Context *fs = f->slice_context[i];
fs               1238 libavcodec/ffv1enc.c         if (fs->ac != AC_GOLOMB_RICE) {
fs               1239 libavcodec/ffv1enc.c             bytes = ff_rac_terminate(&fs->c, 1);
fs               1241 libavcodec/ffv1enc.c             flush_put_bits(&fs->pb); // FIXME: nicer padding
fs               1242 libavcodec/ffv1enc.c             bytes = fs->ac_byte_count + (put_bits_count(&fs->pb) + 7) / 8;
fs               1246 libavcodec/ffv1enc.c             memmove(buf_p, fs->c.bytestream_start, bytes);
fs                119 libavcodec/mlpenc.c     int             fs;
fs                501 libavcodec/mlpenc.c         ctx->fs                   = 0x08 + 1;
fs                506 libavcodec/mlpenc.c         ctx->fs                   = 0x0C + 1;
fs                512 libavcodec/mlpenc.c         ctx->fs                   = 0x10 + 1;
fs                517 libavcodec/mlpenc.c         ctx->fs                   = 0x08 + 2;
fs                522 libavcodec/mlpenc.c         ctx->fs                   = 0x0C + 2;
fs                528 libavcodec/mlpenc.c         ctx->fs                   = 0x10 + 2;
fs                788 libavcodec/mlpenc.c     put_bits(&pb,  5, ctx->fs                  );
fs                 49 libavcodec/movtextenc.c #define FONTSIZE_SCALE(s,fs) ((fs) * (s)->font_scale_factor + 0.5)
fs                 35 libavcodec/opusenc_utils.h static inline int bessel_reinit(FFBesselFilter *s, float n, float f0, float fs,
fs                 43 libavcodec/opusenc_utils.h         cfreq = c*f0/fs;
fs                 47 libavcodec/opusenc_utils.h         cfreq = 0.5f - c*f0/fs;
fs                 69 libavcodec/opusenc_utils.h static inline int bessel_init(FFBesselFilter *s, float n, float f0, float fs,
fs                 73 libavcodec/opusenc_utils.h     return bessel_reinit(s, n, f0, fs, highpass);
fs                538 libavfilter/af_anequalizer.c static inline double hz_2_rad(double x, double fs)
fs                540 libavfilter/af_anequalizer.c     return 2 * M_PI * x / fs;
fs                 76 libavfilter/af_superequalizer.c static float hn_lpf(int n, float f, float fs)
fs                 78 libavfilter/af_superequalizer.c     float t = 1 / fs;
fs                 91 libavfilter/af_superequalizer.c static float hn(int n, EqParameter *param, float fs)
fs                 96 libavfilter/af_superequalizer.c     lhn = hn_lpf(n, param[0].upper, fs);
fs                 99 libavfilter/af_superequalizer.c     for (i = 1; i < NBANDS + 1 && param[i].upper < fs / 2; i++) {
fs                100 libavfilter/af_superequalizer.c         float lhn2 = hn_lpf(n, param[i].upper, fs);
fs                124 libavfilter/af_superequalizer.c static void process_param(float *bc, EqParameter *param, float fs)
fs                130 libavfilter/af_superequalizer.c         param[i].upper = i == NBANDS ? fs : bands[i];
fs                163 libavfilter/af_superequalizer.c static void make_fir(SuperEqualizerContext *s, float *lbc, float *rbc, EqParameter *param, float fs)
fs                170 libavfilter/af_superequalizer.c     if (fs <= 0)
fs                173 libavfilter/af_superequalizer.c     process_param(lbc, param, fs);
fs                175 libavfilter/af_superequalizer.c         s->irest[i] = hn(i - winlen / 2, param, fs) * win(s, i - winlen / 2, winlen);
fs                 39 libavfilter/f_streamselect.c     FFFrameSync fs;
fs                 53 libavfilter/f_streamselect.c static int process_frame(FFFrameSync *fs)
fs                 55 libavfilter/f_streamselect.c     AVFilterContext *ctx = fs->parent;
fs                 56 libavfilter/f_streamselect.c     StreamSelectContext *s = fs->opaque;
fs                 61 libavfilter/f_streamselect.c         if ((ret = ff_framesync_get_frame(&s->fs, i, &in[i], 0)) < 0)
fs                 77 libavfilter/f_streamselect.c                 out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, ctx->outputs[i]->time_base);
fs                 95 libavfilter/f_streamselect.c     return ff_framesync_activate(&s->fs);
fs                129 libavfilter/f_streamselect.c     if (s->fs.opaque == s)
fs                132 libavfilter/f_streamselect.c     if ((ret = ff_framesync_init(&s->fs, ctx, ctx->nb_inputs)) < 0)
fs                135 libavfilter/f_streamselect.c     in = s->fs.in;
fs                136 libavfilter/f_streamselect.c     s->fs.opaque = s;
fs                137 libavfilter/f_streamselect.c     s->fs.on_event = process_frame;
fs                150 libavfilter/f_streamselect.c     return ff_framesync_configure(&s->fs);
fs                297 libavfilter/f_streamselect.c     ff_framesync_uninit(&s->fs);
fs                 62 libavfilter/framesync.c static int consume_from_fifos(FFFrameSync *fs);
fs                 69 libavfilter/framesync.c void ff_framesync_preinit(FFFrameSync *fs)
fs                 71 libavfilter/framesync.c     if (fs->class)
fs                 73 libavfilter/framesync.c     fs->class  = &framesync_class;
fs                 74 libavfilter/framesync.c     av_opt_set_defaults(fs);
fs                 77 libavfilter/framesync.c int ff_framesync_init(FFFrameSync *fs, AVFilterContext *parent, unsigned nb_in)
fs                 84 libavfilter/framesync.c     ff_framesync_preinit(fs);
fs                 85 libavfilter/framesync.c     fs->parent = parent;
fs                 86 libavfilter/framesync.c     fs->nb_in  = nb_in;
fs                 88 libavfilter/framesync.c     fs->in = av_calloc(nb_in, sizeof(*fs->in));
fs                 89 libavfilter/framesync.c     if (!fs->in)
fs                 94 libavfilter/framesync.c static void framesync_eof(FFFrameSync *fs)
fs                 96 libavfilter/framesync.c     fs->eof = 1;
fs                 97 libavfilter/framesync.c     fs->frame_ready = 0;
fs                 98 libavfilter/framesync.c     ff_outlink_set_status(fs->parent->outputs[0], AVERROR_EOF, AV_NOPTS_VALUE);
fs                101 libavfilter/framesync.c static void framesync_sync_level_update(FFFrameSync *fs)
fs                105 libavfilter/framesync.c     for (i = 0; i < fs->nb_in; i++)
fs                106 libavfilter/framesync.c         if (fs->in[i].state != STATE_EOF)
fs                107 libavfilter/framesync.c             level = FFMAX(level, fs->in[i].sync);
fs                108 libavfilter/framesync.c     av_assert0(level <= fs->sync_level);
fs                109 libavfilter/framesync.c     if (level < fs->sync_level)
fs                110 libavfilter/framesync.c         av_log(fs, AV_LOG_VERBOSE, "Sync level %u\n", level);
fs                112 libavfilter/framesync.c         fs->sync_level = level;
fs                114 libavfilter/framesync.c         framesync_eof(fs);
fs                117 libavfilter/framesync.c int ff_framesync_configure(FFFrameSync *fs)
fs                121 libavfilter/framesync.c     if (!fs->opt_repeatlast || fs->opt_eof_action == EOF_ACTION_PASS) {
fs                122 libavfilter/framesync.c         fs->opt_repeatlast = 0;
fs                123 libavfilter/framesync.c         fs->opt_eof_action = EOF_ACTION_PASS;
fs                125 libavfilter/framesync.c     if (fs->opt_shortest || fs->opt_eof_action == EOF_ACTION_ENDALL) {
fs                126 libavfilter/framesync.c         fs->opt_shortest = 1;
fs                127 libavfilter/framesync.c         fs->opt_eof_action = EOF_ACTION_ENDALL;
fs                129 libavfilter/framesync.c     if (!fs->opt_repeatlast) {
fs                130 libavfilter/framesync.c         for (i = 1; i < fs->nb_in; i++) {
fs                131 libavfilter/framesync.c             fs->in[i].after = EXT_NULL;
fs                132 libavfilter/framesync.c             fs->in[i].sync  = 0;
fs                135 libavfilter/framesync.c     if (fs->opt_shortest) {
fs                136 libavfilter/framesync.c         for (i = 0; i < fs->nb_in; i++)
fs                137 libavfilter/framesync.c             fs->in[i].after = EXT_STOP;
fs                140 libavfilter/framesync.c     if (!fs->time_base.num) {
fs                141 libavfilter/framesync.c         for (i = 0; i < fs->nb_in; i++) {
fs                142 libavfilter/framesync.c             if (fs->in[i].sync) {
fs                143 libavfilter/framesync.c                 if (fs->time_base.num) {
fs                144 libavfilter/framesync.c                     fs->time_base = av_gcd_q(fs->time_base, fs->in[i].time_base,
fs                147 libavfilter/framesync.c                     fs->time_base = fs->in[i].time_base;
fs                151 libavfilter/framesync.c         if (!fs->time_base.num) {
fs                152 libavfilter/framesync.c             av_log(fs, AV_LOG_ERROR, "Impossible to set time base\n");
fs                155 libavfilter/framesync.c         av_log(fs, AV_LOG_VERBOSE, "Selected %d/%d time base\n",
fs                156 libavfilter/framesync.c                fs->time_base.num, fs->time_base.den);
fs                159 libavfilter/framesync.c     for (i = 0; i < fs->nb_in; i++)
fs                160 libavfilter/framesync.c         fs->in[i].pts = fs->in[i].pts_next = AV_NOPTS_VALUE;
fs                161 libavfilter/framesync.c     fs->sync_level = UINT_MAX;
fs                162 libavfilter/framesync.c     framesync_sync_level_update(fs);
fs                167 libavfilter/framesync.c static int framesync_advance(FFFrameSync *fs)
fs                173 libavfilter/framesync.c     while (!(fs->frame_ready || fs->eof)) {
fs                174 libavfilter/framesync.c         ret = consume_from_fifos(fs);
fs                179 libavfilter/framesync.c         for (i = 0; i < fs->nb_in; i++)
fs                180 libavfilter/framesync.c             if (fs->in[i].have_next && fs->in[i].pts_next < pts)
fs                181 libavfilter/framesync.c                 pts = fs->in[i].pts_next;
fs                183 libavfilter/framesync.c             framesync_eof(fs);
fs                186 libavfilter/framesync.c         for (i = 0; i < fs->nb_in; i++) {
fs                187 libavfilter/framesync.c             if (fs->in[i].pts_next == pts ||
fs                188 libavfilter/framesync.c                 (fs->in[i].before == EXT_INFINITY &&
fs                189 libavfilter/framesync.c                  fs->in[i].state == STATE_BOF)) {
fs                190 libavfilter/framesync.c                 av_frame_free(&fs->in[i].frame);
fs                191 libavfilter/framesync.c                 fs->in[i].frame      = fs->in[i].frame_next;
fs                192 libavfilter/framesync.c                 fs->in[i].pts        = fs->in[i].pts_next;
fs                193 libavfilter/framesync.c                 fs->in[i].frame_next = NULL;
fs                194 libavfilter/framesync.c                 fs->in[i].pts_next   = AV_NOPTS_VALUE;
fs                195 libavfilter/framesync.c                 fs->in[i].have_next  = 0;
fs                196 libavfilter/framesync.c                 fs->in[i].state      = fs->in[i].frame ? STATE_RUN : STATE_EOF;
fs                197 libavfilter/framesync.c                 if (fs->in[i].sync == fs->sync_level && fs->in[i].frame)
fs                198 libavfilter/framesync.c                     fs->frame_ready = 1;
fs                199 libavfilter/framesync.c                 if (fs->in[i].state == STATE_EOF &&
fs                200 libavfilter/framesync.c                     fs->in[i].after == EXT_STOP)
fs                201 libavfilter/framesync.c                     framesync_eof(fs);
fs                204 libavfilter/framesync.c         if (fs->frame_ready)
fs                205 libavfilter/framesync.c             for (i = 0; i < fs->nb_in; i++)
fs                206 libavfilter/framesync.c                 if ((fs->in[i].state == STATE_BOF &&
fs                207 libavfilter/framesync.c                      fs->in[i].before == EXT_STOP))
fs                208 libavfilter/framesync.c                     fs->frame_ready = 0;
fs                209 libavfilter/framesync.c         fs->pts = pts;
fs                214 libavfilter/framesync.c static int64_t framesync_pts_extrapolate(FFFrameSync *fs, unsigned in,
fs                221 libavfilter/framesync.c static void framesync_inject_frame(FFFrameSync *fs, unsigned in, AVFrame *frame)
fs                225 libavfilter/framesync.c     av_assert0(!fs->in[in].have_next);
fs                227 libavfilter/framesync.c     pts = av_rescale_q(frame->pts, fs->in[in].time_base, fs->time_base);
fs                229 libavfilter/framesync.c     fs->in[in].frame_next = frame;
fs                230 libavfilter/framesync.c     fs->in[in].pts_next   = pts;
fs                231 libavfilter/framesync.c     fs->in[in].have_next  = 1;
fs                234 libavfilter/framesync.c static void framesync_inject_status(FFFrameSync *fs, unsigned in, int status, int64_t pts)
fs                236 libavfilter/framesync.c     av_assert0(!fs->in[in].have_next);
fs                237 libavfilter/framesync.c     pts = fs->in[in].state != STATE_RUN || fs->in[in].after == EXT_INFINITY
fs                238 libavfilter/framesync.c         ? INT64_MAX : framesync_pts_extrapolate(fs, in, fs->in[in].pts);
fs                239 libavfilter/framesync.c     fs->in[in].sync = 0;
fs                240 libavfilter/framesync.c     framesync_sync_level_update(fs);
fs                241 libavfilter/framesync.c     fs->in[in].frame_next = NULL;
fs                242 libavfilter/framesync.c     fs->in[in].pts_next   = pts;
fs                243 libavfilter/framesync.c     fs->in[in].have_next  = 1;
fs                246 libavfilter/framesync.c int ff_framesync_get_frame(FFFrameSync *fs, unsigned in, AVFrame **rframe,
fs                254 libavfilter/framesync.c     if (!fs->in[in].frame) {
fs                258 libavfilter/framesync.c     frame = fs->in[in].frame;
fs                262 libavfilter/framesync.c         pts_next = fs->in[in].have_next ? fs->in[in].pts_next : INT64_MAX;
fs                263 libavfilter/framesync.c         for (i = 0; i < fs->nb_in && !need_copy; i++)
fs                264 libavfilter/framesync.c             if (i != in && fs->in[i].sync &&
fs                265 libavfilter/framesync.c                 (!fs->in[i].have_next || fs->in[i].pts_next < pts_next))
fs                275 libavfilter/framesync.c             fs->in[in].frame = NULL;
fs                277 libavfilter/framesync.c         fs->frame_ready = 0;
fs                283 libavfilter/framesync.c void ff_framesync_uninit(FFFrameSync *fs)
fs                287 libavfilter/framesync.c     for (i = 0; i < fs->nb_in; i++) {
fs                288 libavfilter/framesync.c         av_frame_free(&fs->in[i].frame);
fs                289 libavfilter/framesync.c         av_frame_free(&fs->in[i].frame_next);
fs                292 libavfilter/framesync.c     av_freep(&fs->in);
fs                295 libavfilter/framesync.c static int consume_from_fifos(FFFrameSync *fs)
fs                297 libavfilter/framesync.c     AVFilterContext *ctx = fs->parent;
fs                304 libavfilter/framesync.c     for (i = 0; i < fs->nb_in; i++) {
fs                305 libavfilter/framesync.c         if (fs->in[i].have_next || fs->in[i].state == STATE_EOF)
fs                313 libavfilter/framesync.c             framesync_inject_frame(fs, i, frame);
fs                317 libavfilter/framesync.c                 framesync_inject_status(fs, i, status, pts);
fs                326 libavfilter/framesync.c         for (i = 0; i < fs->nb_in; i++)
fs                327 libavfilter/framesync.c             if (!fs->in[i].have_next && fs->in[i].state != STATE_EOF)
fs                334 libavfilter/framesync.c int ff_framesync_activate(FFFrameSync *fs)
fs                338 libavfilter/framesync.c     ret = framesync_advance(fs);
fs                341 libavfilter/framesync.c     if (fs->eof || !fs->frame_ready)
fs                343 libavfilter/framesync.c     ret = fs->on_event(fs);
fs                346 libavfilter/framesync.c     fs->frame_ready = 0;
fs                351 libavfilter/framesync.c int ff_framesync_init_dualinput(FFFrameSync *fs, AVFilterContext *parent)
fs                355 libavfilter/framesync.c     ret = ff_framesync_init(fs, parent, 2);
fs                358 libavfilter/framesync.c     fs->in[0].time_base = parent->inputs[0]->time_base;
fs                359 libavfilter/framesync.c     fs->in[1].time_base = parent->inputs[1]->time_base;
fs                360 libavfilter/framesync.c     fs->in[0].sync   = 2;
fs                361 libavfilter/framesync.c     fs->in[0].before = EXT_STOP;
fs                362 libavfilter/framesync.c     fs->in[0].after  = EXT_INFINITY;
fs                363 libavfilter/framesync.c     fs->in[1].sync   = 1;
fs                364 libavfilter/framesync.c     fs->in[1].before = EXT_NULL;
fs                365 libavfilter/framesync.c     fs->in[1].after  = EXT_INFINITY;
fs                369 libavfilter/framesync.c int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1)
fs                371 libavfilter/framesync.c     AVFilterContext *ctx = fs->parent;
fs                375 libavfilter/framesync.c     if ((ret = ff_framesync_get_frame(fs, 0, &mainpic,   1)) < 0 ||
fs                376 libavfilter/framesync.c         (ret = ff_framesync_get_frame(fs, 1, &secondpic, 0)) < 0) {
fs                381 libavfilter/framesync.c     mainpic->pts = av_rescale_q(fs->pts, fs->time_base, ctx->outputs[0]->time_base);
fs                389 libavfilter/framesync.c int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1)
fs                393 libavfilter/framesync.c     ret = ff_framesync_dualinput_get(fs, f0, f1);
fs                396 libavfilter/framesync.c     ret = ff_inlink_make_frame_writable(fs->parent->inputs[0], f0);
fs                172 libavfilter/framesync.h     int (*on_event)(struct FFFrameSync *fs);
fs                223 libavfilter/framesync.h void ff_framesync_preinit(FFFrameSync *fs);
fs                235 libavfilter/framesync.h int ff_framesync_init(FFFrameSync *fs, AVFilterContext *parent, unsigned nb_in);
fs                244 libavfilter/framesync.h int ff_framesync_configure(FFFrameSync *fs);
fs                249 libavfilter/framesync.h void ff_framesync_uninit(FFFrameSync *fs);
fs                261 libavfilter/framesync.h int ff_framesync_get_frame(FFFrameSync *fs, unsigned in, AVFrame **rframe,
fs                270 libavfilter/framesync.h int ff_framesync_activate(FFFrameSync *fs);
fs                283 libavfilter/framesync.h int ff_framesync_init_dualinput(FFFrameSync *fs, AVFilterContext *parent);
fs                293 libavfilter/framesync.h int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);
fs                298 libavfilter/framesync.h int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);
fs                311 libavfilter/framesync.h     s->fs.class = ff_framesync_get_class(); /* FIXME */ \
fs                 34 libavfilter/maskedmerge.h     FFFrameSync fs;
fs                 46 libavfilter/threshold.h     FFFrameSync fs;
fs                 38 libavfilter/vf_blend.c     FFFrameSync fs;
fs                123 libavfilter/vf_blend.c FRAMESYNC_DEFINE_CLASS(blend, BlendContext, fs);
fs                639 libavfilter/vf_blend.c static int blend_frame_for_dualinput(FFFrameSync *fs)
fs                641 libavfilter/vf_blend.c     AVFilterContext *ctx = fs->parent;
fs                645 libavfilter/vf_blend.c     ret = ff_framesync_dualinput_get(fs, &top_buf, &bottom_buf);
fs                660 libavfilter/vf_blend.c     s->fs.on_event = blend_frame_for_dualinput;
fs                697 libavfilter/vf_blend.c     ff_framesync_uninit(&s->fs);
fs                824 libavfilter/vf_blend.c         if ((ret = ff_framesync_init_dualinput(&s->fs, ctx)) < 0)
fs                854 libavfilter/vf_blend.c     ret = ff_framesync_configure(&s->fs);
fs                855 libavfilter/vf_blend.c     outlink->time_base = s->fs.time_base;
fs                865 libavfilter/vf_blend.c     return ff_framesync_activate(&s->fs);
fs                114 libavfilter/vf_bm3d.c     FFFrameSync fs;
fs                884 libavfilter/vf_bm3d.c         return ff_framesync_activate(&s->fs);
fs                888 libavfilter/vf_bm3d.c static int process_frame(FFFrameSync *fs)
fs                890 libavfilter/vf_bm3d.c     AVFilterContext *ctx = fs->parent;
fs                891 libavfilter/vf_bm3d.c     BM3DContext *s = fs->opaque;
fs                896 libavfilter/vf_bm3d.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &src, 0)) < 0 ||
fs                897 libavfilter/vf_bm3d.c         (ret = ff_framesync_get_frame(&s->fs, 1, &ref, 0)) < 0)
fs                903 libavfilter/vf_bm3d.c     out->pts = av_rescale_q(src->pts, s->fs.time_base, outlink->time_base);
fs               1007 libavfilter/vf_bm3d.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
fs               1010 libavfilter/vf_bm3d.c     in = s->fs.in;
fs               1019 libavfilter/vf_bm3d.c     s->fs.opaque   = s;
fs               1020 libavfilter/vf_bm3d.c     s->fs.on_event = process_frame;
fs               1022 libavfilter/vf_bm3d.c     return ff_framesync_configure(&s->fs);
fs               1034 libavfilter/vf_bm3d.c         ff_framesync_uninit(&s->fs);
fs                 38 libavfilter/vf_convolve.c     FFFrameSync fs;
fs                445 libavfilter/vf_convolve.c static int do_convolve(FFFrameSync *fs)
fs                447 libavfilter/vf_convolve.c     AVFilterContext *ctx = fs->parent;
fs                453 libavfilter/vf_convolve.c     ret = ff_framesync_dualinput_get(fs, &mainpic, &impulsepic);
fs                534 libavfilter/vf_convolve.c     s->fs.on_event = do_convolve;
fs                535 libavfilter/vf_convolve.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
fs                544 libavfilter/vf_convolve.c     if ((ret = ff_framesync_configure(&s->fs)) < 0)
fs                562 libavfilter/vf_convolve.c     return ff_framesync_activate(&s->fs);
fs                599 libavfilter/vf_convolve.c     ff_framesync_uninit(&s->fs);
fs                626 libavfilter/vf_convolve.c FRAMESYNC_DEFINE_CLASS(convolve, ConvolveContext, fs);
fs                656 libavfilter/vf_convolve.c FRAMESYNC_DEFINE_CLASS(deconvolve, ConvolveContext, fs);
fs                 46 libavfilter/vf_displace.c     FFFrameSync fs;
fs                243 libavfilter/vf_displace.c static int process_frame(FFFrameSync *fs)
fs                245 libavfilter/vf_displace.c     AVFilterContext *ctx = fs->parent;
fs                246 libavfilter/vf_displace.c     DisplaceContext *s = fs->opaque;
fs                251 libavfilter/vf_displace.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &in,   0)) < 0 ||
fs                252 libavfilter/vf_displace.c         (ret = ff_framesync_get_frame(&s->fs, 1, &xpic, 0)) < 0 ||
fs                253 libavfilter/vf_displace.c         (ret = ff_framesync_get_frame(&s->fs, 2, &ypic, 0)) < 0)
fs                268 libavfilter/vf_displace.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                338 libavfilter/vf_displace.c     ret = ff_framesync_init(&s->fs, ctx, 3);
fs                342 libavfilter/vf_displace.c     in = s->fs.in;
fs                355 libavfilter/vf_displace.c     s->fs.opaque   = s;
fs                356 libavfilter/vf_displace.c     s->fs.on_event = process_frame;
fs                358 libavfilter/vf_displace.c     ret = ff_framesync_configure(&s->fs);
fs                359 libavfilter/vf_displace.c     outlink->time_base = s->fs.time_base;
fs                367 libavfilter/vf_displace.c     return ff_framesync_activate(&s->fs);
fs                374 libavfilter/vf_displace.c     ff_framesync_uninit(&s->fs);
fs                 36 libavfilter/vf_hysteresis.c     FFFrameSync fs;
fs                 87 libavfilter/vf_hysteresis.c static int process_frame(FFFrameSync *fs)
fs                 89 libavfilter/vf_hysteresis.c     AVFilterContext *ctx = fs->parent;
fs                 90 libavfilter/vf_hysteresis.c     HysteresisContext *s = fs->opaque;
fs                 95 libavfilter/vf_hysteresis.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &base, 0)) < 0 ||
fs                 96 libavfilter/vf_hysteresis.c         (ret = ff_framesync_get_frame(&s->fs, 1, &alt,  0)) < 0)
fs                135 libavfilter/vf_hysteresis.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                317 libavfilter/vf_hysteresis.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
fs                320 libavfilter/vf_hysteresis.c     in = s->fs.in;
fs                329 libavfilter/vf_hysteresis.c     s->fs.opaque   = s;
fs                330 libavfilter/vf_hysteresis.c     s->fs.on_event = process_frame;
fs                332 libavfilter/vf_hysteresis.c     ret = ff_framesync_configure(&s->fs);
fs                333 libavfilter/vf_hysteresis.c     outlink->time_base = s->fs.time_base;
fs                341 libavfilter/vf_hysteresis.c     return ff_framesync_activate(&s->fs);
fs                348 libavfilter/vf_hysteresis.c     ff_framesync_uninit(&s->fs);
fs                353 libavfilter/vf_hysteresis.c FRAMESYNC_DEFINE_CLASS(hysteresis, HysteresisContext, fs);
fs                 41 libavfilter/vf_libvmaf.c     FFFrameSync fs;
fs                 90 libavfilter/vf_libvmaf.c FRAMESYNC_DEFINE_CLASS(libvmaf, LIBVMAFContext, fs);
fs                195 libavfilter/vf_libvmaf.c static int do_vmaf(FFFrameSync *fs)
fs                197 libavfilter/vf_libvmaf.c     AVFilterContext *ctx = fs->parent;
fs                202 libavfilter/vf_libvmaf.c     ret = ff_framesync_dualinput_get(fs, &master, &ref);
fs                247 libavfilter/vf_libvmaf.c     s->fs.on_event = do_vmaf;
fs                303 libavfilter/vf_libvmaf.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
fs                311 libavfilter/vf_libvmaf.c     if ((ret = ff_framesync_configure(&s->fs)) < 0)
fs                320 libavfilter/vf_libvmaf.c     return ff_framesync_activate(&s->fs);
fs                327 libavfilter/vf_libvmaf.c     ff_framesync_uninit(&s->fs);
fs                 55 libavfilter/vf_lut2.c     FFFrameSync fs;
fs                 97 libavfilter/vf_lut2.c     ff_framesync_uninit(&s->fs);
fs                291 libavfilter/vf_lut2.c static int process_frame(FFFrameSync *fs)
fs                293 libavfilter/vf_lut2.c     AVFilterContext *ctx = fs->parent;
fs                294 libavfilter/vf_lut2.c     LUT2Context *s = fs->opaque;
fs                299 libavfilter/vf_lut2.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &srcx, 0)) < 0 ||
fs                300 libavfilter/vf_lut2.c         (ret = ff_framesync_get_frame(&s->fs, 1, &srcy, 0)) < 0)
fs                321 libavfilter/vf_lut2.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                493 libavfilter/vf_lut2.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
fs                496 libavfilter/vf_lut2.c     in = s->fs.in;
fs                505 libavfilter/vf_lut2.c     s->fs.opaque   = s;
fs                506 libavfilter/vf_lut2.c     s->fs.on_event = process_frame;
fs                511 libavfilter/vf_lut2.c     ret = ff_framesync_configure(&s->fs);
fs                512 libavfilter/vf_lut2.c     outlink->time_base = s->fs.time_base;
fs                520 libavfilter/vf_lut2.c     return ff_framesync_activate(&s->fs);
fs                548 libavfilter/vf_lut2.c FRAMESYNC_DEFINE_CLASS(lut2, LUT2Context, fs);
fs                 91 libavfilter/vf_lut3d.c     FFFrameSync fs;
fs               1365 libavfilter/vf_lut3d.c     ret = ff_framesync_init_dualinput(&lut3d->fs, ctx);
fs               1371 libavfilter/vf_lut3d.c     if ((ret = ff_framesync_configure(&lut3d->fs)) < 0)
fs               1379 libavfilter/vf_lut3d.c     return ff_framesync_activate(&s->fs);
fs               1426 libavfilter/vf_lut3d.c static int update_apply_clut(FFFrameSync *fs)
fs               1428 libavfilter/vf_lut3d.c     AVFilterContext *ctx = fs->parent;
fs               1434 libavfilter/vf_lut3d.c     ret = ff_framesync_dualinput_get(fs, &master, &second);
fs               1453 libavfilter/vf_lut3d.c     lut3d->fs.on_event = update_apply_clut;
fs               1460 libavfilter/vf_lut3d.c     ff_framesync_uninit(&lut3d->fs);
fs               1468 libavfilter/vf_lut3d.c FRAMESYNC_DEFINE_CLASS(haldclut, LUT3DContext, fs);
fs                 49 libavfilter/vf_maskedclamp.c     FFFrameSync fs;
fs                132 libavfilter/vf_maskedclamp.c static int process_frame(FFFrameSync *fs)
fs                134 libavfilter/vf_maskedclamp.c     AVFilterContext *ctx = fs->parent;
fs                135 libavfilter/vf_maskedclamp.c     MaskedClampContext *s = fs->opaque;
fs                140 libavfilter/vf_maskedclamp.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &base,   0)) < 0 ||
fs                141 libavfilter/vf_maskedclamp.c         (ret = ff_framesync_get_frame(&s->fs, 1, &dark,   0)) < 0 ||
fs                142 libavfilter/vf_maskedclamp.c         (ret = ff_framesync_get_frame(&s->fs, 2, &bright, 0)) < 0)
fs                165 libavfilter/vf_maskedclamp.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                255 libavfilter/vf_maskedclamp.c     if ((ret = ff_framesync_init(&s->fs, ctx, 3)) < 0)
fs                258 libavfilter/vf_maskedclamp.c     in = s->fs.in;
fs                271 libavfilter/vf_maskedclamp.c     s->fs.opaque   = s;
fs                272 libavfilter/vf_maskedclamp.c     s->fs.on_event = process_frame;
fs                274 libavfilter/vf_maskedclamp.c     ret = ff_framesync_configure(&s->fs);
fs                275 libavfilter/vf_maskedclamp.c     outlink->time_base = s->fs.time_base;
fs                283 libavfilter/vf_maskedclamp.c     return ff_framesync_activate(&s->fs);
fs                290 libavfilter/vf_maskedclamp.c     ff_framesync_uninit(&s->fs);
fs                109 libavfilter/vf_maskedmerge.c static int process_frame(FFFrameSync *fs)
fs                111 libavfilter/vf_maskedmerge.c     AVFilterContext *ctx = fs->parent;
fs                112 libavfilter/vf_maskedmerge.c     MaskedMergeContext *s = fs->opaque;
fs                118 libavfilter/vf_maskedmerge.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &base,    0)) < 0 ||
fs                119 libavfilter/vf_maskedmerge.c         (ret = ff_framesync_get_frame(&s->fs, 1, &overlay, 0)) < 0 ||
fs                120 libavfilter/vf_maskedmerge.c         (ret = ff_framesync_get_frame(&s->fs, 2, &mask,    0)) < 0)
fs                140 libavfilter/vf_maskedmerge.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                256 libavfilter/vf_maskedmerge.c     if ((ret = ff_framesync_init(&s->fs, ctx, 3)) < 0)
fs                259 libavfilter/vf_maskedmerge.c     in = s->fs.in;
fs                272 libavfilter/vf_maskedmerge.c     s->fs.opaque   = s;
fs                273 libavfilter/vf_maskedmerge.c     s->fs.on_event = process_frame;
fs                275 libavfilter/vf_maskedmerge.c     ret = ff_framesync_configure(&s->fs);
fs                276 libavfilter/vf_maskedmerge.c     outlink->time_base = s->fs.time_base;
fs                284 libavfilter/vf_maskedmerge.c     return ff_framesync_activate(&s->fs);
fs                291 libavfilter/vf_maskedmerge.c     ff_framesync_uninit(&s->fs);
fs                 47 libavfilter/vf_maskedminmax.c     FFFrameSync fs;
fs                194 libavfilter/vf_maskedminmax.c static int process_frame(FFFrameSync *fs)
fs                196 libavfilter/vf_maskedminmax.c     AVFilterContext *ctx = fs->parent;
fs                197 libavfilter/vf_maskedminmax.c     MaskedMinMaxContext *s = fs->opaque;
fs                202 libavfilter/vf_maskedminmax.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &src, 0)) < 0 ||
fs                203 libavfilter/vf_maskedminmax.c         (ret = ff_framesync_get_frame(&s->fs, 1, &f1,  0)) < 0 ||
fs                204 libavfilter/vf_maskedminmax.c         (ret = ff_framesync_get_frame(&s->fs, 2, &f2,  0)) < 0)
fs                227 libavfilter/vf_maskedminmax.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                264 libavfilter/vf_maskedminmax.c     if ((ret = ff_framesync_init(&s->fs, ctx, 3)) < 0)
fs                267 libavfilter/vf_maskedminmax.c     in = s->fs.in;
fs                280 libavfilter/vf_maskedminmax.c     s->fs.opaque   = s;
fs                281 libavfilter/vf_maskedminmax.c     s->fs.on_event = process_frame;
fs                283 libavfilter/vf_maskedminmax.c     ret = ff_framesync_configure(&s->fs);
fs                284 libavfilter/vf_maskedminmax.c     outlink->time_base = s->fs.time_base;
fs                292 libavfilter/vf_maskedminmax.c     return ff_framesync_activate(&s->fs);
fs                299 libavfilter/vf_maskedminmax.c     ff_framesync_uninit(&s->fs);
fs                 40 libavfilter/vf_maskedthreshold.c     FFFrameSync fs;
fs                166 libavfilter/vf_maskedthreshold.c static int process_frame(FFFrameSync *fs)
fs                168 libavfilter/vf_maskedthreshold.c     AVFilterContext *ctx = fs->parent;
fs                169 libavfilter/vf_maskedthreshold.c     MaskedThresholdContext *s = fs->opaque;
fs                174 libavfilter/vf_maskedthreshold.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &src, 0)) < 0 ||
fs                175 libavfilter/vf_maskedthreshold.c         (ret = ff_framesync_get_frame(&s->fs, 1, &ref, 0)) < 0)
fs                197 libavfilter/vf_maskedthreshold.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                229 libavfilter/vf_maskedthreshold.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
fs                232 libavfilter/vf_maskedthreshold.c     in = s->fs.in;
fs                241 libavfilter/vf_maskedthreshold.c     s->fs.opaque   = s;
fs                242 libavfilter/vf_maskedthreshold.c     s->fs.on_event = process_frame;
fs                244 libavfilter/vf_maskedthreshold.c     ret = ff_framesync_configure(&s->fs);
fs                245 libavfilter/vf_maskedthreshold.c     outlink->time_base = s->fs.time_base;
fs                253 libavfilter/vf_maskedthreshold.c     return ff_framesync_activate(&s->fs);
fs                260 libavfilter/vf_maskedthreshold.c     ff_framesync_uninit(&s->fs);
fs                 48 libavfilter/vf_mergeplanes.c     FFFrameSync fs;
fs                136 libavfilter/vf_mergeplanes.c static int process_frame(FFFrameSync *fs)
fs                138 libavfilter/vf_mergeplanes.c     AVFilterContext *ctx = fs->parent;
fs                140 libavfilter/vf_mergeplanes.c     MergePlanesContext *s = fs->opaque;
fs                146 libavfilter/vf_mergeplanes.c         if ((ret = ff_framesync_get_frame(&s->fs, i, &in[i], 0)) < 0)
fs                153 libavfilter/vf_mergeplanes.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                175 libavfilter/vf_mergeplanes.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
fs                178 libavfilter/vf_mergeplanes.c     in = s->fs.in;
fs                179 libavfilter/vf_mergeplanes.c     s->fs.opaque = s;
fs                180 libavfilter/vf_mergeplanes.c     s->fs.on_event = process_frame;
fs                268 libavfilter/vf_mergeplanes.c     return ff_framesync_configure(&s->fs);
fs                276 libavfilter/vf_mergeplanes.c     return ff_framesync_activate(&s->fs);
fs                284 libavfilter/vf_mergeplanes.c     ff_framesync_uninit(&s->fs);
fs                 38 libavfilter/vf_midequalizer.c     FFFrameSync fs;
fs                 89 libavfilter/vf_midequalizer.c static int process_frame(FFFrameSync *fs)
fs                 91 libavfilter/vf_midequalizer.c     AVFilterContext *ctx = fs->parent;
fs                 92 libavfilter/vf_midequalizer.c     MidEqualizerContext *s = fs->opaque;
fs                 97 libavfilter/vf_midequalizer.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &in0, 0)) < 0 ||
fs                 98 libavfilter/vf_midequalizer.c         (ret = ff_framesync_get_frame(&s->fs, 1, &in1, 0)) < 0)
fs                130 libavfilter/vf_midequalizer.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                318 libavfilter/vf_midequalizer.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
fs                321 libavfilter/vf_midequalizer.c     in = s->fs.in;
fs                330 libavfilter/vf_midequalizer.c     s->fs.opaque   = s;
fs                331 libavfilter/vf_midequalizer.c     s->fs.on_event = process_frame;
fs                333 libavfilter/vf_midequalizer.c     ret = ff_framesync_configure(&s->fs);
fs                334 libavfilter/vf_midequalizer.c     outlink->time_base = s->fs.time_base;
fs                342 libavfilter/vf_midequalizer.c     return ff_framesync_activate(&s->fs);
fs                349 libavfilter/vf_midequalizer.c     ff_framesync_uninit(&s->fs);
fs                 53 libavfilter/vf_mix.c     FFFrameSync fs;
fs                192 libavfilter/vf_mix.c static int process_frame(FFFrameSync *fs)
fs                194 libavfilter/vf_mix.c     AVFilterContext *ctx = fs->parent;
fs                196 libavfilter/vf_mix.c     MixContext *s = fs->opaque;
fs                203 libavfilter/vf_mix.c         if ((ret = ff_framesync_get_frame(&s->fs, i, &in[i], 0)) < 0)
fs                210 libavfilter/vf_mix.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                261 libavfilter/vf_mix.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
fs                264 libavfilter/vf_mix.c     in = s->fs.in;
fs                265 libavfilter/vf_mix.c     s->fs.opaque = s;
fs                266 libavfilter/vf_mix.c     s->fs.on_event = process_frame;
fs                277 libavfilter/vf_mix.c     ret = ff_framesync_configure(&s->fs);
fs                278 libavfilter/vf_mix.c     outlink->time_base = s->fs.time_base;
fs                288 libavfilter/vf_mix.c     ff_framesync_uninit(&s->fs);
fs                304 libavfilter/vf_mix.c     return ff_framesync_activate(&s->fs);
fs                 85 libavfilter/vf_overlay.c     ff_framesync_uninit(&s->fs);
fs                333 libavfilter/vf_overlay.c     if ((ret = ff_framesync_init_dualinput(&s->fs, ctx)) < 0)
fs                340 libavfilter/vf_overlay.c     return ff_framesync_configure(&s->fs);
fs                930 libavfilter/vf_overlay.c static int do_blend(FFFrameSync *fs)
fs                932 libavfilter/vf_overlay.c     AVFilterContext *ctx = fs->parent;
fs                938 libavfilter/vf_overlay.c     ret = ff_framesync_dualinput_get_writable(fs, &mainpic, &second);
fs                980 libavfilter/vf_overlay.c     s->fs.on_event = do_blend;
fs                987 libavfilter/vf_overlay.c     return ff_framesync_activate(&s->fs);
fs                997 libavfilter/vf_overlay.c         OFFSET(fs.opt_eof_action), AV_OPT_TYPE_INT, { .i64 = EOF_ACTION_REPEAT },
fs               1005 libavfilter/vf_overlay.c     { "shortest", "force termination when the shortest input terminates", OFFSET(fs.opt_shortest), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS },
fs               1013 libavfilter/vf_overlay.c     { "repeatlast", "repeat overlay of the last overlay frame", OFFSET(fs.opt_repeatlast), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
fs               1020 libavfilter/vf_overlay.c FRAMESYNC_DEFINE_CLASS(overlay, OverlayContext, fs);
fs                 66 libavfilter/vf_overlay.h     FFFrameSync fs;
fs                 73 libavfilter/vf_overlay_cuda.c     FFFrameSync fs;
fs                140 libavfilter/vf_overlay_cuda.c static int overlay_cuda_blend(FFFrameSync *fs)
fs                144 libavfilter/vf_overlay_cuda.c     AVFilterContext *avctx = fs->parent;
fs                156 libavfilter/vf_overlay_cuda.c     ret = ff_framesync_dualinput_get(fs, &input_main, &input_overlay);
fs                235 libavfilter/vf_overlay_cuda.c     ctx->fs.on_event = &overlay_cuda_blend;
fs                247 libavfilter/vf_overlay_cuda.c     ff_framesync_uninit(&ctx->fs);
fs                265 libavfilter/vf_overlay_cuda.c     return ff_framesync_activate(&ctx->fs);
fs                343 libavfilter/vf_overlay_cuda.c     ctx->fs.time_base = inlink->time_base;
fs                374 libavfilter/vf_overlay_cuda.c     err = ff_framesync_init_dualinput(&ctx->fs, avctx);
fs                379 libavfilter/vf_overlay_cuda.c     return ff_framesync_configure(&ctx->fs);
fs                392 libavfilter/vf_overlay_cuda.c         OFFSET(fs.opt_eof_action), AV_OPT_TYPE_INT, { .i64 = EOF_ACTION_REPEAT },
fs                397 libavfilter/vf_overlay_cuda.c     { "shortest", "force termination when the shortest input terminates", OFFSET(fs.opt_shortest), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS },
fs                398 libavfilter/vf_overlay_cuda.c     { "repeatlast", "repeat overlay of the last overlay frame", OFFSET(fs.opt_repeatlast), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
fs                402 libavfilter/vf_overlay_cuda.c FRAMESYNC_DEFINE_CLASS(overlay_cuda, OverlayCUDAContext, fs);
fs                 38 libavfilter/vf_overlay_opencl.c     FFFrameSync      fs;
fs                120 libavfilter/vf_overlay_opencl.c static int overlay_opencl_blend(FFFrameSync *fs)
fs                122 libavfilter/vf_overlay_opencl.c     AVFilterContext    *avctx = fs->parent;
fs                133 libavfilter/vf_overlay_opencl.c     err = ff_framesync_get_frame(fs, 0, &input_main, 0);
fs                136 libavfilter/vf_overlay_opencl.c     err = ff_framesync_get_frame(fs, 1, &input_overlay, 0);
fs                234 libavfilter/vf_overlay_opencl.c     err = ff_framesync_init_dualinput(&ctx->fs, avctx);
fs                238 libavfilter/vf_overlay_opencl.c     return ff_framesync_configure(&ctx->fs);
fs                245 libavfilter/vf_overlay_opencl.c     ctx->fs.on_event = &overlay_opencl_blend;
fs                254 libavfilter/vf_overlay_opencl.c     return ff_framesync_activate(&ctx->fs);
fs                278 libavfilter/vf_overlay_opencl.c     ff_framesync_uninit(&ctx->fs);
fs                 63 libavfilter/vf_overlay_qsv.c     FFFrameSync fs;
fs                 93 libavfilter/vf_overlay_qsv.c         OFFSET(fs.opt_eof_action), AV_OPT_TYPE_INT, { .i64 = EOF_ACTION_REPEAT },
fs                 98 libavfilter/vf_overlay_qsv.c     { "shortest", "force termination when the shortest input terminates", OFFSET(fs.opt_shortest), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS },
fs                 99 libavfilter/vf_overlay_qsv.c     { "repeatlast", "repeat overlay of the last overlay frame", OFFSET(fs.opt_repeatlast), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
fs                103 libavfilter/vf_overlay_qsv.c FRAMESYNC_DEFINE_CLASS(overlay_qsv, QSVOverlayContext, fs);
fs                231 libavfilter/vf_overlay_qsv.c static int process_frame(FFFrameSync *fs)
fs                233 libavfilter/vf_overlay_qsv.c     AVFilterContext  *ctx = fs->parent;
fs                234 libavfilter/vf_overlay_qsv.c     QSVOverlayContext  *s = fs->opaque;
fs                239 libavfilter/vf_overlay_qsv.c         ret = ff_framesync_get_frame(fs, i, &frame, 0);
fs                254 libavfilter/vf_overlay_qsv.c     s->fs.on_event = process_frame;
fs                255 libavfilter/vf_overlay_qsv.c     s->fs.opaque   = s;
fs                256 libavfilter/vf_overlay_qsv.c     ret = ff_framesync_init(&s->fs, ctx, ctx->nb_inputs);
fs                261 libavfilter/vf_overlay_qsv.c         FFFrameSyncIn *in = &s->fs.in[i];
fs                268 libavfilter/vf_overlay_qsv.c     return ff_framesync_configure(&s->fs);
fs                315 libavfilter/vf_overlay_qsv.c     frame->pts = av_rescale_q(s->fs.pts,
fs                316 libavfilter/vf_overlay_qsv.c                               s->fs.time_base, outlink->time_base);
fs                353 libavfilter/vf_overlay_qsv.c     ff_framesync_uninit(&vpp->fs);
fs                361 libavfilter/vf_overlay_qsv.c     return ff_framesync_activate(&s->fs);
fs                 33 libavfilter/vf_overlay_vulkan.c     FFFrameSync fs;
fs                349 libavfilter/vf_overlay_vulkan.c static int overlay_vulkan_blend(FFFrameSync *fs)
fs                352 libavfilter/vf_overlay_vulkan.c     AVFilterContext *ctx = fs->parent;
fs                357 libavfilter/vf_overlay_vulkan.c     err = ff_framesync_get_frame(fs, 0, &input_main, 0);
fs                360 libavfilter/vf_overlay_vulkan.c     err = ff_framesync_get_frame(fs, 1, &input_overlay, 0);
fs                410 libavfilter/vf_overlay_vulkan.c     err = ff_framesync_init_dualinput(&s->fs, avctx);
fs                414 libavfilter/vf_overlay_vulkan.c     return ff_framesync_configure(&s->fs);
fs                421 libavfilter/vf_overlay_vulkan.c     return ff_framesync_activate(&s->fs);
fs                428 libavfilter/vf_overlay_vulkan.c     s->fs.on_event = &overlay_vulkan_blend;
fs                438 libavfilter/vf_overlay_vulkan.c     ff_framesync_uninit(&s->fs);
fs                 85 libavfilter/vf_paletteuse.c     FFFrameSync fs;
fs                137 libavfilter/vf_paletteuse.c static int load_apply_palette(FFFrameSync *fs);
fs                945 libavfilter/vf_paletteuse.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
fs                948 libavfilter/vf_paletteuse.c     s->fs.opt_repeatlast = 1; // only 1 frame in the palette
fs                949 libavfilter/vf_paletteuse.c     s->fs.in[1].before = s->fs.in[1].after = EXT_INFINITY;
fs                950 libavfilter/vf_paletteuse.c     s->fs.on_event = load_apply_palette;
fs                956 libavfilter/vf_paletteuse.c     if ((ret = ff_framesync_configure(&s->fs)) < 0)
fs               1010 libavfilter/vf_paletteuse.c static int load_apply_palette(FFFrameSync *fs)
fs               1012 libavfilter/vf_paletteuse.c     AVFilterContext *ctx = fs->parent;
fs               1019 libavfilter/vf_paletteuse.c     ret = ff_framesync_dualinput_get_writable(fs, &master, &second);
fs               1106 libavfilter/vf_paletteuse.c     return ff_framesync_activate(&s->fs);
fs               1114 libavfilter/vf_paletteuse.c     ff_framesync_uninit(&s->fs);
fs                 44 libavfilter/vf_premultiply.c     FFFrameSync fs;
fs                531 libavfilter/vf_premultiply.c static int process_frame(FFFrameSync *fs)
fs                533 libavfilter/vf_premultiply.c     AVFilterContext *ctx = fs->parent;
fs                534 libavfilter/vf_premultiply.c     PreMultiplyContext *s = fs->opaque;
fs                539 libavfilter/vf_premultiply.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &base,  0)) < 0 ||
fs                540 libavfilter/vf_premultiply.c         (ret = ff_framesync_get_frame(&s->fs, 1, &alpha, 0)) < 0)
fs                546 libavfilter/vf_premultiply.c     out->pts = av_rescale_q(base->pts, s->fs.time_base, outlink->time_base);
fs                614 libavfilter/vf_premultiply.c     if ((ret = ff_framesync_init(&s->fs, ctx, 2)) < 0)
fs                617 libavfilter/vf_premultiply.c     in = s->fs.in;
fs                626 libavfilter/vf_premultiply.c     s->fs.opaque   = s;
fs                627 libavfilter/vf_premultiply.c     s->fs.on_event = process_frame;
fs                629 libavfilter/vf_premultiply.c     return ff_framesync_configure(&s->fs);
fs                662 libavfilter/vf_premultiply.c         return ff_framesync_activate(&s->fs);
fs                707 libavfilter/vf_premultiply.c         ff_framesync_uninit(&s->fs);
fs                 39 libavfilter/vf_program_opencl.c     FFFrameSync         fs;
fs                186 libavfilter/vf_program_opencl.c static int program_opencl_filter(FFFrameSync *fs)
fs                188 libavfilter/vf_program_opencl.c     AVFilterContext    *avctx = fs->parent;
fs                193 libavfilter/vf_program_opencl.c         err = ff_framesync_get_frame(&ctx->fs, i, &ctx->frames[i], 0);
fs                207 libavfilter/vf_program_opencl.c     return ff_framesync_activate(&ctx->fs);
fs                224 libavfilter/vf_program_opencl.c         err = ff_framesync_init(&ctx->fs, avctx, ctx->nb_inputs);
fs                228 libavfilter/vf_program_opencl.c         ctx->fs.opaque = ctx;
fs                229 libavfilter/vf_program_opencl.c         ctx->fs.on_event = &program_opencl_filter;
fs                231 libavfilter/vf_program_opencl.c         in = ctx->fs.in;
fs                241 libavfilter/vf_program_opencl.c         err = ff_framesync_configure(&ctx->fs);
fs                308 libavfilter/vf_program_opencl.c         ff_framesync_uninit(&ctx->fs);
fs                354 libavfilter/vf_program_opencl.c FRAMESYNC_DEFINE_CLASS(program_opencl, ProgramOpenCLContext, fs);
fs                 41 libavfilter/vf_psnr.c     FFFrameSync fs;
fs                 71 libavfilter/vf_psnr.c FRAMESYNC_DEFINE_CLASS(psnr, PSNRContext, fs);
fs                145 libavfilter/vf_psnr.c static int do_psnr(FFFrameSync *fs)
fs                147 libavfilter/vf_psnr.c     AVFilterContext *ctx = fs->parent;
fs                154 libavfilter/vf_psnr.c     ret = ff_framesync_dualinput_get(fs, &master, &ref);
fs                256 libavfilter/vf_psnr.c     s->fs.on_event = do_psnr;
fs                342 libavfilter/vf_psnr.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
fs                350 libavfilter/vf_psnr.c     if ((ret = ff_framesync_configure(&s->fs)) < 0)
fs                353 libavfilter/vf_psnr.c     outlink->time_base = s->fs.time_base;
fs                367 libavfilter/vf_psnr.c     return ff_framesync_activate(&s->fs);
fs                391 libavfilter/vf_psnr.c     ff_framesync_uninit(&s->fs);
fs                 60 libavfilter/vf_remap.c     FFFrameSync fs;
fs                283 libavfilter/vf_remap.c static int process_frame(FFFrameSync *fs)
fs                285 libavfilter/vf_remap.c     AVFilterContext *ctx = fs->parent;
fs                286 libavfilter/vf_remap.c     RemapContext *s = fs->opaque;
fs                291 libavfilter/vf_remap.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &in,   0)) < 0 ||
fs                292 libavfilter/vf_remap.c         (ret = ff_framesync_get_frame(&s->fs, 1, &xpic, 0)) < 0 ||
fs                293 libavfilter/vf_remap.c         (ret = ff_framesync_get_frame(&s->fs, 2, &ypic, 0)) < 0)
fs                317 libavfilter/vf_remap.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                346 libavfilter/vf_remap.c     ret = ff_framesync_init(&s->fs, ctx, 3);
fs                350 libavfilter/vf_remap.c     in = s->fs.in;
fs                363 libavfilter/vf_remap.c     s->fs.opaque   = s;
fs                364 libavfilter/vf_remap.c     s->fs.on_event = process_frame;
fs                366 libavfilter/vf_remap.c     ret = ff_framesync_configure(&s->fs);
fs                367 libavfilter/vf_remap.c     outlink->time_base = s->fs.time_base;
fs                375 libavfilter/vf_remap.c     return ff_framesync_activate(&s->fs);
fs                382 libavfilter/vf_remap.c     ff_framesync_uninit(&s->fs);
fs                 43 libavfilter/vf_signalstats.c     int fs;         // pixel count per frame
fs                185 libavfilter/vf_signalstats.c     s->fs = inlink->w * inlink->h;
fs                661 libavfilter/vf_signalstats.c     lowp   = lrint(s->fs  * 10 / 100.);
fs                662 libavfilter/vf_signalstats.c     highp  = lrint(s->fs  * 90 / 100.);
fs                722 libavfilter/vf_signalstats.c     SET_META("YAVG",    "%g", 1.0 * toty / s->fs);
fs                747 libavfilter/vf_signalstats.c     SET_META("YDIF",    "%g", 1.0 * dify / s->fs);
fs                758 libavfilter/vf_signalstats.c             snprintf(metabuf,  sizeof(metabuf),  "%g", 1.0 * filtot[fil] / s->fs);
fs                883 libavfilter/vf_signalstats.c     lowp   = lrint(s->fs  * 10 / 100.);
fs                884 libavfilter/vf_signalstats.c     highp  = lrint(s->fs  * 90 / 100.);
fs                939 libavfilter/vf_signalstats.c     SET_META("YAVG",    "%g", 1.0 * toty / s->fs);
fs                964 libavfilter/vf_signalstats.c     SET_META("YDIF",    "%g", 1.0 * dify / s->fs);
fs                975 libavfilter/vf_signalstats.c             snprintf(metabuf,  sizeof(metabuf),  "%g", 1.0 * filtot[fil] / s->fs);
fs                154 libavfilter/vf_signature.c     FineSignature* fs;
fs                184 libavfilter/vf_signature.c         fs = av_mallocz(sizeof(FineSignature));
fs                185 libavfilter/vf_signature.c         if (!fs)
fs                187 libavfilter/vf_signature.c         sc->curfinesig->next = fs;
fs                188 libavfilter/vf_signature.c         fs->prev = sc->curfinesig;
fs                189 libavfilter/vf_signature.c         sc->curfinesig = fs;
fs                191 libavfilter/vf_signature.c         fs = sc->curfinesig = sc->finesiglist;
fs                192 libavfilter/vf_signature.c         sc->curcoarsesig1->first = fs;
fs                195 libavfilter/vf_signature.c     fs->pts = picref->pts;
fs                196 libavfilter/vf_signature.c     fs->index = sc->lastindex++;
fs                306 libavfilter/vf_signature.c             fs->framesig[f/5] += ternary * pot3[f%5];
fs                309 libavfilter/vf_signature.c                 fs->words[s2usw[w]/5] += ternary * pot3[wordt2b[s2usw[w]/5]++];
fs                321 libavfilter/vf_signature.c     fs->confidence = FFMIN(conflist[DIFFELEM_SIZE/2], 255);
fs                329 libavfilter/vf_signature.c             sc->curcoarsesig1->first = fs;
fs                339 libavfilter/vf_signature.c         sc->curcoarsesig2->first = fs;
fs                344 libavfilter/vf_signature.c         set_bit(sc->curcoarsesig1->data[i], fs->words[i]);
fs                347 libavfilter/vf_signature.c     sc->curcoarsesig1->last = fs;
fs                350 libavfilter/vf_signature.c             set_bit(sc->curcoarsesig2->data[i], fs->words[i]);
fs                352 libavfilter/vf_signature.c         sc->curcoarsesig2->last = fs;
fs                359 libavfilter/vf_signature.c         av_log(ctx, AV_LOG_DEBUG, "input %d, confidence: %d\n", FF_INLINK_IDX(inlink), fs->confidence);
fs                363 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, " %d:", fs->words[i] );
fs                364 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, " %d", fs->words[i] / pot3[0] );
fs                366 libavfilter/vf_signature.c                 av_log(ctx, AV_LOG_DEBUG, ",%d", fs->words[i] % pot3[j-1] / pot3[j] );
fs                373 libavfilter/vf_signature.c             av_log(ctx, AV_LOG_DEBUG, " %d", fs->framesig[i] / pot3[0] );
fs                375 libavfilter/vf_signature.c                 av_log(ctx, AV_LOG_DEBUG, ",%d", fs->framesig[i] % pot3[j-1] / pot3[j] );
fs                387 libavfilter/vf_signature.c     FineSignature* fs;
fs                455 libavfilter/vf_signature.c     for (fs = sc->finesiglist; fs; fs = fs->next) {
fs                457 libavfilter/vf_signature.c         fprintf(f, "          <MediaTimeOfFrame>%" PRIu64 "</MediaTimeOfFrame>\n", fs->pts);
fs                459 libavfilter/vf_signature.c         fprintf(f, "          <FrameConfidence>%d</FrameConfidence>\n", fs->confidence);
fs                463 libavfilter/vf_signature.c             fprintf(f, "%d ", fs->words[i]);
fs                475 libavfilter/vf_signature.c             fprintf(f, "%d ", fs->framesig[i] / pot3[0]);
fs                477 libavfilter/vf_signature.c                 fprintf(f, " %d ", fs->framesig[i] % pot3[j-1] / pot3[j] );
fs                494 libavfilter/vf_signature.c     FineSignature* fs;
fs                549 libavfilter/vf_signature.c     for (fs = sc->finesiglist; fs; fs = fs->next) {
fs                551 libavfilter/vf_signature.c         put_bits32(&buf, 0xFFFFFFFF & fs->pts); /* MediaTimeOfFrame */
fs                552 libavfilter/vf_signature.c         put_bits(&buf, 8, fs->confidence); /* FrameConfidence */
fs                554 libavfilter/vf_signature.c             put_bits(&buf, 8, fs->words[i]); /* Words */
fs                558 libavfilter/vf_signature.c             put_bits(&buf, 8, fs->framesig[i]);
fs                 50 libavfilter/vf_ssim.c     FFFrameSync fs;
fs                 81 libavfilter/vf_ssim.c FRAMESYNC_DEFINE_CLASS(ssim, SSIMContext, fs);
fs                285 libavfilter/vf_ssim.c static int do_ssim(FFFrameSync *fs)
fs                287 libavfilter/vf_ssim.c     AVFilterContext *ctx = fs->parent;
fs                294 libavfilter/vf_ssim.c     ret = ff_framesync_dualinput_get(fs, &master, &ref);
fs                354 libavfilter/vf_ssim.c     s->fs.on_event = do_ssim;
fs                434 libavfilter/vf_ssim.c     ret = ff_framesync_init_dualinput(&s->fs, ctx);
fs                443 libavfilter/vf_ssim.c     if ((ret = ff_framesync_configure(&s->fs)) < 0)
fs                446 libavfilter/vf_ssim.c     outlink->time_base = s->fs.time_base;
fs                460 libavfilter/vf_ssim.c     return ff_framesync_activate(&s->fs);
fs                480 libavfilter/vf_ssim.c     ff_framesync_uninit(&s->fs);
fs                 58 libavfilter/vf_stack.c     FFFrameSync fs;
fs                161 libavfilter/vf_stack.c static int process_frame(FFFrameSync *fs)
fs                163 libavfilter/vf_stack.c     AVFilterContext *ctx = fs->parent;
fs                165 libavfilter/vf_stack.c     StackContext *s = fs->opaque;
fs                171 libavfilter/vf_stack.c         if ((ret = ff_framesync_get_frame(&s->fs, i, &in[i], 0)) < 0)
fs                178 libavfilter/vf_stack.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                352 libavfilter/vf_stack.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
fs                355 libavfilter/vf_stack.c     in = s->fs.in;
fs                356 libavfilter/vf_stack.c     s->fs.opaque = s;
fs                357 libavfilter/vf_stack.c     s->fs.on_event = process_frame;
fs                368 libavfilter/vf_stack.c     ret = ff_framesync_configure(&s->fs);
fs                369 libavfilter/vf_stack.c     outlink->time_base = s->fs.time_base;
fs                379 libavfilter/vf_stack.c     ff_framesync_uninit(&s->fs);
fs                390 libavfilter/vf_stack.c     return ff_framesync_activate(&s->fs);
fs                117 libavfilter/vf_threshold.c static int process_frame(FFFrameSync *fs)
fs                119 libavfilter/vf_threshold.c     AVFilterContext *ctx = fs->parent;
fs                120 libavfilter/vf_threshold.c     ThresholdContext *s = fs->opaque;
fs                126 libavfilter/vf_threshold.c     if ((ret = ff_framesync_get_frame(&s->fs, 0, &in,        0)) < 0 ||
fs                127 libavfilter/vf_threshold.c         (ret = ff_framesync_get_frame(&s->fs, 1, &threshold, 0)) < 0 ||
fs                128 libavfilter/vf_threshold.c         (ret = ff_framesync_get_frame(&s->fs, 2, &min,       0)) < 0 ||
fs                129 libavfilter/vf_threshold.c         (ret = ff_framesync_get_frame(&s->fs, 3, &max,       0)) < 0)
fs                151 libavfilter/vf_threshold.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                283 libavfilter/vf_threshold.c     if ((ret = ff_framesync_init(&s->fs, ctx, 4)) < 0)
fs                286 libavfilter/vf_threshold.c     in = s->fs.in;
fs                303 libavfilter/vf_threshold.c     s->fs.opaque   = s;
fs                304 libavfilter/vf_threshold.c     s->fs.on_event = process_frame;
fs                306 libavfilter/vf_threshold.c     ret = ff_framesync_configure(&s->fs);
fs                307 libavfilter/vf_threshold.c     outlink->time_base = s->fs.time_base;
fs                315 libavfilter/vf_threshold.c     return ff_framesync_activate(&s->fs);
fs                322 libavfilter/vf_threshold.c     ff_framesync_uninit(&s->fs);
fs                 53 libavfilter/vf_xmedian.c     FFFrameSync fs;
fs                232 libavfilter/vf_xmedian.c static int process_frame(FFFrameSync *fs)
fs                234 libavfilter/vf_xmedian.c     AVFilterContext *ctx = fs->parent;
fs                236 libavfilter/vf_xmedian.c     XMedianContext *s = fs->opaque;
fs                243 libavfilter/vf_xmedian.c         if ((ret = ff_framesync_get_frame(&s->fs, i, &in[i], 0)) < 0)
fs                250 libavfilter/vf_xmedian.c     out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
fs                306 libavfilter/vf_xmedian.c     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
fs                309 libavfilter/vf_xmedian.c     in = s->fs.in;
fs                310 libavfilter/vf_xmedian.c     s->fs.opaque = s;
fs                311 libavfilter/vf_xmedian.c     s->fs.on_event = process_frame;
fs                322 libavfilter/vf_xmedian.c     ret = ff_framesync_configure(&s->fs);
fs                323 libavfilter/vf_xmedian.c     outlink->time_base = s->fs.time_base;
fs                332 libavfilter/vf_xmedian.c     ff_framesync_uninit(&s->fs);
fs                344 libavfilter/vf_xmedian.c     return ff_framesync_activate(&s->fs);
fs                 46 libavformat/jacosubdec.c     int fs, fe;
fs                 48 libavformat/jacosubdec.c             (sscanf(ptr, "@%u @%u %c", &fs, &fe, &c) == 3 && fs < fe));
fs                107 libavformat/jacosubdec.c     unsigned hs, ms, ss, fs; // hours, minutes, seconds, frame start
fs                114 libavformat/jacosubdec.c                &hs, &ms, &ss, &fs,
fs                116 libavformat/jacosubdec.c         ts_start = (hs*3600 + ms*60 + ss) * jacosub->timeres + fs;