From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 4A7E44BE42 for <ffmpegdev@gitmailbox.com>; Mon, 31 Mar 2025 02:38:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EF900687CD3; Mon, 31 Mar 2025 05:38:07 +0300 (EEST) Received: from vidala.pars.ee (vidala.pars.ee [116.203.72.101]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D3A6D687CB5 for <ffmpeg-devel@ffmpeg.org>; Mon, 31 Mar 2025 05:37:56 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; s=202405r; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1743388674; bh=YMQyhK+6uvEOHcD+N90Smqq gLbs1yDxuaAwmKORcRqE=; b=Fw5TSQtLbAPMR63Ag/9rwseoYA8a8Y82IMb6hqM98OIx4Mcynf AXaiGEIgWGz6LHHux4TpXVv+JQCXHVe2LLVMzcZ83fiaMQlh7QJmtOBGVJHJrfCHFAcs1y3hCjx UmP5KSt5C0hOwWeUkTokYHBN42iiEo5YGXGNW5c8xxC8v0wKlf6hfMfOT034pU8vXEu9bK2TEd5 0qnC/nmiC9/i72rY9NWgxP4XSei1r3gR14Il3/HFM075GX8yyPCPNzBUvon+adFv6qTwgYb9uAG itkEApxqRPSqBBBj+uRHcPoTeIV3R+twpWMbUL2ZPCh067ESOGKOjy2akOyOCJJVhag==; DKIM-Signature: v=1; a=ed25519-sha256; s=202405e; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1743388674; bh=YMQyhK+6uvEOHcD+N90Smqq gLbs1yDxuaAwmKORcRqE=; b=5R7gcndRAKW16XaJAFwIeFie3JmbkXyqBAYP/8qMCLKY+4Fndi J3qDwFQmMRrfByH8Q4fBwiQ9J4wF7fmciRBQ==; From: Lynne <dev@lynne.ee> To: ffmpeg-devel@ffmpeg.org Date: Mon, 31 Mar 2025 04:37:38 +0200 Message-ID: <20250331023753.285499-2-dev@lynne.ee> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250331023753.285499-1-dev@lynne.ee> References: <20250331023753.285499-1-dev@lynne.ee> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/6] vulkan_decode: only create sequence params in end_frame X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Lynne <dev@lynne.ee> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250331023753.285499-2-dev@lynne.ee/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> We tried to create sequence params in both start_frame and end_frame. This was redundant. Just always create them in end_frame. --- libavcodec/vulkan_av1.c | 8 -------- libavcodec/vulkan_h264.c | 9 --------- libavcodec/vulkan_hevc.c | 9 --------- 3 files changed, 26 deletions(-) diff --git a/libavcodec/vulkan_av1.c b/libavcodec/vulkan_av1.c index 13df24a44b..115db8badb 100644 --- a/libavcodec/vulkan_av1.c +++ b/libavcodec/vulkan_av1.c @@ -254,7 +254,6 @@ static int vk_av1_start_frame(AVCodecContext *avctx, AV1DecContext *s = avctx->priv_data; const AV1Frame *pic = &s->cur_frame; FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data; - FFVulkanDecodeShared *ctx = dec->shared_ctx; AV1VulkanDecodePicture *ap = pic->hwaccel_picture_private; FFVulkanDecodePicture *vp = &ap->vp; @@ -269,13 +268,6 @@ static int vk_av1_start_frame(AVCodecContext *avctx, STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_WIENER, STD_VIDEO_AV1_FRAME_RESTORATION_TYPE_SGRPROJ }; - if (!dec->session_params && - !(ctx->s.extensions & FF_VK_EXT_VIDEO_MAINTENANCE_2)) { - err = vk_av1_create_params(avctx, &dec->session_params, ap); - if (err < 0) - return err; - } - if (!ap->frame_id_set) { unsigned slot_idx = 0; for (unsigned i = 0; i < 32; i++) { diff --git a/libavcodec/vulkan_h264.c b/libavcodec/vulkan_h264.c index af37e0800b..d950c6948f 100644 --- a/libavcodec/vulkan_h264.c +++ b/libavcodec/vulkan_h264.c @@ -366,20 +366,11 @@ static int vk_h264_start_frame(AVCodecContext *avctx, int err; int dpb_slot_index = 0; H264Context *h = avctx->priv_data; - FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data; - FFVulkanDecodeShared *ctx = dec->shared_ctx; H264Picture *pic = h->cur_pic_ptr; H264VulkanDecodePicture *hp = pic->hwaccel_picture_private; FFVulkanDecodePicture *vp = &hp->vp; - if (!dec->session_params && - !(ctx->s.extensions & FF_VK_EXT_VIDEO_MAINTENANCE_2)) { - err = vk_h264_create_params(avctx, &dec->session_params); - if (err < 0) - return err; - } - /* Fill in main slot */ dpb_slot_index = 0; for (unsigned slot = 0; slot < H264_MAX_PICTURE_COUNT; slot++) { diff --git a/libavcodec/vulkan_hevc.c b/libavcodec/vulkan_hevc.c index e95f554756..bc43591e19 100644 --- a/libavcodec/vulkan_hevc.c +++ b/libavcodec/vulkan_hevc.c @@ -716,8 +716,6 @@ static int vk_hevc_start_frame(AVCodecContext *avctx, int err; HEVCContext *h = avctx->priv_data; HEVCLayerContext *l = &h->layers[h->cur_layer]; - FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data; - FFVulkanDecodeShared *ctx = dec->shared_ctx; HEVCFrame *pic = h->cur_frame; HEVCVulkanDecodePicture *hp = pic->hwaccel_picture_private; @@ -726,13 +724,6 @@ static int vk_hevc_start_frame(AVCodecContext *avctx, const HEVCSPS *sps = pps->sps; int nb_refs = 0; - if (!dec->session_params && - !(ctx->s.extensions & FF_VK_EXT_VIDEO_MAINTENANCE_2)) { - err = vk_hevc_create_params(avctx, &dec->session_params); - if (err < 0) - return err; - } - hp->h265pic = (StdVideoDecodeH265PictureInfo) { .flags = (StdVideoDecodeH265PictureInfoFlags) { .IrapPicFlag = IS_IRAP(h), -- 2.49.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".