From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 5D62346461 for ; Sat, 17 Jun 2023 22:01:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 75AEF68BF36; Sun, 18 Jun 2023 01:00:51 +0300 (EEST) 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-Google-Smtp-Source: ACHHUZ4UiyP6h/x/O24egN1J/jJZENImUlHL2pue3v0nHGxyxcVtI8TFpkwPUl8Aif5YYgRpfOorwg== 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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) { -- 2.41.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".