On Tue Oct 31 18:36:04 2023 +0000, Zebediah Figura wrote:
> We can delete this line.
https://learn.microsoft.com/en-us/windows/win32/api/strmif/nf-strmif-iamstr… says that parameter can return non-NULL, so it felt wrong to potentially leak it.
But that same page says this specific filter, and every Windows builtin, always returns NULL, so checking for something that's documented to never happen is also kinda wrong.
Which means I have no particular opinion in either direction. If you do, let's go with that.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3938#note_50384
On Tue Oct 31 18:36:03 2023 +0000, Zebediah Figura wrote:
> This can be static now.
> Let's use enum wg_video_format instead of wg_video_format; the latter is
> a typedef of UINT32 and therefore the compiler won't recognize it as an enum.
> I don't particularly like the naming "get_bytes"; that sounds like it's
> retrieving the actual data in some sense. How about
> "wg_format_get_max_size_video_raw()", matching the naming scheme for wg_format_to_caps()?
Yeah, I refactored that one about 38 times while creating this MR, some of which called it from other source files. But yeah, this version doesn't, so let's fix it. (Did anyone try compiling Wine with -Wmissing-declarations? That one throws a warning for nonstatic functions with no preceding prototype, and is perfect for catching things that should be static.)
I have no particular opinion on the name, so sure, we can do that.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3938#note_50383
Zebediah Figura (@zfigura) commented about dlls/winegstreamer/quartz_parser.c:
>
> #define ALIGN(n, alignment) (((n) + (alignment) - 1) & ~((alignment) - 1))
>
> +unsigned int wg_format_get_bytes_for_uncompressed(wg_video_format format, unsigned int width, unsigned int height)
This can be static now.
Let's use enum wg_video_format instead of wg_video_format; the latter is a typedef of UINT32 and therefore the compiler won't recognize it as an enum.
I don't particularly like the naming "get_bytes"; that sounds like it's retrieving the actual data in some sense. How about "wg_format_get_max_size_video_raw()", matching the naming scheme for wg_format_to_caps()?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3938#note_50375