mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 15:08:09 +08:00
avutil: remove deprecated FF_API_INTERLACED_FRAME
Deprecated since 2023-05-04. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -674,12 +674,6 @@ static int decode_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->key_frame = !!(frame->flags & AV_FRAME_FLAG_KEY);
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = !!(frame->flags & AV_FRAME_FLAG_INTERLACED);
|
||||
frame->top_field_first = !!(frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST);
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
frame->best_effort_timestamp = guess_correct_pts(dc,
|
||||
frame->pts,
|
||||
|
@ -219,14 +219,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (frame->key_frame)
|
||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (frame->interlaced_frame)
|
||||
frame->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (frame->top_field_first)
|
||||
frame->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -252,15 +252,6 @@ int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFra
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (copy->interlaced_frame)
|
||||
copy->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (copy->top_field_first)
|
||||
copy->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
#if FF_API_FRAME_KEY
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (copy->key_frame)
|
||||
|
@ -536,11 +536,6 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink, const AVFr
|
||||
mfxExtBuffer *extbuf = s->vpp_param.ExtParam[i];
|
||||
|
||||
if (extbuf->BufferId == MFX_EXTBUFF_VPP_DEINTERLACING) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out_frame->frame->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out_frame->frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
break;
|
||||
}
|
||||
|
@ -304,9 +304,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
||||
#if FF_API_FRAME_KEY
|
||||
frame->key_frame = 1;
|
||||
#endif
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
frame->interlaced_frame = 0;
|
||||
#endif
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
|
@ -304,11 +304,6 @@ static int deint_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
|
||||
output_frame->pts = input_frame->pts +
|
||||
ctx->frame_queue[current_frame_index + 1]->pts;
|
||||
}
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
output_frame->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
output_frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
|
||||
av_log(avctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",
|
||||
|
@ -440,11 +440,6 @@ static int filter(AVFilterContext *ctx, AVFrame *in, int64_t pts, int64_t durati
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_copy_props(out, in);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
out->pts = pts;
|
||||
out->duration = duration;
|
||||
|
@ -73,11 +73,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
||||
int i;
|
||||
|
||||
inpicref->height = outlink->h;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
inpicref->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
inpicref->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
|
||||
for (i = 0; i < field->nb_planes; i++) {
|
||||
|
@ -223,19 +223,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
|
||||
switch (hint) {
|
||||
case '+':
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
break;
|
||||
case '-':
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
break;
|
||||
case '=':
|
||||
|
@ -823,20 +823,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
|
||||
/* mark the frame we are unable to match properly as interlaced so a proper
|
||||
* de-interlacer can take the relay */
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
dst->interlaced_frame = interlaced_frame;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
if (interlaced_frame) {
|
||||
dst->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
av_log(ctx, AV_LOG_WARNING, "Frame #%"PRId64" at %s is still interlaced\n",
|
||||
outl->frame_count_in, av_ts2timestr(in->pts, &inlink->time_base));
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
dst->top_field_first = field;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
if (field)
|
||||
dst->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
else
|
||||
|
@ -142,11 +142,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
}
|
||||
}
|
||||
}
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->top_field_first = s->dst_tff;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
if (s->dst_tff)
|
||||
out->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
else
|
||||
|
@ -183,28 +183,11 @@ static void filter(AVFilterContext *ctx)
|
||||
}
|
||||
|
||||
if (idet->last_type == TFF){
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
idet->cur->top_field_first = 1;
|
||||
idet->cur->interlaced_frame = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
idet->cur->flags |= (AV_FRAME_FLAG_INTERLACED | AV_FRAME_FLAG_TOP_FIELD_FIRST);
|
||||
}else if(idet->last_type == BFF){
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
idet->cur->top_field_first = 0;
|
||||
idet->cur->interlaced_frame = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
idet->cur->flags &= ~AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
idet->cur->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
}else if(idet->last_type == PROGRESSIVE){
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
idet->cur->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
idet->cur->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
}
|
||||
|
||||
@ -260,11 +243,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
|
||||
}
|
||||
if (idet->analyze_interlaced_flag_done) {
|
||||
if ((picref->flags & AV_FRAME_FLAG_INTERLACED) && idet->interlaced_flag_accuracy < 0) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
picref->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
picref->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
}
|
||||
return ff_filter_frame(ctx->outputs[0], picref);
|
||||
@ -305,11 +283,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
if (idet->analyze_interlaced_flag) {
|
||||
if (idet->cur->flags & AV_FRAME_FLAG_INTERLACED) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
idet->cur->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
idet->cur->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
filter(ctx);
|
||||
if (idet->last_type == PROGRESSIVE) {
|
||||
@ -323,11 +296,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur));
|
||||
|
||||
if ((idet->next->flags & AV_FRAME_FLAG_INTERLACED) && idet->interlaced_flag_accuracy < 0) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
idet->next->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
idet->next->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
}
|
||||
idet->analyze_interlaced_flag_done = 1;
|
||||
|
@ -142,11 +142,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
av_frame_copy_props(outpic, inpic);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
outpic->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
outpic->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
|
||||
for (plane = 0; plane < 4 && inpic->data[plane] && inpic->linesize[plane]; plane++) {
|
||||
|
@ -668,11 +668,6 @@ static int get_frame(AVFilterContext *ctx, int is_second)
|
||||
if (!dst)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_copy_props(dst, s->prev);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
dst->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
dst->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
dst->pts = s->pts;
|
||||
|
||||
|
@ -72,11 +72,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
||||
int ret;
|
||||
|
||||
inpicref->height = outlink->h;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
inpicref->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
inpicref->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
|
||||
if (!s->second) {
|
||||
|
@ -167,19 +167,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
|
||||
/* set field */
|
||||
if (s->field_mode == MODE_PROG) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
} else if (s->field_mode != MODE_AUTO) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = 1;
|
||||
frame->top_field_first = s->field_mode;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
frame->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (s->field_mode)
|
||||
frame->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
|
@ -209,12 +209,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
||||
s->stride[i],
|
||||
(s->planeheight[i] - !s->first_field + 1) / 2);
|
||||
}
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
s->frame[nout]->interlaced_frame = 1;
|
||||
s->frame[nout]->top_field_first = !s->first_field;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
s->frame[nout]->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (s->first_field)
|
||||
s->frame[nout]->flags &= ~AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
@ -237,12 +231,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
inpicref->data[i], inpicref->linesize[i],
|
||||
s->stride[i],
|
||||
s->planeheight[i]);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
s->frame[nout]->interlaced_frame = inpicref->interlaced_frame;
|
||||
s->frame[nout]->top_field_first = inpicref->top_field_first;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
s->frame[nout]->flags |= (inpicref->flags & (AV_FRAME_FLAG_INTERLACED | AV_FRAME_FLAG_TOP_FIELD_FIRST));
|
||||
nout++;
|
||||
len -= 2;
|
||||
@ -269,12 +257,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
|
||||
av_frame_copy_props(frame, inpicref);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = interlaced;
|
||||
frame->top_field_first = tff;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
if (interlaced)
|
||||
frame->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
else
|
||||
|
@ -409,12 +409,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_copy_props(out, cur);
|
||||
out->height = outlink->h;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 1;
|
||||
out->top_field_first = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags |= AV_FRAME_FLAG_INTERLACED | AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
out->sample_aspect_ratio = av_mul_q(cur->sample_aspect_ratio, av_make_q(2, 1));
|
||||
|
||||
@ -483,12 +477,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_copy_props(out, cur);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 1;
|
||||
out->top_field_first = tff;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (tff)
|
||||
out->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
@ -514,11 +502,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
out = av_frame_clone(cur);
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (cur->pts != AV_NOPTS_VALUE)
|
||||
out->pts = cur->pts*2;
|
||||
@ -534,12 +517,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_copy_props(out, next);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 1;
|
||||
out->top_field_first = !tff;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (tff)
|
||||
out->flags &= ~AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
|
@ -488,11 +488,6 @@ static int filter(AVFilterContext *ctx, int is_second)
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_copy_props(out, s->cur);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
|
||||
if (!is_second) {
|
||||
|
@ -161,12 +161,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
FFMIN(s->planeheight[1], ff_filter_get_nb_threads(ctx)));
|
||||
|
||||
out->pts = s->double_weave ? s->prev->pts : in->pts / 2;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out->interlaced_frame = 1;
|
||||
out->top_field_first = !s->first_field;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out->flags |= AV_FRAME_FLAG_INTERLACED;
|
||||
if (s->first_field)
|
||||
out->flags &= ~AV_FRAME_FLAG_TOP_FIELD_FIRST;
|
||||
|
@ -415,11 +415,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
frame->sample_aspect_ratio = (AVRational) {1, 1};
|
||||
|
@ -205,11 +205,6 @@ static int activate(AVFilterContext *ctx)
|
||||
frame->pts = test->pts;
|
||||
frame->duration = 1;
|
||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
frame->sample_aspect_ratio = test->sar;
|
||||
|
@ -44,11 +44,6 @@ static int return_frame(AVFilterContext *ctx, int is_second)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
av_frame_copy_props(yadif->out, yadif->cur);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
yadif->out->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
yadif->out->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
if (yadif->current_field == YADIF_FIELD_BACK_END)
|
||||
yadif->current_field = YADIF_FIELD_END;
|
||||
@ -164,11 +159,6 @@ int ff_yadif_filter_frame(AVFilterLink *link, AVFrame *frame)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
av_frame_copy_props(yadif->out, yadif->cur);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
yadif->out->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
yadif->out->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
|
||||
if (yadif->out->pts != AV_NOPTS_VALUE)
|
||||
|
@ -235,12 +235,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
dst->pts = src->pts;
|
||||
dst->duration = src->duration;
|
||||
dst->repeat_pict = src->repeat_pict;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
dst->interlaced_frame = src->interlaced_frame;
|
||||
dst->top_field_first = src->top_field_first;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
#if FF_API_PALETTE_HAS_CHANGED
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
dst->palette_has_changed = src->palette_has_changed;
|
||||
|
@ -577,24 +577,6 @@ typedef struct AVFrame {
|
||||
*/
|
||||
int repeat_pict;
|
||||
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
/**
|
||||
* The content of the picture is interlaced.
|
||||
*
|
||||
* @deprecated Use AV_FRAME_FLAG_INTERLACED instead
|
||||
*/
|
||||
attribute_deprecated
|
||||
int interlaced_frame;
|
||||
|
||||
/**
|
||||
* If the content is interlaced, is top field displayed first.
|
||||
*
|
||||
* @deprecated Use AV_FRAME_FLAG_TOP_FIELD_FIRST instead
|
||||
*/
|
||||
attribute_deprecated
|
||||
int top_field_first;
|
||||
#endif
|
||||
|
||||
#if FF_API_PALETTE_HAS_CHANGED
|
||||
/**
|
||||
* Tell user application that palette has changed from previous frame.
|
||||
|
@ -105,7 +105,6 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define FF_API_INTERLACED_FRAME (LIBAVUTIL_VERSION_MAJOR < 60)
|
||||
#define FF_API_FRAME_KEY (LIBAVUTIL_VERSION_MAJOR < 60)
|
||||
#define FF_API_PALETTE_HAS_CHANGED (LIBAVUTIL_VERSION_MAJOR < 60)
|
||||
#define FF_API_VULKAN_CONTIGUOUS_MEMORY (LIBAVUTIL_VERSION_MAJOR < 60)
|
||||
|
Reference in New Issue
Block a user