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 ESMTPS id 9257B4E047 for ; Sun, 27 Apr 2025 11:49:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0F6E668BA5E; Sun, 27 Apr 2025 14:47:42 +0300 (EEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4514868B37C for ; Sun, 27 Apr 2025 14:45:43 +0300 (EEST) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-736b34a71a1so4552269b3a.0 for ; Sun, 27 Apr 2025 04:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745754341; x=1746359141; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EwN6MKE400BGNz5zN9iwE/K7xJeRJOBZQWUVQ6gFWDA=; b=lSjBDCZ3+Ab3oPjh/+mXmS+OMLZnCJ6huWKc0qBjYr1jGCxXTKP7cmg0uKYwa2okE+ K/m9VzfRLJC85MzkNuwqLAuDzklDDdbjUuFh4II9XPF6tB+ThshiOapuCPxzuPgmZyVC +DQeiFefu29Ap/6MC4U1UPjJfjY0A760yz0ELWRg6uKzbT+/+CdfLjLAjjoBXgyOykTW o1u5OBsnzrjqMT2u43LTBJVq0x46STcTqSJ2bjbqbUjfYyV9RldnPffRdRtBxSKFyEH2 DYisljCrEnNKcjl81CSbfMsXCw7THfDl9xi95fQARwi+6Y9/GOFULLOGBJJeXNOlPNh9 TJrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745754341; x=1746359141; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EwN6MKE400BGNz5zN9iwE/K7xJeRJOBZQWUVQ6gFWDA=; b=gnuPrz1b6kYs0/wERtWo4DZ+I8upY4ZKOVZv8hyiAmiYOlsY8aNWT6wX9vpXNq2ZjF FFqRUlRkrJMe67KBJ/52KQ61zg0VCLZ0gSJIYrSU9hR3Hi0sVCvNBvHkKGgH3WWt4vwh +PFuQoFJvF8bJdO7vy/6QnUM77HFxpz5Me004hABv2IjuQSu/5PgjJakbJTLhKsYqTzk vev61OWRqJZksjaWnC4e/kTFTAabrResGZlvEui0O+a/YlK4yNKC5pJBtQqkCfSyL83H JortxA4sD9IKznDRLPzFNpCi4o9cAfbzjoGbSVM8sz6ks7ri84l0vbZEpPjl8dHG9nIj Tl4A== X-Gm-Message-State: AOJu0YxEHVzYK2zwbHhjJqli8k5uGyfJyDW+uah4Kt3XQHZnGHrecJe7 KiK8IEP5YYYVvRZ8oelJBkbv/+6gNdMwwtzJdn7li/VeOh6yuT3j4M4GquhY X-Gm-Gg: ASbGnctuanCz4jUxwXbNSLPbCX2jPzXmSwQT2+WROwIIpfvuRByF71SQzhIOTcByC9x L/DSdii+rJ8IPi9k/eKTE+DUpSDArEdH8nnCnIJ4J3mP3Q8FFJaIZJ6FaqijwzTguFRVt339r/H CnK+H942ln45XjFWk0GzJLo6k9JV9irpMCpGoB0SUmoC1CI72tIeOmqGM1hshqrj8gypxbJHRyz dHE9xPV7EjxZVSvslf5RozmwqrBP7UQ8PwUtsFWZyoXA/FqlyqOzio/v1cAgqmWjEKYIcF7r+zd bccd020NZnvTnh0wbnLnq3wAvulz3ykEp3tJlU7ht2JJ8GJm9L+5wFG+X/C/Pg== X-Google-Smtp-Source: AGHT+IHD6EUBx6uqUv+Y2lJ968T5Dk92UmnrKrq7KlX8iUBuWyCjK2C9qEWW09gfWROFS7UmeBN9ig== X-Received: by 2002:a05:6a20:12c4:b0:1ee:ef0b:7bf7 with SMTP id adf61e73a8af0-2046a57d131mr6839656637.19.1745754341389; Sun, 27 Apr 2025 04:45:41 -0700 (PDT) Received: from localhost.localdomain ([124.79.129.75]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73e259134ebsm6064452b3a.27.2025.04.27.04.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Apr 2025 04:45:41 -0700 (PDT) From: toqsxw@gmail.com X-Google-Original-From: toqsxw@outlook.com To: ffmpeg-devel@ffmpeg.org Date: Sun, 27 Apr 2025 19:44:48 +0800 Message-ID: <20250427114451.1236-18-toqsxw@outlook.com> X-Mailer: git-send-email 2.44.0.windows.1 In-Reply-To: <20250427114451.1236-1-toqsxw@outlook.com> References: <20250427114451.1236-1-toqsxw@outlook.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 18/20] avcodec/vvc: support fields 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 Cc: nuomi2021@gmail.com, Wu Jianhua 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: From: Wu Jianhua passed files: FIELD_A_Panasonic_4.bit FIELD_B_Panasonic_2.bit Signed-off-by: Wu Jianhua --- libavcodec/vvc/refs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavcodec/vvc/refs.c b/libavcodec/vvc/refs.c index cfbc2977c0..79967b77d3 100644 --- a/libavcodec/vvc/refs.c +++ b/libavcodec/vvc/refs.c @@ -160,6 +160,14 @@ static VVCFrame *alloc_frame(VVCContext *s, VVCFrameContext *fc) frame->ref_width = pps->r->pps_pic_width_in_luma_samples - win->left_offset - win->right_offset; frame->ref_height = pps->r->pps_pic_height_in_luma_samples - win->bottom_offset - win->top_offset; + if (fc->sei.frame_field_info.present) { + if (fc->sei.frame_field_info.picture_struct == AV_PICTURE_STRUCTURE_TOP_FIELD) + frame->frame->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST; + if (fc->sei.frame_field_info.picture_struct == AV_PICTURE_STRUCTURE_TOP_FIELD || + fc->sei.frame_field_info.picture_struct == AV_PICTURE_STRUCTURE_BOTTOM_FIELD) + frame->frame->flags |= AV_FRAME_FLAG_INTERLACED; + } + frame->progress = alloc_progress(); if (!frame->progress) goto fail; -- 2.44.0.windows.1 _______________________________________________ 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".