* [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
@ 2024-01-28 13:49 Andreas Rheinhardt
2024-01-28 13:50 ` [FFmpeg-devel] [PATCH 2/2] avcodec/aac_defines: Remove unused AAC_RENAME_32 Andreas Rheinhardt
2024-01-28 22:41 ` [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Michael Niedermayer
0 siblings, 2 replies; 9+ messages in thread
From: Andreas Rheinhardt @ 2024-01-28 13:49 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
and cf00f60bab1f79213c274a6cd4357b32bd5c0101
("avcodec/kbdwin: Support arbitrary sized windows").
The change in question has only been made for libavradio.
in anticipation of merging it into the main tree. This has
not happened, so this commit reverts the changes to kbdwin
that are not used for anything else. In particular, these
functions are no longer exported (as avpriv functions);
notice that the fixed-point function has been exported
despite having never been used outside of lavc.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavcodec/aacdec_template.c | 8 ++++----
libavcodec/aactab.c | 4 ++--
libavcodec/ac3dec.c | 2 +-
libavcodec/ac3enc_fixed.c | 2 +-
libavcodec/ac3enc_float.c | 2 +-
libavcodec/dolby_e.c | 4 ++--
libavcodec/kbdwin.c | 23 ++++++++---------------
libavcodec/kbdwin.h | 10 ++++------
8 files changed, 23 insertions(+), 32 deletions(-)
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index 2b3509c85f..28f4b8110b 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -1130,8 +1130,8 @@ static av_cold void aac_static_table_init(void)
ff_aacdec_common_init_once();
// window initialization
- AAC_RENAME(avpriv_kbd_window_init)(AAC_RENAME(aac_kbd_long_960), 4.0, 960);
- AAC_RENAME(avpriv_kbd_window_init)(AAC_RENAME(aac_kbd_short_120), 6.0, 120);
+ AAC_RENAME(ff_kbd_window_init)(AAC_RENAME(aac_kbd_long_960), 4.0, 960);
+ AAC_RENAME(ff_kbd_window_init)(AAC_RENAME(aac_kbd_short_120), 6.0, 120);
#if !USE_FIXED
AAC_RENAME(ff_sine_window_init)(AAC_RENAME(sine_960), 960);
@@ -1139,8 +1139,8 @@ static av_cold void aac_static_table_init(void)
AAC_RENAME(ff_init_ff_sine_windows)(9);
ff_aac_float_common_init();
#else
- AAC_RENAME(avpriv_kbd_window_init)(AAC_RENAME2(aac_kbd_long_1024), 4.0, 1024);
- AAC_RENAME(avpriv_kbd_window_init)(AAC_RENAME2(aac_kbd_short_128), 6.0, 128);
+ AAC_RENAME(ff_kbd_window_init)(AAC_RENAME2(aac_kbd_long_1024), 4.0, 1024);
+ AAC_RENAME(ff_kbd_window_init)(AAC_RENAME2(aac_kbd_short_128), 6.0, 128);
init_sine_windows_fixed();
#endif
diff --git a/libavcodec/aactab.c b/libavcodec/aactab.c
index 63a478f33f..f34c1ac69e 100644
--- a/libavcodec/aactab.c
+++ b/libavcodec/aactab.c
@@ -94,8 +94,8 @@ static av_cold void aac_float_common_init(void)
{
aac_tableinit();
- avpriv_kbd_window_init(ff_aac_kbd_long_1024, 4.0, 1024);
- avpriv_kbd_window_init(ff_aac_kbd_short_128, 6.0, 128);
+ ff_kbd_window_init(ff_aac_kbd_long_1024, 4.0, 1024);
+ ff_kbd_window_init(ff_aac_kbd_short_128, 6.0, 128);
ff_init_ff_sine_windows(10);
ff_init_ff_sine_windows(7);
}
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index ee50138605..3db71fed39 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -228,7 +228,7 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
if ((ret = av_tx_init(&s->tx_256, &s->tx_fn_256, IMDCT_TYPE, 1, 256, &scale, 0)))
return ret;
- AC3_RENAME(avpriv_kbd_window_init)(s->window, 5.0, 256);
+ AC3_RENAME(ff_kbd_window_init)(s->window, 5.0, 256);
ff_bswapdsp_init(&s->bdsp);
#if (USE_FIXED)
diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c
index 079a43dc39..88dfd66b91 100644
--- a/libavcodec/ac3enc_fixed.c
+++ b/libavcodec/ac3enc_fixed.c
@@ -82,7 +82,7 @@ static av_cold int ac3_fixed_mdct_init(AC3EncodeContext *s)
if (!iwin)
return AVERROR(ENOMEM);
- avpriv_kbd_window_init(fwin, 5.0, AC3_BLOCK_SIZE);
+ ff_kbd_window_init(fwin, 5.0, AC3_BLOCK_SIZE);
for (int i = 0; i < AC3_BLOCK_SIZE; i++)
iwin[i] = lrintf(fwin[i] * (1 << 22));
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c
index 9664adbf63..ae351a535e 100644
--- a/libavcodec/ac3enc_float.c
+++ b/libavcodec/ac3enc_float.c
@@ -92,7 +92,7 @@ static av_cold int ac3_float_mdct_init(AC3EncodeContext *s)
return AVERROR(ENOMEM);
}
- avpriv_kbd_window_init(window, 5.0, AC3_BLOCK_SIZE);
+ ff_kbd_window_init(window, 5.0, AC3_BLOCK_SIZE);
s->mdct_window = window;
return av_tx_init(&s->tx, &s->tx_fn, AV_TX_FLOAT_MDCT, 0,
diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c
index b8dac0fa3f..921c33f3ba 100644
--- a/libavcodec/dolby_e.c
+++ b/libavcodec/dolby_e.c
@@ -1200,7 +1200,7 @@ static av_cold void init_tables(void)
gain_tab[i] = exp2f((i - 960) / 64.0f);
// short 1
- avpriv_kbd_window_init(window, 3.0f, 128);
+ ff_kbd_window_init(window, 3.0f, 128);
for (i = 0; i < 128; i++)
window[128 + i] = window[127 - i];
@@ -1227,7 +1227,7 @@ static av_cold void init_tables(void)
window[1088 + i] = 1.0f;
// long
- avpriv_kbd_window_init(window + 1408, 3.0f, 256);
+ ff_kbd_window_init(window + 1408, 3.0f, 256);
for (i = 0; i < 640; i++)
window[1664 + i] = 1.0f;
for (i = 0; i < 256; i++)
diff --git a/libavcodec/kbdwin.c b/libavcodec/kbdwin.c
index ff7a7d614e..cb73ceb160 100644
--- a/libavcodec/kbdwin.c
+++ b/libavcodec/kbdwin.c
@@ -17,27 +17,23 @@
*/
#include "libavutil/avassert.h"
-#include "libavutil/error.h"
#include "libavutil/libm.h"
#include "libavutil/mathematics.h"
#include "libavutil/attributes.h"
-#include "libavutil/mem.h"
#include "kbdwin.h"
-av_cold static int kbd_window_init(float *float_window, int *int_window, float alpha, int n)
+av_cold static void kbd_window_init(float *float_window, int *int_window, float alpha, int n)
{
int i;
double sum = 0.0, tmp;
double scale = 0.0;
- double temp_small[FF_KBD_WINDOW_MAX / 2 + 1];
- double *temp= n<=FF_KBD_WINDOW_MAX ? temp_small : av_malloc((n/2+1) * sizeof(*temp));
+ double temp[FF_KBD_WINDOW_MAX / 2 + 1];
double alpha2 = 4 * (alpha * M_PI / n) * (alpha * M_PI / n);
- if (!temp)
- return AVERROR(ENOMEM);
+ av_assert0(n <= FF_KBD_WINDOW_MAX);
for (i = 0; i <= n / 2; i++) {
- tmp = alpha2 * i * (n - i);
+ tmp = i * (n - i) * alpha2;
temp[i] = av_bessel_i0(sqrt(tmp));
scale += temp[i] * (1 + (i && i<n/2));
}
@@ -53,17 +49,14 @@ av_cold static int kbd_window_init(float *float_window, int *int_window, float a
if (float_window) float_window[i] = sqrt(sum * scale);
else int_window[i] = lrint(2147483647 * sqrt(sum * scale));
}
- if (temp != temp_small)
- av_free(temp);
- return 0;
}
-av_cold int avpriv_kbd_window_init(float *window, float alpha, int n)
+av_cold void ff_kbd_window_init(float *window, float alpha, int n)
{
- return kbd_window_init(window, NULL, alpha, n);
+ kbd_window_init(window, NULL, alpha, n);
}
-av_cold int avpriv_kbd_window_init_fixed(int32_t *window, float alpha, int n)
+av_cold void ff_kbd_window_init_fixed(int32_t *window, float alpha, int n)
{
- return kbd_window_init(NULL, window, alpha, n);
+ kbd_window_init(NULL, window, alpha, n);
}
diff --git a/libavcodec/kbdwin.h b/libavcodec/kbdwin.h
index 0cb2073c5f..4185c4206f 100644
--- a/libavcodec/kbdwin.h
+++ b/libavcodec/kbdwin.h
@@ -22,7 +22,7 @@
#include <stdint.h>
/**
- * Maximum window size for avpriv_kbd_window_init.
+ * Maximum window size for ff_kbd_window_init.
*/
#define FF_KBD_WINDOW_MAX 1024
@@ -30,11 +30,9 @@
* Generate a Kaiser-Bessel Derived Window.
* @param window pointer to half window
* @param alpha determines window shape
- * @param n size of half window
- *
- * @return if n is larger than FF_KBD_WINDOW_MAX then AVERROR(ENOMEM) is possible
+ * @param n size of half window, max FF_KBD_WINDOW_MAX
*/
-int avpriv_kbd_window_init(float *window, float alpha, int n);
-int avpriv_kbd_window_init_fixed(int32_t *window, float alpha, int n);
+void ff_kbd_window_init(float *window, float alpha, int n);
+void ff_kbd_window_init_fixed(int32_t *window, float alpha, int n);
#endif /* AVCODEC_KBDWIN_H */
--
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] 9+ messages in thread
* [FFmpeg-devel] [PATCH 2/2] avcodec/aac_defines: Remove unused AAC_RENAME_32
2024-01-28 13:49 [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Andreas Rheinhardt
@ 2024-01-28 13:50 ` Andreas Rheinhardt
2024-01-28 22:41 ` [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Michael Niedermayer
1 sibling, 0 replies; 9+ messages in thread
From: Andreas Rheinhardt @ 2024-01-28 13:50 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Unused since fbe6a51b11e20c5dfe076877f02d2bbb2300005d.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavcodec/aac_defines.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/aac_defines.h b/libavcodec/aac_defines.h
index bd0d93275a..59528f1f0d 100644
--- a/libavcodec/aac_defines.h
+++ b/libavcodec/aac_defines.h
@@ -30,7 +30,6 @@
#include "libavutil/softfloat.h"
#define AAC_RENAME(x) x ## _fixed
-#define AAC_RENAME_32(x) x ## _fixed_32
#define AAC_RENAME2(x) x ## _fixed
typedef int INTFLOAT;
typedef unsigned UINTFLOAT; ///< Equivalent to INTFLOAT, Used as temporal cast to avoid undefined sign overflow operations.
@@ -77,7 +76,6 @@ typedef int AAC_SIGNE;
#else
#define AAC_RENAME(x) x
-#define AAC_RENAME_32(x) x
#define AAC_RENAME2(x) ff_ ## x
typedef float INTFLOAT;
typedef float UINTFLOAT;
--
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] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-28 13:49 [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Andreas Rheinhardt
2024-01-28 13:50 ` [FFmpeg-devel] [PATCH 2/2] avcodec/aac_defines: Remove unused AAC_RENAME_32 Andreas Rheinhardt
@ 2024-01-28 22:41 ` Michael Niedermayer
2024-01-28 23:52 ` James Almer
1 sibling, 1 reply; 9+ messages in thread
From: Michael Niedermayer @ 2024-01-28 22:41 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 1807 bytes --]
On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
> This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
> and cf00f60bab1f79213c274a6cd4357b32bd5c0101
> ("avcodec/kbdwin: Support arbitrary sized windows").
>
> The change in question has only been made for libavradio.
> in anticipation of merging it into the main tree. This has
> not happened, so this commit reverts the changes to kbdwin
> that are not used for anything else. In particular, these
> functions are no longer exported (as avpriv functions);
> notice that the fixed-point function has been exported
> despite having never been used outside of lavc.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> libavcodec/aacdec_template.c | 8 ++++----
> libavcodec/aactab.c | 4 ++--
> libavcodec/ac3dec.c | 2 +-
> libavcodec/ac3enc_fixed.c | 2 +-
> libavcodec/ac3enc_float.c | 2 +-
> libavcodec/dolby_e.c | 4 ++--
> libavcodec/kbdwin.c | 23 ++++++++---------------
> libavcodec/kbdwin.h | 10 ++++------
> 8 files changed, 23 insertions(+), 32 deletions(-)
I still intend to work on SDR either within what people agreed to
(that is a separate library) or in form of a fork.
For both it is easier if the functions it needs are accessible
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Modern terrorism, a quick summary: Need oil, start war with country that
has oil, kill hundread thousand in war. Let country fall into chaos,
be surprised about raise of fundamantalists. Drop more bombs, kill more
people, be surprised about them taking revenge and drop even more bombs
and strip your own citizens of their rights and freedoms. to be continued
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 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".
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-28 22:41 ` [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Michael Niedermayer
@ 2024-01-28 23:52 ` James Almer
2024-01-29 2:31 ` Michael Niedermayer
0 siblings, 1 reply; 9+ messages in thread
From: James Almer @ 2024-01-28 23:52 UTC (permalink / raw)
To: ffmpeg-devel
On 1/28/2024 7:41 PM, Michael Niedermayer wrote:
> On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
>> This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
>> and cf00f60bab1f79213c274a6cd4357b32bd5c0101
>> ("avcodec/kbdwin: Support arbitrary sized windows").
>>
>> The change in question has only been made for libavradio.
>> in anticipation of merging it into the main tree. This has
>> not happened, so this commit reverts the changes to kbdwin
>> that are not used for anything else. In particular, these
>> functions are no longer exported (as avpriv functions);
>> notice that the fixed-point function has been exported
>> despite having never been used outside of lavc.
>>
>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>> ---
>> libavcodec/aacdec_template.c | 8 ++++----
>> libavcodec/aactab.c | 4 ++--
>> libavcodec/ac3dec.c | 2 +-
>> libavcodec/ac3enc_fixed.c | 2 +-
>> libavcodec/ac3enc_float.c | 2 +-
>> libavcodec/dolby_e.c | 4 ++--
>> libavcodec/kbdwin.c | 23 ++++++++---------------
>> libavcodec/kbdwin.h | 10 ++++------
>> 8 files changed, 23 insertions(+), 32 deletions(-)
>
> I still intend to work on SDR either within what people agreed to
> (that is a separate library) or in form of a fork.
>
> For both it is easier if the functions it needs are accessible
>
> thx
Renaming an ff_ symbol into avpriv_ can happen at any time. Renaming an
avpriv_ symbol to ff_ can only happen during a bump. So this patch is
IMO ok.
There's no warranty that whatever happens with SDR will happen before
the next bump, so better remove as many exposed symbols as possible.
_______________________________________________
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] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-28 23:52 ` James Almer
@ 2024-01-29 2:31 ` Michael Niedermayer
2024-01-29 7:59 ` Andreas Rheinhardt
0 siblings, 1 reply; 9+ messages in thread
From: Michael Niedermayer @ 2024-01-29 2:31 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 2352 bytes --]
On Sun, Jan 28, 2024 at 08:52:20PM -0300, James Almer wrote:
> On 1/28/2024 7:41 PM, Michael Niedermayer wrote:
> > On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
> > > This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
> > > and cf00f60bab1f79213c274a6cd4357b32bd5c0101
> > > ("avcodec/kbdwin: Support arbitrary sized windows").
> > >
> > > The change in question has only been made for libavradio.
> > > in anticipation of merging it into the main tree. This has
> > > not happened, so this commit reverts the changes to kbdwin
> > > that are not used for anything else. In particular, these
> > > functions are no longer exported (as avpriv functions);
> > > notice that the fixed-point function has been exported
> > > despite having never been used outside of lavc.
> > >
> > > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> > > ---
> > > libavcodec/aacdec_template.c | 8 ++++----
> > > libavcodec/aactab.c | 4 ++--
> > > libavcodec/ac3dec.c | 2 +-
> > > libavcodec/ac3enc_fixed.c | 2 +-
> > > libavcodec/ac3enc_float.c | 2 +-
> > > libavcodec/dolby_e.c | 4 ++--
> > > libavcodec/kbdwin.c | 23 ++++++++---------------
> > > libavcodec/kbdwin.h | 10 ++++------
> > > 8 files changed, 23 insertions(+), 32 deletions(-)
> >
> > I still intend to work on SDR either within what people agreed to
> > (that is a separate library) or in form of a fork.
> >
> > For both it is easier if the functions it needs are accessible
> >
> > thx
>
> Renaming an ff_ symbol into avpriv_ can happen at any time. Renaming an
> avpriv_ symbol to ff_ can only happen during a bump. So this patch is IMO
> ok.
> There's no warranty that whatever happens with SDR will happen before the
> next bump, so better remove as many exposed symbols as possible.
You are missing something here.
With the symbols, i can fork libavdevice and add SDR support.
Without the symbols, i cannot just do that. At least not cleanly
Because i need to replace libavcodec too and i need to extend its ABI
then.
This makes this more messy.
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Never trust a computer, one day, it may think you are the virus. -- Compn
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 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".
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-29 2:31 ` Michael Niedermayer
@ 2024-01-29 7:59 ` Andreas Rheinhardt
2024-01-29 9:09 ` Vittorio Giovara
0 siblings, 1 reply; 9+ messages in thread
From: Andreas Rheinhardt @ 2024-01-29 7:59 UTC (permalink / raw)
To: ffmpeg-devel
Michael Niedermayer:
> On Sun, Jan 28, 2024 at 08:52:20PM -0300, James Almer wrote:
>> On 1/28/2024 7:41 PM, Michael Niedermayer wrote:
>>> On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
>>>> This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
>>>> and cf00f60bab1f79213c274a6cd4357b32bd5c0101
>>>> ("avcodec/kbdwin: Support arbitrary sized windows").
>>>>
>>>> The change in question has only been made for libavradio.
>>>> in anticipation of merging it into the main tree. This has
>>>> not happened, so this commit reverts the changes to kbdwin
>>>> that are not used for anything else. In particular, these
>>>> functions are no longer exported (as avpriv functions);
>>>> notice that the fixed-point function has been exported
>>>> despite having never been used outside of lavc.
>>>>
>>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>>>> ---
>>>> libavcodec/aacdec_template.c | 8 ++++----
>>>> libavcodec/aactab.c | 4 ++--
>>>> libavcodec/ac3dec.c | 2 +-
>>>> libavcodec/ac3enc_fixed.c | 2 +-
>>>> libavcodec/ac3enc_float.c | 2 +-
>>>> libavcodec/dolby_e.c | 4 ++--
>>>> libavcodec/kbdwin.c | 23 ++++++++---------------
>>>> libavcodec/kbdwin.h | 10 ++++------
>>>> 8 files changed, 23 insertions(+), 32 deletions(-)
>>>
>>> I still intend to work on SDR either within what people agreed to
>>> (that is a separate library) or in form of a fork.
>>>
>>> For both it is easier if the functions it needs are accessible
>>>
>>> thx
>>
>> Renaming an ff_ symbol into avpriv_ can happen at any time. Renaming an
>> avpriv_ symbol to ff_ can only happen during a bump. So this patch is IMO
>> ok.
>> There's no warranty that whatever happens with SDR will happen before the
>> next bump, so better remove as many exposed symbols as possible.
>
> You are missing something here.
>
> With the symbols, i can fork libavdevice and add SDR support.
> Without the symbols, i cannot just do that. At least not cleanly
> Because i need to replace libavcodec too and i need to extend its ABI
> then.
> This makes this more messy.
>
I would rather have you just copy the needed code into your fork of
libavradio/libavdevice than add avpriv symbols (one of which was always
unnecessary) for this.
- 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".
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-29 7:59 ` Andreas Rheinhardt
@ 2024-01-29 9:09 ` Vittorio Giovara
2024-01-29 19:24 ` Michael Niedermayer
0 siblings, 1 reply; 9+ messages in thread
From: Vittorio Giovara @ 2024-01-29 9:09 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Mon, Jan 29, 2024 at 8:58 AM Andreas Rheinhardt <
andreas.rheinhardt@outlook.com> wrote:
> Michael Niedermayer:
> > On Sun, Jan 28, 2024 at 08:52:20PM -0300, James Almer wrote:
> >> On 1/28/2024 7:41 PM, Michael Niedermayer wrote:
> >>> On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
> >>>> This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
> >>>> and cf00f60bab1f79213c274a6cd4357b32bd5c0101
> >>>> ("avcodec/kbdwin: Support arbitrary sized windows").
> >>>>
> >>>> The change in question has only been made for libavradio.
> >>>> in anticipation of merging it into the main tree. This has
> >>>> not happened, so this commit reverts the changes to kbdwin
> >>>> that are not used for anything else. In particular, these
> >>>> functions are no longer exported (as avpriv functions);
> >>>> notice that the fixed-point function has been exported
> >>>> despite having never been used outside of lavc.
> >>>>
> >>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> >>>> ---
> >>>> libavcodec/aacdec_template.c | 8 ++++----
> >>>> libavcodec/aactab.c | 4 ++--
> >>>> libavcodec/ac3dec.c | 2 +-
> >>>> libavcodec/ac3enc_fixed.c | 2 +-
> >>>> libavcodec/ac3enc_float.c | 2 +-
> >>>> libavcodec/dolby_e.c | 4 ++--
> >>>> libavcodec/kbdwin.c | 23 ++++++++---------------
> >>>> libavcodec/kbdwin.h | 10 ++++------
> >>>> 8 files changed, 23 insertions(+), 32 deletions(-)
> >>>
> >>> I still intend to work on SDR either within what people agreed to
> >>> (that is a separate library) or in form of a fork.
> >>>
> >>> For both it is easier if the functions it needs are accessible
> >>>
> >>> thx
> >>
> >> Renaming an ff_ symbol into avpriv_ can happen at any time. Renaming an
> >> avpriv_ symbol to ff_ can only happen during a bump. So this patch is
> IMO
> >> ok.
> >> There's no warranty that whatever happens with SDR will happen before
> the
> >> next bump, so better remove as many exposed symbols as possible.
> >
> > You are missing something here.
> >
> > With the symbols, i can fork libavdevice and add SDR support.
> > Without the symbols, i cannot just do that. At least not cleanly
> > Because i need to replace libavcodec too and i need to extend its ABI
> > then.
> > This makes this more messy.
> >
>
> I would rather have you just copy the needed code into your fork of
> libavradio/libavdevice than add avpriv symbols (one of which was always
> unnecessary) for this.
>
Agreed, Michael is there any blocker for this to be done in your fork?
--
Vittorio
_______________________________________________
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] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-29 9:09 ` Vittorio Giovara
@ 2024-01-29 19:24 ` Michael Niedermayer
2024-01-29 19:31 ` Michael Niedermayer
0 siblings, 1 reply; 9+ messages in thread
From: Michael Niedermayer @ 2024-01-29 19:24 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 3194 bytes --]
On Mon, Jan 29, 2024 at 10:09:52AM +0100, Vittorio Giovara wrote:
> On Mon, Jan 29, 2024 at 8:58 AM Andreas Rheinhardt <
> andreas.rheinhardt@outlook.com> wrote:
>
> > Michael Niedermayer:
> > > On Sun, Jan 28, 2024 at 08:52:20PM -0300, James Almer wrote:
> > >> On 1/28/2024 7:41 PM, Michael Niedermayer wrote:
> > >>> On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
> > >>>> This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
> > >>>> and cf00f60bab1f79213c274a6cd4357b32bd5c0101
> > >>>> ("avcodec/kbdwin: Support arbitrary sized windows").
> > >>>>
> > >>>> The change in question has only been made for libavradio.
> > >>>> in anticipation of merging it into the main tree. This has
> > >>>> not happened, so this commit reverts the changes to kbdwin
> > >>>> that are not used for anything else. In particular, these
> > >>>> functions are no longer exported (as avpriv functions);
> > >>>> notice that the fixed-point function has been exported
> > >>>> despite having never been used outside of lavc.
> > >>>>
> > >>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> > >>>> ---
> > >>>> libavcodec/aacdec_template.c | 8 ++++----
> > >>>> libavcodec/aactab.c | 4 ++--
> > >>>> libavcodec/ac3dec.c | 2 +-
> > >>>> libavcodec/ac3enc_fixed.c | 2 +-
> > >>>> libavcodec/ac3enc_float.c | 2 +-
> > >>>> libavcodec/dolby_e.c | 4 ++--
> > >>>> libavcodec/kbdwin.c | 23 ++++++++---------------
> > >>>> libavcodec/kbdwin.h | 10 ++++------
> > >>>> 8 files changed, 23 insertions(+), 32 deletions(-)
> > >>>
> > >>> I still intend to work on SDR either within what people agreed to
> > >>> (that is a separate library) or in form of a fork.
> > >>>
> > >>> For both it is easier if the functions it needs are accessible
> > >>>
> > >>> thx
> > >>
> > >> Renaming an ff_ symbol into avpriv_ can happen at any time. Renaming an
> > >> avpriv_ symbol to ff_ can only happen during a bump. So this patch is
> > IMO
> > >> ok.
> > >> There's no warranty that whatever happens with SDR will happen before
> > the
> > >> next bump, so better remove as many exposed symbols as possible.
> > >
> > > You are missing something here.
> > >
> > > With the symbols, i can fork libavdevice and add SDR support.
> > > Without the symbols, i cannot just do that. At least not cleanly
> > > Because i need to replace libavcodec too and i need to extend its ABI
> > > then.
> > > This makes this more messy.
> > >
> >
> > I would rather have you just copy the needed code into your fork of
> > libavradio/libavdevice than add avpriv symbols (one of which was always
> > unnecessary) for this.
> >
>
> Agreed, Michael is there any blocker for this to be done in your fork?
Vittorio, Andreas
I think you are correct, I will do that
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 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".
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec"
2024-01-29 19:24 ` Michael Niedermayer
@ 2024-01-29 19:31 ` Michael Niedermayer
0 siblings, 0 replies; 9+ messages in thread
From: Michael Niedermayer @ 2024-01-29 19:31 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 3459 bytes --]
On Mon, Jan 29, 2024 at 08:24:21PM +0100, Michael Niedermayer wrote:
> On Mon, Jan 29, 2024 at 10:09:52AM +0100, Vittorio Giovara wrote:
> > On Mon, Jan 29, 2024 at 8:58 AM Andreas Rheinhardt <
> > andreas.rheinhardt@outlook.com> wrote:
> >
> > > Michael Niedermayer:
> > > > On Sun, Jan 28, 2024 at 08:52:20PM -0300, James Almer wrote:
> > > >> On 1/28/2024 7:41 PM, Michael Niedermayer wrote:
> > > >>> On Sun, Jan 28, 2024 at 02:49:26PM +0100, Andreas Rheinhardt wrote:
> > > >>>> This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09
> > > >>>> and cf00f60bab1f79213c274a6cd4357b32bd5c0101
> > > >>>> ("avcodec/kbdwin: Support arbitrary sized windows").
> > > >>>>
> > > >>>> The change in question has only been made for libavradio.
> > > >>>> in anticipation of merging it into the main tree. This has
> > > >>>> not happened, so this commit reverts the changes to kbdwin
> > > >>>> that are not used for anything else. In particular, these
> > > >>>> functions are no longer exported (as avpriv functions);
> > > >>>> notice that the fixed-point function has been exported
> > > >>>> despite having never been used outside of lavc.
> > > >>>>
> > > >>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> > > >>>> ---
> > > >>>> libavcodec/aacdec_template.c | 8 ++++----
> > > >>>> libavcodec/aactab.c | 4 ++--
> > > >>>> libavcodec/ac3dec.c | 2 +-
> > > >>>> libavcodec/ac3enc_fixed.c | 2 +-
> > > >>>> libavcodec/ac3enc_float.c | 2 +-
> > > >>>> libavcodec/dolby_e.c | 4 ++--
> > > >>>> libavcodec/kbdwin.c | 23 ++++++++---------------
> > > >>>> libavcodec/kbdwin.h | 10 ++++------
> > > >>>> 8 files changed, 23 insertions(+), 32 deletions(-)
> > > >>>
> > > >>> I still intend to work on SDR either within what people agreed to
> > > >>> (that is a separate library) or in form of a fork.
> > > >>>
> > > >>> For both it is easier if the functions it needs are accessible
> > > >>>
> > > >>> thx
> > > >>
> > > >> Renaming an ff_ symbol into avpriv_ can happen at any time. Renaming an
> > > >> avpriv_ symbol to ff_ can only happen during a bump. So this patch is
> > > IMO
> > > >> ok.
> > > >> There's no warranty that whatever happens with SDR will happen before
> > > the
> > > >> next bump, so better remove as many exposed symbols as possible.
> > > >
> > > > You are missing something here.
> > > >
> > > > With the symbols, i can fork libavdevice and add SDR support.
> > > > Without the symbols, i cannot just do that. At least not cleanly
> > > > Because i need to replace libavcodec too and i need to extend its ABI
> > > > then.
> > > > This makes this more messy.
> > > >
> > >
> > > I would rather have you just copy the needed code into your fork of
> > > libavradio/libavdevice than add avpriv symbols (one of which was always
> > > unnecessary) for this.
> > >
> >
> > Agreed, Michael is there any blocker for this to be done in your fork?
>
> Vittorio, Andreas
>
> I think you are correct, I will do that
I mean i will implement KBD inside teh SDR code so you can remove this
just stating that again so its not misunderstood. ALot of things seeem to
be misunderstod lately
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Observe your enemies, for they first find out your faults. -- Antisthenes
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 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".
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-01-29 19:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28 13:49 [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Andreas Rheinhardt
2024-01-28 13:50 ` [FFmpeg-devel] [PATCH 2/2] avcodec/aac_defines: Remove unused AAC_RENAME_32 Andreas Rheinhardt
2024-01-28 22:41 ` [FFmpeg-devel] [PATCH 1/2] Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from outside libavcodec" Michael Niedermayer
2024-01-28 23:52 ` James Almer
2024-01-29 2:31 ` Michael Niedermayer
2024-01-29 7:59 ` Andreas Rheinhardt
2024-01-29 9:09 ` Vittorio Giovara
2024-01-29 19:24 ` Michael Niedermayer
2024-01-29 19:31 ` Michael Niedermayer
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