From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH 1/3] avutil: rename av_mod_uintp2 to av_zero_extend
Date: Tue, 11 Jun 2024 22:19:05 +0200
Message-ID: <GV1P250MB0737276BA70B65FFA6C24F688FC72@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <2058861.QIqb1cn7Cx@basile.remlab.net>
Rémi Denis-Courmont:
> Le tiistaina 11. kesäkuuta 2024, 21.52.30 EEST James Almer a écrit :
>> It's more descriptive of what it does.
>>
>> Signed-off-by: James Almer <jamrial@gmail.com>
>> ---
>> libavutil/common.h | 16 +++++++++++++++-
>> libavutil/version.h | 1 +
>> libavutil/x86/intmath.h | 6 +++---
>> 3 files changed, 19 insertions(+), 4 deletions(-)
>>
>> diff --git a/libavutil/common.h b/libavutil/common.h
>> index 3e4c339893..acd041fb67 100644
>> --- a/libavutil/common.h
>> +++ b/libavutil/common.h
>> @@ -42,6 +42,7 @@
>> #include "attributes.h"
>> #include "error.h"
>> #include "macros.h"
>> +#include "version.h"
>>
>> #ifdef HAVE_AV_CONFIG_H
>> # include "config.h"
>> @@ -122,9 +123,11 @@
>> #ifndef av_clip_uintp2
>> # define av_clip_uintp2 av_clip_uintp2_c
>> #endif
>> +#if FF_API_MOD_UINTP2
>> #ifndef av_mod_uintp2
>> # define av_mod_uintp2 av_mod_uintp2_c
>> #endif
>> +#endif
>> #ifndef av_sat_add32
>> # define av_sat_add32 av_sat_add32_c
>> #endif
>> @@ -149,6 +152,9 @@
>> #ifndef av_clipd
>> # define av_clipd av_clipd_c
>> #endif
>> +#ifndef av_zero_extend
>> +# define av_zero_extend av_zero_extend_c
>> +#endif
>> #ifndef av_popcount
>> # define av_popcount av_popcount_c
>> #endif
>
> What's the breakdown between common and intmath and where should new functions
> be defined?
>
intmath.h is private, common.h is public. That's the difference.
Most of these misc-math functions are integer only (IIRC with the
exception of floating point clip functions). We should probably move
these functions to a new header intmath.h and make it public (the old
intmath.h would be renamed to intmath_internal.h or so).
- 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:[~2024-06-11 20:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 18:52 James Almer
2024-06-11 18:52 ` [FFmpeg-devel] [PATCH 2/3] avutil/common: assert that bit position in av_zero_extend is valid James Almer
2024-06-11 18:52 ` [FFmpeg-devel] [PATCH 3/3] avcodec: use the renamed av_zero_extend James Almer
2024-06-11 19:13 ` [FFmpeg-devel] [PATCH 1/3] avutil: rename av_mod_uintp2 to av_zero_extend Rémi Denis-Courmont
2024-06-11 19:28 ` James Almer
2024-06-11 20:19 ` Andreas Rheinhardt [this message]
2024-06-11 20:26 ` Andreas Rheinhardt
2024-06-13 17:21 ` James Almer
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=GV1P250MB0737276BA70B65FFA6C24F688FC72@GV1P250MB0737.EURP250.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