From: Nicolas George <george@nsup.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] avfilter: add Audio Video Sync Test filter
Date: Wed, 16 Mar 2022 21:08:52 +0100
Message-ID: <YjJD1L5jiJHf7Lk7@phare.normalesup.org> (raw)
In-Reply-To: <20220309172200.858111-1-onemda@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1077 bytes --]
Paul B Mahol (12022-03-09):
> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> ---
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/src_avsynctest.c | 399 +++++++++++++++++++++++++++++++++++
> 3 files changed, 401 insertions(+)
> create mode 100644 libavfilter/src_avsynctest.c
I opposed to this patch the first time, on the basis that our existing
sources (testsrc and sine) would do the job just as well, and you never
bothered to explain what this particular version would bring. I have
found out on my own and therefore withdraw my objection.
>
> +static int32_t sin32(int32_t x, int shift)
> +{
> + const double pi = M_PI;
> + const int32_t a = ((2.0 * pi) * (1 << 24));
> + const int32_t b = (1 << 7) * (12.0 / pi - 1.0 - pi) * (1 << 24);
> + const int32_t c = (1 << 9) * 3.0 * (2.0 + pi - 16.0 / pi) * (1 << 24);
> + int64_t x2, result;
> + int32_t t1, t2;
Can you consider reuse the code from asrc_sine to generate a bit-exact
sin table?
Regards,
--
Nicolas George
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
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-03-16 20:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-09 17:22 Paul B Mahol
2022-03-16 20:08 ` Nicolas George [this message]
2022-03-16 21:46 ` Paul B Mahol
2022-04-09 19:21 Paul B Mahol
2022-04-09 19:21 ` Paul B Mahol
2022-04-11 18:04 ` Paul B Mahol
2022-04-12 17:43 ` Tristan Matthews
2022-04-12 18:07 ` Paul B Mahol
2022-04-12 18:51 ` Tristan Matthews
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=YjJD1L5jiJHf7Lk7@phare.normalesup.org \
--to=george@nsup.org \
--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