Skip to content

Commit 8af3331

Browse files
committed
avutil: remove deprecated FF_API_INTERLACED_FRAME
Deprecated since 2023-05-04. Signed-off-by: James Almer <[email protected]>
1 parent ebd6d07 commit 8af3331

26 files changed

+0
-226
lines changed

libavcodec/decode.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,6 @@ static int decode_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
674674
FF_DISABLE_DEPRECATION_WARNINGS
675675
frame->key_frame = !!(frame->flags & AV_FRAME_FLAG_KEY);
676676
FF_ENABLE_DEPRECATION_WARNINGS
677-
#endif
678-
#if FF_API_INTERLACED_FRAME
679-
FF_DISABLE_DEPRECATION_WARNINGS
680-
frame->interlaced_frame = !!(frame->flags & AV_FRAME_FLAG_INTERLACED);
681-
frame->top_field_first = !!(frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST);
682-
FF_ENABLE_DEPRECATION_WARNINGS
683677
#endif
684678
frame->best_effort_timestamp = guess_correct_pts(dc,
685679
frame->pts,

libavcodec/encode.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
219219
if (frame->key_frame)
220220
frame->flags |= AV_FRAME_FLAG_KEY;
221221
FF_ENABLE_DEPRECATION_WARNINGS
222-
#endif
223-
#if FF_API_INTERLACED_FRAME
224-
FF_DISABLE_DEPRECATION_WARNINGS
225-
if (frame->interlaced_frame)
226-
frame->flags |= AV_FRAME_FLAG_INTERLACED;
227-
if (frame->top_field_first)
228-
frame->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
229-
FF_ENABLE_DEPRECATION_WARNINGS
230222
#endif
231223

232224
return 0;

libavfilter/buffersrc.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,6 @@ int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFra
252252
return AVERROR(ENOMEM);
253253
}
254254

255-
#if FF_API_INTERLACED_FRAME
256-
FF_DISABLE_DEPRECATION_WARNINGS
257-
if (copy->interlaced_frame)
258-
copy->flags |= AV_FRAME_FLAG_INTERLACED;
259-
if (copy->top_field_first)
260-
copy->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
261-
FF_ENABLE_DEPRECATION_WARNINGS
262-
#endif
263-
264255
#if FF_API_FRAME_KEY
265256
FF_DISABLE_DEPRECATION_WARNINGS
266257
if (copy->key_frame)

libavfilter/qsvvpp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,6 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink, const AVFr
536536
mfxExtBuffer *extbuf = s->vpp_param.ExtParam[i];
537537

538538
if (extbuf->BufferId == MFX_EXTBUFF_VPP_DEINTERLACING) {
539-
#if FF_API_INTERLACED_FRAME
540-
FF_DISABLE_DEPRECATION_WARNINGS
541-
out_frame->frame->interlaced_frame = 0;
542-
FF_ENABLE_DEPRECATION_WARNINGS
543-
#endif
544539
out_frame->frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
545540
break;
546541
}

libavfilter/vf_coreimage.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,6 @@ static int request_frame(AVFilterLink *link)
304304
#if FF_API_FRAME_KEY
305305
frame->key_frame = 1;
306306
#endif
307-
#if FF_API_INTERLACED_FRAME
308-
frame->interlaced_frame = 0;
309-
#endif
310307
FF_ENABLE_DEPRECATION_WARNINGS
311308

312309
frame->pict_type = AV_PICTURE_TYPE_I;

libavfilter/vf_deinterlace_vaapi.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,6 @@ static int deint_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
304304
output_frame->pts = input_frame->pts +
305305
ctx->frame_queue[current_frame_index + 1]->pts;
306306
}
307-
#if FF_API_INTERLACED_FRAME
308-
FF_DISABLE_DEPRECATION_WARNINGS
309-
output_frame->interlaced_frame = 0;
310-
FF_ENABLE_DEPRECATION_WARNINGS
311-
#endif
312307
output_frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
313308

314309
av_log(avctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",

libavfilter/vf_estdif.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,6 @@ static int filter(AVFilterContext *ctx, AVFrame *in, int64_t pts, int64_t durati
440440
if (!out)
441441
return AVERROR(ENOMEM);
442442
av_frame_copy_props(out, in);
443-
#if FF_API_INTERLACED_FRAME
444-
FF_DISABLE_DEPRECATION_WARNINGS
445-
out->interlaced_frame = 0;
446-
FF_ENABLE_DEPRECATION_WARNINGS
447-
#endif
448443
out->flags &= ~AV_FRAME_FLAG_INTERLACED;
449444
out->pts = pts;
450445
out->duration = duration;

libavfilter/vf_field.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
7373
int i;
7474

7575
inpicref->height = outlink->h;
76-
#if FF_API_INTERLACED_FRAME
77-
FF_DISABLE_DEPRECATION_WARNINGS
78-
inpicref->interlaced_frame = 0;
79-
FF_ENABLE_DEPRECATION_WARNINGS
80-
#endif
8176
inpicref->flags &= ~AV_FRAME_FLAG_INTERLACED;
8277

8378
for (i = 0; i < field->nb_planes; i++) {

libavfilter/vf_fieldhint.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
223223

224224
switch (hint) {
225225
case '+':
226-
#if FF_API_INTERLACED_FRAME
227-
FF_DISABLE_DEPRECATION_WARNINGS
228-
out->interlaced_frame = 1;
229-
FF_ENABLE_DEPRECATION_WARNINGS
230-
#endif
231226
out->flags |= AV_FRAME_FLAG_INTERLACED;
232227
break;
233228
case '-':
234-
#if FF_API_INTERLACED_FRAME
235-
FF_DISABLE_DEPRECATION_WARNINGS
236-
out->interlaced_frame = 0;
237-
FF_ENABLE_DEPRECATION_WARNINGS
238-
#endif
239229
out->flags &= ~AV_FRAME_FLAG_INTERLACED;
240230
break;
241231
case '=':

libavfilter/vf_fieldmatch.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -823,20 +823,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
823823

824824
/* mark the frame we are unable to match properly as interlaced so a proper
825825
* de-interlacer can take the relay */
826-
#if FF_API_INTERLACED_FRAME
827-
FF_DISABLE_DEPRECATION_WARNINGS
828-
dst->interlaced_frame = interlaced_frame;
829-
FF_ENABLE_DEPRECATION_WARNINGS
830-
#endif
831826
if (interlaced_frame) {
832827
dst->flags |= AV_FRAME_FLAG_INTERLACED;
833828
av_log(ctx, AV_LOG_WARNING, "Frame #%"PRId64" at %s is still interlaced\n",
834829
outl->frame_count_in, av_ts2timestr(in->pts, &inlink->time_base));
835-
#if FF_API_INTERLACED_FRAME
836-
FF_DISABLE_DEPRECATION_WARNINGS
837-
dst->top_field_first = field;
838-
FF_ENABLE_DEPRECATION_WARNINGS
839-
#endif
840830
if (field)
841831
dst->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
842832
else

0 commit comments

Comments
 (0)