From patchwork Fri May 21 18:00:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 27900 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp743340iof; Fri, 21 May 2021 11:02:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws4w+aO3xjudPtlcKvFufIX9WpexXHUU7e62QfnD9+6MvS+xP7IoxbZnHte7B0F9Xk4wVv X-Received: by 2002:a05:6402:46:: with SMTP id f6mr12616479edu.252.1621620125017; Fri, 21 May 2021 11:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621620125; cv=none; d=google.com; s=arc-20160816; b=N1M1viBGpkibGvSng3T2eZITkxMJbLpzaj0ds7RO8dXxNjVm63cXhXTxuQLfIoRoOz ek7bE8PfecE20daCxfN996RELQoX98g99jcoe3VlOiQh/C/0aEJHLPGpaLk4KfAIQkmG 38kiR9u6ejz+dic/OuE8QzVejEbTSAP7XPzrP3463AkvZOpt0m5d2Lj3BvD37HKhohhX VBCpIN22PCzaX+avD/a+4D3fgoxvTyK9goF/ivZKdX1+CqjOwb333Zuj41HN7IhRn33P 1piKmQT1ozTBX+fYw2xGB8KsF1FRFsSiIBmR69bG11+rzOFnHvA0TlrcrOu8OMG3Zuk5 YjLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=fLh6lgInzH00GhJXzmiuKX0GZlnbG0Rb2ZEuekU+TUQ=; b=bEXUVIyNg6Pr7kVVNq81oVKkpn0oqgqLQMKsF31w9xp9xZwdLjPwr1HgT3AEI/pf+2 zajwTYK8I2aVODAkwLF8AeOH+dF2Ssz9M1VGSjFe2eDj02tLvh+2DIJRBNP7LCJJcubk +q08DYGMgkR1fa+FU9+SFN2/LKuaRxse4b6zUJZ1qNQDvsJWtf462cjEJgW3Gh7JI1sl /qLuMaA94/W+Mlx571GjJ/Uh+T2wtWO0asXXQxVLKirzEdTVmoE+ZVtRj7DglM9BFk0k Q7UBU0JppPIT/7vBnpC7Jsqy5WrNgPaXVWU5Z00DOn3qqtgMbWQTyB6IxryZs2HKR+g3 ls+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id d5si6100514ejt.21.2021.05.21.11.02.04; Fri, 21 May 2021 11:02:04 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1CAD068993C; Fri, 21 May 2021 21:01:22 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2FED06880D3 for ; Fri, 21 May 2021 21:01:13 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id D6FF72405C5 for ; Fri, 21 May 2021 20:01:12 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id zICHL_4yNTZS for ; Fri, 21 May 2021 20:01:12 +0200 (CEST) Received: from libav.khirnov.net (unknown [IPv6:2a00:c500:561:201:5fb8:4bfe:b578:641e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 65A52240477 for ; Fri, 21 May 2021 20:01:09 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id D55B63A13C3; Fri, 21 May 2021 20:01:06 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 21 May 2021 20:00:36 +0200 Message-Id: <20210521180056.17496-5-anton@khirnov.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210521180056.17496-1-anton@khirnov.net> References: <20210521180056.17496-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 05/25] lavc: move av_get_profile_name() from avcodec.h to codec.h X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: SXDT3NI/fwJE --- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 9 --------- libavcodec/codec.h | 9 +++++++++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 540a0c8b4d..e21970812b 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6 +14,9 @@ libavutil: 2021-04-27 API changes, most recent first: +2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec.h + Move av_get_profile_name() from avcodec.h to codec.h. + 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_par.h Move av_get_audio_frame_duration2() from avcodec.h to codec_par.h. diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 51caab7dce..1ca1ce0410 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3055,15 +3055,6 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); -/** - * Return a name for the specified profile, if available. - * - * @param codec the codec that is searched for the given profile - * @param profile the profile value for which a name is requested - * @return A name for the profile if found, NULL otherwise. - */ -const char *av_get_profile_name(const AVCodec *codec, int profile); - int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size); int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count); //FIXME func typedef diff --git a/libavcodec/codec.h b/libavcodec/codec.h index c8653e3b31..cedd106953 100644 --- a/libavcodec/codec.h +++ b/libavcodec/codec.h @@ -402,6 +402,15 @@ int av_codec_is_encoder(const AVCodec *codec); */ int av_codec_is_decoder(const AVCodec *codec); +/** + * Return a name for the specified profile, if available. + * + * @param codec the codec that is searched for the given profile + * @param profile the profile value for which a name is requested + * @return A name for the profile if found, NULL otherwise. + */ +const char *av_get_profile_name(const AVCodec *codec, int profile); + enum { /** * The codec supports this format via the hw_device_ctx interface.