diff mbox series

[FFmpeg-devel] lavu/detection_bbox.h: use AV_NUM_DETECTION_BBOX_CLASSIFY to replace AV_NUM_BBOX_CLASSIFY

Message ID 20210417121043.11885-1-yejun.guo@intel.com
State New
Headers show
Series [FFmpeg-devel] lavu/detection_bbox.h: use AV_NUM_DETECTION_BBOX_CLASSIFY to replace AV_NUM_BBOX_CLASSIFY
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Guo, Yejun April 17, 2021, 12:10 p.m. UTC
---
sorry, missed to change the name and just noticed it now,
hope it's not too late, will push tomorrow if it is not denied.
just want to update it ASAP, and pushed by anyone is welcome.
thanks.

 libavutil/detection_bbox.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Guo, Yejun April 18, 2021, 4:27 a.m. UTC | #1
> -----Original Message-----
> From: Guo, Yejun <yejun.guo@intel.com>
> Sent: 2021年4月17日 20:11
> To: ffmpeg-devel@ffmpeg.org
> Cc: Guo, Yejun <yejun.guo@intel.com>
> Subject: [PATCH] lavu/detection_bbox.h: use
> AV_NUM_DETECTION_BBOX_CLASSIFY to replace AV_NUM_BBOX_CLASSIFY
> 
> ---
> sorry, missed to change the name and just noticed it now,
> hope it's not too late, will push tomorrow if it is not denied.
> just want to update it ASAP, and pushed by anyone is welcome.
> thanks.
> 
>  libavutil/detection_bbox.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavutil/detection_bbox.h b/libavutil/detection_bbox.h
> index 4ad05d3b95..c88ea383f3 100644
> --- a/libavutil/detection_bbox.h
> +++ b/libavutil/detection_bbox.h
> @@ -47,10 +47,10 @@ typedef struct AVDetectionBBox {
>       * DNN models on one bounding box.
>       * classify_count is zero if no classification.
>       */
> -#define AV_NUM_BBOX_CLASSIFY 4
> +#define AV_NUM_DETECTION_BBOX_CLASSIFY 4
>      uint32_t classify_count;
> -    char
> classify_labels[AV_NUM_BBOX_CLASSIFY][AV_DETECTION_BBOX_LABEL_NA
> ME_MAX_SIZE];
> -    AVRational classify_confidences[AV_NUM_BBOX_CLASSIFY];
> +    char
> classify_labels[AV_NUM_DETECTION_BBOX_CLASSIFY][AV_DETECTION_BBO
> X_LABEL_NAME_MAX_SIZE];
> +    AVRational
> classify_confidences[AV_NUM_DETECTION_BBOX_CLASSIFY];
>  } AVDetectionBBox;
> 
>  typedef struct AVDetectionBBoxHeader {
> --
will push now.
diff mbox series

Patch

diff --git a/libavutil/detection_bbox.h b/libavutil/detection_bbox.h
index 4ad05d3b95..c88ea383f3 100644
--- a/libavutil/detection_bbox.h
+++ b/libavutil/detection_bbox.h
@@ -47,10 +47,10 @@  typedef struct AVDetectionBBox {
      * DNN models on one bounding box.
      * classify_count is zero if no classification.
      */
-#define AV_NUM_BBOX_CLASSIFY 4
+#define AV_NUM_DETECTION_BBOX_CLASSIFY 4
     uint32_t classify_count;
-    char classify_labels[AV_NUM_BBOX_CLASSIFY][AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE];
-    AVRational classify_confidences[AV_NUM_BBOX_CLASSIFY];
+    char classify_labels[AV_NUM_DETECTION_BBOX_CLASSIFY][AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE];
+    AVRational classify_confidences[AV_NUM_DETECTION_BBOX_CLASSIFY];
 } AVDetectionBBox;
 
 typedef struct AVDetectionBBoxHeader {