[FFmpeg-devel] [PATCHv2 1/2] avcodec: add execute3() api to utilize the main function of avpriv_slicethread_create().
James Almer
jamrial at gmail.com
Wed Sep 6 06:23:11 EEST 2017
On 9/5/2017 8:57 PM, Ilia Valiakhmetov wrote:
> Signed-off-by: Ilia Valiakhmetov <zakne0ne at gmail.com>
> ---
> libavcodec/avcodec.h | 7 ++++++-
> libavcodec/options.c | 1 +
> libavcodec/pthread_slice.c | 26 ++++++++++++++++++++++++--
> libavcodec/utils.c | 14 ++++++++++++++
> 4 files changed, 45 insertions(+), 3 deletions(-)
Missing APIChanges entry and version bump for the new API.
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 6555550..712f40c 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -1089,6 +1089,10 @@ typedef struct RcOverride{
> */
> #define AV_CODEC_CAP_AVOID_PROBING (1 << 17)
> /**
> + * Codec initializes slice-based threading with a main function
> + */
> +#define AV_CODEC_SLICE_THREAD_HAS_MF (1 << 18)
Prefix should be AV_CODEC_CAP_ like other flags.
Does this need to be a public capability flag, for that matter? Maybe it
could be instead an internal FF_CODEC_CAP_ one.
See AVCodec->caps_internal.
More information about the ffmpeg-devel
mailing list