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 5A8344CFD4 for ; Fri, 14 Feb 2025 08:47:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5C6E268C14E; Fri, 14 Feb 2025 10:47:30 +0200 (EET) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5228F68BE32 for ; Fri, 14 Feb 2025 10:47:24 +0200 (EET) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4362bae4d7dso11029695e9.1 for ; Fri, 14 Feb 2025 00:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739522843; x=1740127643; darn=ffmpeg.org; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Fb3ex4XvGazh+foAp0Zk+gmCAz/qIpWZKewoFYpPiFg=; b=cD4XnRFdNSiY8mhL2dUZ9ja1oA7TOx696/bbwit3vbNMmDjcHfwAax423D3qIa3dJM wjGPq0wiNDXsCLLxmbNgvYDaVrvX/YH5d/oUsnFBpT6GyWv2WN1ZHXqHkQ9pWt9ZVWGg lxEyR2IJ4nJL4kuzvjiTeeBQPYYIsq6YY+TkSfWBAsou47PZzg9WQGWmkb+zN7mLgsaP FjqSW7EkDtVDemkZX/ZY+3EansAcrKWK71WHD9RNs7oKbZc+w4wVA4qNWMq/3+XKCrSy Y/RzBsS6N46Kk+GzLAbb1M6wbNizCT07yFQVtzDUt4ikHfFoAz9IfZWnomCWEV41q2pK AGuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739522843; x=1740127643; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Fb3ex4XvGazh+foAp0Zk+gmCAz/qIpWZKewoFYpPiFg=; b=BIfojG3DZ37RajonqU0/JGkpuKq6aNqDhxfK9Rlwrmxy8815wZHgIDc1GvhR2fbbTd /L0X4dogyHo9vlj3+9rQMTskJpdSA2b7E8Kb9xerDBlU/XI23uEAfzihFVCczXqcbhzE k560ltnjkY3zN9U4vbfAAYuAvE7rPFmmUmzArOI9E7VKOeFl4bpm4OcHavue23Y2lMMF 5X+/woSEaAXb7OptoPuXlF3eysk/4H7JG1VUoZKqYt3WSIIVMpvbB7UlkplrONKe0TAv FmXfd4JpTcqLIRjzw9K1FB3TFtlqkDiMwGMEHQI/mhDkklqM+REYc9rV4d69hCj/z1/g hrQw== X-Gm-Message-State: AOJu0YwOe0XI8YPep0Qc2erBscHSFHFbPV/PTZeQGV4eXyUYxTZiCWx6 BgKFnrUTMKn41mVnSw8/d33bHY5iT6A1z1WceMJq8QaCYrKRJBHmX2OVUg== X-Gm-Gg: ASbGnct+AmtsUSkJucYgMDbZ4gqapEMqpGTdoc2M7fh8LUIxKKrjTxFJ0WpRn+euygq 1gbRCFotL9e5dYNRfCI0fDBUc5vf0xgxYx4UrZFxJQv5eEsMEJFdZof85JFp8TBfJBZS+Z1s4Um tsqlHIYZZGR6vNyfSNsEApN4JTWL7/7yXHkdxl0877Qyz/szjVzV94RuJR3J2ugeYfSDDZ0zwir MNUAfx8ShDIrZ+LvnirnqxNRCjfvYuPFfJpadR4hwHIAzsiIH+1lcCFs+takZvCP0lZuZoaDKzU Gg3k5dHL7+3ateONN3lrjtLfskNpaxQbGkFKkNfWtezyt5FhtyYkSKJHbbVkweFNWXm6Gw== X-Google-Smtp-Source: AGHT+IHwtNMxZ+uP27uC1Cwa7Xzs0zfoUTueobkHF98uNj72R8iVmrDD0jee/xstpOluSM51cTT4/w== X-Received: by 2002:a05:600c:4710:b0:439:31e0:d9a5 with SMTP id 5b1f17b1804b1-439581b2696mr117570335e9.22.1739522843439; Fri, 14 Feb 2025 00:47:23 -0800 (PST) Received: from ?IPV6:2001:9e8:1d81:f000:d0e6:71e1:1a45:b7af? ([2001:9e8:1d81:f000:d0e6:71e1:1a45:b7af]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f258b432asm3948100f8f.6.2025.02.14.00.47.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Feb 2025 00:47:22 -0800 (PST) Message-ID: <95067355-1e79-4d4e-96e4-57257d04552d@gmail.com> Date: Fri, 14 Feb 2025 09:47:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Leandro Santiago To: ffmpeg-devel@ffmpeg.org Content-Language: en-US Subject: [FFmpeg-devel] [PATCH] avutil/detection_bbox: Cleanup: Remove unneeded bbox_size struct member 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: There is no need to store this field in the struct, as it can be computed as sizeof(AVDetectionBBox). Signed-off-by: Leandro Santiago --- libavutil/detection_bbox.c | 1 - libavutil/detection_bbox.h | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/libavutil/detection_bbox.c b/libavutil/detection_bbox.c index cb157b355b..456c35f87a 100644 --- a/libavutil/detection_bbox.c +++ b/libavutil/detection_bbox.c @@ -40,7 +40,6 @@ AVDetectionBBoxHeader *av_detection_bbox_alloc(uint32_t nb_bboxes, size_t *out_s return NULL; header->nb_bboxes = nb_bboxes; - header->bbox_size = bbox_size; header->bboxes_offset = bboxes_offset; if (out_size) diff --git a/libavutil/detection_bbox.h b/libavutil/detection_bbox.h index 011988052c..7844fb05da 100644 --- a/libavutil/detection_bbox.h +++ b/libavutil/detection_bbox.h @@ -70,11 +70,6 @@ typedef struct AVDetectionBBoxHeader { * the array of bounding boxes starts. */ size_t bboxes_offset; - - /** - * Size of each bounding box in bytes. - */ - size_t bbox_size; } AVDetectionBBoxHeader; /* @@ -85,7 +80,7 @@ av_get_detection_bbox(const AVDetectionBBoxHeader *header, unsigned int idx) { av_assert0(idx < header->nb_bboxes); return (AVDetectionBBox *)((uint8_t *)header + header->bboxes_offset + - idx * header->bbox_size); + idx * sizeof(AVDetectionBBox)); } /** -- 2.48.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".