From patchwork Sat Jun 17 22:00:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 42177 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c526:b0:117:ac03:c9de with SMTP id gm38csp2448327pzb; Sat, 17 Jun 2023 15:01:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xoEtUBw/rHkAheoXXz9ySZHNQNw9NTdg0+Ezgiv2kABOzI590MdTksHL9qVkME5KpEhyw X-Received: by 2002:adf:eac3:0:b0:311:17c5:3a9a with SMTP id o3-20020adfeac3000000b0031117c53a9amr4628932wrn.38.1687039267196; Sat, 17 Jun 2023 15:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687039267; cv=none; d=google.com; s=arc-20160816; b=rsFrzwLUfLRtzREIqXuvpGG1G9qxIY7U0o4eLQBxH4jKE/WRV6K1dKSey2yykegG1H PscNoFW8095DdS7dLciPaelcQzNSHHTkXF3tywJImp8zfMVyLd9bFWPrSIrMYGlGZI70 onqQHffBkogfC2gUrpvvXyFodfBtFHAbMHTlnf5mWTTHKAtJ5FH90Lmdl0wL9N4J0AUO htl/LwMcKZ+KgGXJO+SWB3mTy6cMbmJ5Tr9VqSSnj8q4akWyc9mar5bblufat/nq0uEl CUkcqeJ4Tko8PjJJe8JbFVgXU3WFFtarlkI9ErAeM6+cqEbxpW+13goFT9pEPH7gN7f0 ZkRQ== 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:dkim-signature:delivered-to; bh=vmR+hwQWAfhlquNTbOFwNjAhh8OVG0qLCx7nEwUdPBE=; b=GCaqOsEnPljTkeaSVl6XjtDQfYl0DWsJwytdZCfeK8HYV8UqzjRIruyv9dEJ509Hyh GAL6e38xnTo1QmpH/J84wSNi1xZ44cHLReXUJYAx9faCV7lcCMlSA4QkAO3tpOofHx+u Q5vKymQOTDGvH7FqJTe/aYq9Y32QrT4IjerNNENvrTMA6XKZS3Seu/7n5ojBZ1wlyWpQ YjaAtFKwTCx9RWzMX4oFAYrr/aRrLQyXn1azsfcGkWYRk0S0u1rnSLHgL4As1gkefXn9 +ZQYeJRJ441ILq6G3YS3DgR722t0Vmy2AEbABIMNhfbq/auxqGbIjVdNTiPEm5eZNEQP 1LMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20221208 header.b=YJx7E9D6; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id o14-20020a056402038e00b0051a27469761si3466727edv.123.2023.06.17.15.01.06; Sat, 17 Jun 2023 15:01:07 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20221208 header.b=YJx7E9D6; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AA9FB68BF43; Sun, 18 Jun 2023 01:00:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B55F768B14C for ; Sun, 18 Jun 2023 01:00:44 +0300 (EEST) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-1a9df9ef16dso1642973fac.0 for ; Sat, 17 Jun 2023 15:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687039243; x=1689631243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xKagQX7MnVeBjDsbZ8azyDVkGyCtz7lRq85ZsUPR50I=; b=YJx7E9D6l2EVAEt3Xp3twjrksd2GCFFMrzx48wSmJxVN951A/G65bpCwpjxSJpEr6/ xJ9az+DEOxcnUrn+BAkQ6PkmuJnJwtvXLDyJAxA7CupcNB3WUXV5Sl/x6yRBX0hBsAnq q+epEIEKkFD1zKiKqjE922V7Eu1CsOYuMYPDTqKQyR+rnRqjszjfr8rv9YvXZhWyD+i7 vzVn6qxx+9p9j+Cx/QaxyokUp/t6z2+neQ+RHWsLp+nU/RSuIrmWy0kdJv9MZwOHZTjb ZbmlcmePzy4+oGVOr7o+9rPP18UX2/KcTcCMXJKFRt8PuXaildhRp+x2CYIIq+Vdgg26 trAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687039243; x=1689631243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xKagQX7MnVeBjDsbZ8azyDVkGyCtz7lRq85ZsUPR50I=; b=Y0/REAo3EfJEwodJ4fMv8eDAm1dTbMaT+hS69VaqcFL+0rHdDTC93QycX74TszTCms Qp4uFzzkQil8AX8U2lY3zjj9TIbsB6aw/BBIHu0EmCctVE5fdcv3vT06i9YPKKrx44FO BheYGbK2gsBKV6avKwVY4E7/TEN+IV+Lb8UO8ODsEvQ7/redHLS+uBOrFE/DVcSHS0RL z0BmZvqEG/tIUhGlbFBjGEH6/bErUzKnJ5Fb5HIbANjxlk9XeTv1VeTKFexdP5lFnhez Ct/UmoozBlktr9ipo1eeUxWnVBS8arJCH92fGWPB69qeB8ww029TCLQZeLsOZfJ4NXG0 TvEA== X-Gm-Message-State: AC+VfDwtPwDcvhrpeeep13E0rekKfOaZANo9Eb1VFt6MXf7IHFq9NemL ax7EEJ16+JVfTLSMSF49DNBK8CPWw68= X-Received: by 2002:a05:6870:4708:b0:19e:cc9f:8a45 with SMTP id b8-20020a056870470800b0019ecc9f8a45mr4579746oaq.38.1687039242964; Sat, 17 Jun 2023 15:00:42 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id o42-20020a05687096aa00b0019280078be5sm6246497oaq.6.2023.06.17.15.00.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jun 2023 15:00:42 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 17 Jun 2023 19:00:10 -0300 Message-ID: <20230617220015.12669-2-jamrial@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230617151848.1378-1-jamrial@gmail.com> References: <20230617151848.1378-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 05/10] avcodec/evc_parser: stop exporting delay and gop_size 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: Na8FYYvP4Qpc The former is a property a decoder may export, and the latter is only used in encoding scenarios. Signed-off-by: James Almer --- libavcodec/evc_parse.c | 6 ------ libavcodec/evc_parse.h | 6 ------ libavcodec/evc_parser.c | 2 -- 3 files changed, 14 deletions(-) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index a8e6356b96..1fe58c8050 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c @@ -225,7 +225,6 @@ int ff_evc_parse_nal_unit(EVCParserContext *ctx, const uint8_t *buf, int buf_siz switch(nalu_type) { case EVC_SPS_NUT: { EVCParserSPS *sps; - int SubGopLength; int bit_depth; sps = ff_evc_parse_sps(&ctx->ps, data, nalu_size); @@ -245,11 +244,6 @@ int ff_evc_parse_nal_unit(EVCParserContext *ctx, const uint8_t *buf, int buf_siz ctx->height = sps->pic_height_in_luma_samples; } - SubGopLength = (int)pow(2.0, sps->log2_sub_gop_length); - ctx->gop_size = SubGopLength; - - ctx->delay = (sps->sps_max_dec_pic_buffering_minus1) ? sps->sps_max_dec_pic_buffering_minus1 - 1 : SubGopLength + sps->max_num_tid0_ref_pics - 1; - if (sps->profile_idc == 1) ctx->profile = FF_PROFILE_EVC_MAIN; else ctx->profile = FF_PROFILE_EVC_BASELINE; diff --git a/libavcodec/evc_parse.h b/libavcodec/evc_parse.h index b5462f5711..2748f8dfbf 100644 --- a/libavcodec/evc_parse.h +++ b/libavcodec/evc_parse.h @@ -117,12 +117,6 @@ typedef struct EVCParserContext { // Framerate value in the compressed bitstream AVRational framerate; - // Number of pictures in a group of pictures - int gop_size; - - // Number of frames the decoded output will be delayed relative to the encoded input - int delay; - int parsed_extradata; } EVCParserContext; diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index 1fd8aac1dc..4fd8c49fd4 100644 --- a/libavcodec/evc_parser.c +++ b/libavcodec/evc_parser.c @@ -72,8 +72,6 @@ static int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const s->format = ctx->format; avctx->framerate = ctx->framerate; - avctx->gop_size = ctx->gop_size; - avctx->delay = ctx->delay; avctx->profile = ctx->profile; } else if(ctx->nalu_type == EVC_NOIDR_NUT || ctx->nalu_type == EVC_IDR_NUT) {