Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45
@ 2025-05-15 12:46 Nuo Mi
  2025-05-15 17:42 ` Zhao Zhili
  2025-05-15 20:31 ` softworkz .
  0 siblings, 2 replies; 4+ messages in thread
From: Nuo Mi @ 2025-05-15 12:46 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Nuo Mi

We defined CR to 2 in libavcodec/vvc/dec.h, but the CR used by _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY winnt.h
reorder the header will avoid the issue.
---
 tests/checkasm/vvc_sao.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/checkasm/vvc_sao.c b/tests/checkasm/vvc_sao.c
index 9e6507b2c3..4ad40684fa 100644
--- a/tests/checkasm/vvc_sao.c
+++ b/tests/checkasm/vvc_sao.c
@@ -20,14 +20,13 @@
 
 #include <string.h>
 
+#include "checkasm.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mem_internal.h"
 
 #include "libavcodec/vvc/dsp.h"
 #include "libavcodec/vvc/ctu.h"
 
-#include "checkasm.h"
-
 static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
 static const uint32_t sao_size[] = {8, 16, 32, 48, 64, 80, 96, 112, 128};
 
-- 
2.34.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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45
  2025-05-15 12:46 [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45 Nuo Mi
@ 2025-05-15 17:42 ` Zhao Zhili
  2025-05-15 20:31 ` softworkz .
  1 sibling, 0 replies; 4+ messages in thread
From: Zhao Zhili @ 2025-05-15 17:42 UTC (permalink / raw)
  To: FFmpeg development discussions and patches



> On May 15, 2025, at 20:46, Nuo Mi <nuomi2021@gmail.com> wrote:
> 
> We defined CR to 2 in libavcodec/vvc/dec.h, but the CR used by _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY winnt.h
> reorder the header will avoid the issue.

There are similar issues of using short uppercase variable names or macro, e.g.,

f0f596dbc6b45b544d2d2d4fb78c0a2bdc3e6eb1

And

b1240c983f96271990c4262978a08edc8eb4df1f

How about limit the scope or add prefix to the macro?

> ---
> tests/checkasm/vvc_sao.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/tests/checkasm/vvc_sao.c b/tests/checkasm/vvc_sao.c
> index 9e6507b2c3..4ad40684fa 100644
> --- a/tests/checkasm/vvc_sao.c
> +++ b/tests/checkasm/vvc_sao.c
> @@ -20,14 +20,13 @@
> 
> #include <string.h>
> 
> +#include "checkasm.h"
> #include "libavutil/intreadwrite.h"
> #include "libavutil/mem_internal.h"
> 
> #include "libavcodec/vvc/dsp.h"
> #include "libavcodec/vvc/ctu.h"
> 
> -#include "checkasm.h"
> -
> static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
> static const uint32_t sao_size[] = {8, 16, 32, 48, 64, 80, 96, 112, 128};
> 
> -- 
> 2.34.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".

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45
  2025-05-15 12:46 [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45 Nuo Mi
  2025-05-15 17:42 ` Zhao Zhili
@ 2025-05-15 20:31 ` softworkz .
  2025-05-16 12:53   ` Nuo Mi
  1 sibling, 1 reply; 4+ messages in thread
From: softworkz . @ 2025-05-15 20:31 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Nuo Mi



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Nuo Mi
> Sent: Donnerstag, 15. Mai 2025 14:46
> To: ffmpeg-devel@ffmpeg.org
> Cc: Nuo Mi <nuomi2021@gmail.com>
> Subject: [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by
> 45bea45
> 
> We defined CR to 2 in libavcodec/vvc/dec.h, but the CR used by
> _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY winnt.h
> reorder the header will avoid the issue.
> ---
>  tests/checkasm/vvc_sao.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/tests/checkasm/vvc_sao.c b/tests/checkasm/vvc_sao.c
> index 9e6507b2c3..4ad40684fa 100644
> --- a/tests/checkasm/vvc_sao.c
> +++ b/tests/checkasm/vvc_sao.c
> @@ -20,14 +20,13 @@
> 
>  #include <string.h>
> 
> +#include "checkasm.h"
>  #include "libavutil/intreadwrite.h"
>  #include "libavutil/mem_internal.h"
> 
>  #include "libavcodec/vvc/dsp.h"
>  #include "libavcodec/vvc/ctu.h"
> 
> -#include "checkasm.h"
> -
>  static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
>  static const uint32_t sao_size[] = {8, 16, 32, 48, 64, 80, 96, 112, 128};
> 
> --

LGTM - at least as an immediate fix for the builds (Zhao's suggestion can 
still be considered afterwards, I think)
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45
  2025-05-15 20:31 ` softworkz .
@ 2025-05-16 12:53   ` Nuo Mi
  0 siblings, 0 replies; 4+ messages in thread
From: Nuo Mi @ 2025-05-16 12:53 UTC (permalink / raw)
  To: softworkz .; +Cc: FFmpeg development discussions and patches

Thank you, Zhili and softworkz, for the review.
Applied.

The purpose of the CR macro is to improve readability.
Adding a VVC_ prefix would make the code unnecessarily long and reduce
clarity.
I don't have a strong opinion on this, if either of you still feel that
VVC_CB is better.
I'm happy to make the change.

On Fri, May 16, 2025 at 4:31 AM softworkz . <softworkz@hotmail.com> wrote:

>
>
> > -----Original Message-----
> > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Nuo Mi
> > Sent: Donnerstag, 15. Mai 2025 14:46
> > To: ffmpeg-devel@ffmpeg.org
> > Cc: Nuo Mi <nuomi2021@gmail.com>
> > Subject: [FFmpeg-devel] [PATCH] build: fix windows build issue
> introduced by
> > 45bea45
> >
> > We defined CR to 2 in libavcodec/vvc/dec.h, but the CR used by
> > _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY winnt.h
> > reorder the header will avoid the issue.
> > ---
> >  tests/checkasm/vvc_sao.c | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/tests/checkasm/vvc_sao.c b/tests/checkasm/vvc_sao.c
> > index 9e6507b2c3..4ad40684fa 100644
> > --- a/tests/checkasm/vvc_sao.c
> > +++ b/tests/checkasm/vvc_sao.c
> > @@ -20,14 +20,13 @@
> >
> >  #include <string.h>
> >
> > +#include "checkasm.h"
> >  #include "libavutil/intreadwrite.h"
> >  #include "libavutil/mem_internal.h"
> >
> >  #include "libavcodec/vvc/dsp.h"
> >  #include "libavcodec/vvc/ctu.h"
> >
> > -#include "checkasm.h"
> > -
> >  static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff,
> 0x0fff0fff };
> >  static const uint32_t sao_size[] = {8, 16, 32, 48, 64, 80, 96, 112,
> 128};
> >
> > --
>
> LGTM - at least as an immediate fix for the builds (Zhao's suggestion can
> still be considered afterwards, I think)
>
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-16 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-15 12:46 [FFmpeg-devel] [PATCH] build: fix windows build issue introduced by 45bea45 Nuo Mi
2025-05-15 17:42 ` Zhao Zhili
2025-05-15 20:31 ` softworkz .
2025-05-16 12:53   ` Nuo Mi

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git