lavc: deprecate CODEC_FLAG_EMU_EDGE and avcodec_get_edge_width().

This commit is contained in:
Anton Khirnov
2014-01-02 11:07:11 +01:00
parent 024db24912
commit 93c553c71e
4 changed files with 29 additions and 9 deletions

View File

@@ -127,10 +127,12 @@ av_cold void avcodec_register(AVCodec *codec)
codec->init_static_data(codec);
}
#if FF_API_EMU_EDGE
unsigned avcodec_get_edge_width(void)
{
return EDGE_WIDTH;
}
#endif
#if FF_API_SET_DIMENSIONS
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
@@ -1089,6 +1091,11 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
ret = AVERROR(EINVAL);
goto free_and_end;
}
#if FF_API_EMU_EDGE
/* force the emu edge flag on, since it's now always active */
avctx->flags |= CODEC_FLAG_EMU_EDGE;
#endif
}
end:
entangled_thread_counter--;