Lines Matching defs:tinterlace
78 AVFILTER_DEFINE_CLASS(tinterlace);
104 TInterlaceContext *tinterlace = ctx->priv;
106 av_frame_free(&tinterlace->cur );
107 av_frame_free(&tinterlace->next);
108 av_freep(&tinterlace->black_data[0]);
116 TInterlaceContext *tinterlace = ctx->priv;
118 tinterlace->vsub = desc->log2_chroma_h;
121 outlink->h = tinterlace->mode == MODE_MERGE || tinterlace->mode == MODE_PAD ?
124 if (tinterlace->mode == MODE_PAD) {
129 ret = av_image_alloc(tinterlace->black_data, tinterlace->black_linesize,
135 for (i = 0; i < 4 && tinterlace->black_data[i]; i++) {
137 memset(tinterlace->black_data[i], black[i],
138 tinterlace->black_linesize[i] * h);
141 if ((tinterlace->flags & TINTERLACE_FLAG_VLPF)
142 && !(tinterlace->mode == MODE_INTERLEAVE_TOP
143 || tinterlace->mode == MODE_INTERLEAVE_BOTTOM)) {
145 tinterlace->mode);
146 tinterlace->flags &= ~TINTERLACE_FLAG_VLPF;
148 if (tinterlace->mode == MODE_INTERLACEX2) {
155 tinterlace->mode, (tinterlace->flags & TINTERLACE_FLAG_VLPF) ? "on" : "off",
231 TInterlaceContext *tinterlace = ctx->priv;
235 av_frame_free(&tinterlace->cur);
236 tinterlace->cur = tinterlace->next;
237 tinterlace->next = picref;
239 cur = tinterlace->cur;
240 next = tinterlace->next;
242 if (!tinterlace->cur)
245 switch (tinterlace->mode) {
260 FIELD_UPPER_AND_LOWER, 1, FIELD_UPPER, tinterlace->flags);
265 FIELD_UPPER_AND_LOWER, 1, FIELD_LOWER, tinterlace->flags);
266 av_frame_free(&tinterlace->next);
271 out = av_frame_clone(tinterlace->mode == MODE_DROP_EVEN ? cur : next);
274 av_frame_free(&tinterlace->next);
285 field = (1 + tinterlace->frame) & 1 ? FIELD_UPPER : FIELD_LOWER;
290 FIELD_UPPER_AND_LOWER, 1, field, tinterlace->flags);
293 (const uint8_t **)tinterlace->black_data, tinterlace->black_linesize,
295 FIELD_UPPER_AND_LOWER, 1, !field, tinterlace->flags);
302 tff = tinterlace->mode == MODE_INTERLEAVE_TOP;
315 tinterlace->flags);
321 tinterlace->flags);
322 av_frame_free(&tinterlace->next);
353 tinterlace->flags);
359 tinterlace->flags);
366 tinterlace->frame++;
390 .name = "tinterlace",