From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH 1/3] avfilter: Rename blend_modes.c -> blend_modes_template.c
Date: Wed, 16 Feb 2022 05:38:04 +0100
Message-ID: <AM7PR03MB6660178C27B3D519F666D90B8F359@AM7PR03MB6660.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <20220215215228.12252-1-michael@niedermayer.cc>
Michael Niedermayer:
> This is more consistent with similar usage
>
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
> .../{blend_modes.c => blend_modes_template.c} | 0
> libavfilter/vf_blend.c | 14 +++++++-------
> 2 files changed, 7 insertions(+), 7 deletions(-)
> rename libavfilter/{blend_modes.c => blend_modes_template.c} (100%)
>
> diff --git a/libavfilter/blend_modes.c b/libavfilter/blend_modes_template.c
> similarity index 100%
> rename from libavfilter/blend_modes.c
> rename to libavfilter/blend_modes_template.c
> diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c
> index 2d433e439f..e912ba4cb8 100644
> --- a/libavfilter/vf_blend.c
> +++ b/libavfilter/vf_blend.c
> @@ -34,31 +34,31 @@
> #define BOTTOM 1
>
> #define DEPTH 8
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> #undef DEPTH
> #define DEPTH 9
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> #undef DEPTH
> #define DEPTH 10
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> #undef DEPTH
> #define DEPTH 12
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> #undef DEPTH
> #define DEPTH 14
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> #undef DEPTH
> #define DEPTH 16
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> #undef DEPTH
> #define DEPTH 32
> -#include "blend_modes.c"
> +#include "blend_modes_template.c"
>
> typedef struct BlendContext {
> const AVClass *class;
Right now make's vf_blend.d contains an entry
src/libavfilter/blend_modes.c; if one applies this patch, said file does
no longer exist and make errors out with "No rule to make target
'src/libavfilter/blend_modes.c', needed by 'libavfilter/vf_blend.o'.",
because the blend_modes.c prerequisite can't be made. In
3044d0efee9136c19dfdcf6dcdf957e910a73fd5 I made the build process treat
templates just like headers so that they can be deleted without this
error. Would there be any negative side-effects of doing the same for
all files?
(Btw: The AC-3 decoder also uses a misnamed template; I didn't fix it
because of the aforementioned issue.)
- Andreas
_______________________________________________
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".
next prev parent reply other threads:[~2022-02-16 4:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-15 21:52 Michael Niedermayer
2022-02-15 21:52 ` [FFmpeg-devel] [PATCH 2/3] avcodec/speexdec: Use correct doxygen comments Michael Niedermayer
2022-03-17 19:25 ` Michael Niedermayer
2022-02-15 21:52 ` [FFmpeg-devel] [PATCH 3/3] avcodec/speexdec: Align some comments Michael Niedermayer
2022-03-17 19:25 ` Michael Niedermayer
2022-02-16 4:38 ` Andreas Rheinhardt [this message]
2022-02-16 19:02 ` [FFmpeg-devel] [PATCH 1/3] avfilter: Rename blend_modes.c -> blend_modes_template.c Michael Niedermayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM7PR03MB6660178C27B3D519F666D90B8F359@AM7PR03MB6660.eurprd03.prod.outlook.com \
--to=andreas.rheinhardt@outlook.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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