ting" discussion and vote
>
> do we want to keep Forgejo or switch back to the ML workflow
> (or something else)
>
> F. keep Forgejo as primary forge for patch/git workflow
> M. switch back to the ML for patch/git workflow
F.
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760
ntext_from(c1, len) ? Or is "GetByteContext(&c2, c1.buffer,
> len);" enough?
second one is what I do:
bytestream2_init(&c2, c1.buffer, len)
also need to check that that len does not exceed c1 bytes remaining. use
bytestream2_get_bytes_left(c1).
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2
Two new options added for receive IPv6 multicast streams.
1 multicast_max_joins
2 multicast_interface
Change-Id: Ief0389815cff3edf26f7db5cbff033ce8bb24639
Signed-off-by: Peter Enderborg
---
doc/protocols.texi | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a
function.
Peter Enderborg (5):
configure: Add test_ioctl and test for SIOCGIFINDEX
avformat/udp: Select output interfaces for ipv6 multicast
libavformat: udp.c Add support for multi or single join
libavformat: add multicast interface
doc/protocols: Add command-line description for ipv6
-off-by: Peter Enderborg
---
libavformat/rtpproto.c | 3 ++
libavformat/rtsp.c | 3 +-
libavformat/rtsp.h | 1 +
libavformat/udp.c | 82 +++---
4 files changed, 67 insertions(+), 22 deletions(-)
diff --git a/libavformat/rtpproto.c b/libavformat
Add a commandline option for selecting interface by name.
This is useful when your multicast routing table for
sending multicast does not match the interface reciving
is wanted.
Signed-off-by: Peter Enderborg
---
libavformat/rtpproto.c | 4
libavformat/rtsp.c | 3 +++
libavformat
have multicast support. Local address can be
specified and then it join ALL interfaces that use that specific
local address.
Limitations (TODO's)
Handling when network configuration is changed. if up/down etc.
Change-Id: Ifea9c0504469b108de94643a525d9b55fad5466f
Signed-off-by: Peter
Adds a generic ioctl tester and a specific test SIOCGIFINDEX
that sets ioctl_gifindex. It is a network specific feature
and the tests are run only in network context.
Signed-off-by: Peter Enderborg
---
configure | 16
1 file changed, 16 insertions(+)
diff --git a/configure b
PR #20365 opened by Peter Ross (pross)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20365
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20365.patch
Fixes issue #20341
>From cbac28e3292bc8240a8b3aca371ffc611b8cdcf7 Mon Sep 17 00:00:00 2001
From: Peter Ross
Date: Fri, 29 Aug 2025
PR #20359 opened by Peter Ross (pross)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20359
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20359.patch
Sample: https://github.com/vgmstream/vgmstream/files/11607386/Jumbo_Josh_1.zip
This was a contribution I made to librempeg last year
I'd be happy to hear your opinions on this!
Peter 🌟️❤️
On 02.08.25 21:58, Peter B. wrote:
Me again :)
I was surprised to find this idea not sparking more interest here.
Hm.
Let me try again:
**I would like to hire someone to implement and design with me such a
patch!**
~~Imagine:
PR #20302 opened by Peter Ross (pross)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20302
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20302.patch
>From 628d38aca7987a08586101c4f79c1a075b06353d Mon Sep 17 00:00:00 2001
From: Peter Ross
Date: Thu, 21 Aug 2025 19:58:03 +1000
Subj
On 8/6/25 17:28, Rémi Denis-Courmont wrote:
Le 5 août 2025 14:56:18 GMT+07:00, Peter Enderborg a écrit :
This fixes two old TODO's in ipv6 multicast handling.
A helper function to iterate over all interfaces added to
help join the multicast group on interface if approperite.
The de
have multicast support. Local address can be
specified and then it join ALL interfaces that use that specific
local address.
Limitations (TODO's)
Handling when network configuration is changed. if up/down etc.
Signed-off-by: Peter Enderborg
---
libavformat/
Adds a generic ioctl tester and a specific test SIOCGIFINDEX
that sets ioctl_gifindex. It is a network specific feature
and the tests are run only in network context.
Signed-off-by: Peter Enderborg
---
configure | 18 ++
1 file changed, 18 insertions(+)
diff --git a/configure
History:
v2 Added configure script to disable interface selection for systems that
do not support ioctl SIOCGIFINDEX for mapping name to index-id.
v2.1 rebase
Peter Enderborg (2):
configure: Add test_ioctl and test for SIOCGIFINDEX
avformat/udp: Select output interfaces for ipv6 multicast
have multicast support. Local address can be
specified and then it join ALL interfaces that use that specific
local address.
Limitations (TODO's)
Handling when network configuration is changed. if up/down etc.
Signed-off-by: Peter Enderborg
---
libavformat/
History:
v2 Added configure script to disable interface selection for systems that
do not support ioctl SIOCGIFINDEX for mapping name to index-id.
Peter Enderborg (2):
configure: Add test_ioctl and test for SIOCGIFINDEX
avformat/udp: Select output interfaces for ipv6 multicast
configure
Adds a generic ioctl tester and a specific test SIOCGIFINDEX
that sets ioctl_gifindex. It is a network specific feature
and the tests are run only in network context.
Signed-off-by: Peter Enderborg
---
configure | 18 ++
1 file changed, 18 insertions(+)
diff --git a/configure
dress can be
specified and then it join ALL interfaces that use that specific
local address.
Limitations (TODO's)
Handling when network configuration is changed. if up/down etc.
Signed-off-by: Peter Enderborg
---
libavformat/udp.c | 108 ++
1 file c
e av_get_packet:
if (!data_size)
return AVERROR_INVALIDDATA;
It seems some IFF ANIM files have lots of zeros around EOF, including
the file in fate samples.
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
_
I get bouces saying that the user does not exist. Have have send patch, but no
maintainer.
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-req
On Mon, Jul 07, 2025 at 12:41:34PM +0200, Andreas Rheinhardt wrote:
> Peter Ross:
> > Fixes CID1655273 and CID1655274.
> > ---
> > libavcodec/adpcm.c | 6 ++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/libavcodec/adpcm.c b/libavcodec/a
@ -934,6 +936,8 @@ static int adpcm_sanyo_expand4(ADPCMChannelStatus *c, int
bits)
add = (25 * c->step) >> 1;
c->step = 5 * c->step;
break;
+default:
+av_unreachable("There are cases for all control paths when bits is
4-bit");
, 403, 806, 0xaeb8e751
+0, 19344, 19344, 403, 806, 0x2fc320cf
+0, 19747, 19747, 403, 806, 0x30e720c6
+0, 20150, 20150, 403, 806, 0x1d8f20c8
+0, 20553, 20553, 403, 806, 0x2fc920cd
--
2.47.2
-- Peter
(A907 E02F A6E5
index 00..68ddaae603
--- /dev/null
+++ b/tests/ref/fate/lead-yuv444p
@@ -0,0 +1,6 @@
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
+0, 0, 0,1, 230400, 0xfe90096a
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or
-g728: FUZZ = 5
+
FATE_SAMPLES_AUDIO-$(call PCM, AVI, IMC, ARESAMPLE_FILTER) += fate-imc
fate-imc: CMD = pcm -i $(TARGET_SAMPLES)/imc/imc.avi
fate-imc: CMP = oneoff
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
m_sanyo_expand4(ADPCMChannelStatus *c, int
bits)
add = (25 * c->step) >> 1;
c->step = 5 * c->step;
break;
+default:
+av_assert0(0); /* never reach here when bits is 4-bit */
+return 0;
}
if (sign)
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2
i].size > INT32_MAX - ofs)
> +return AVERROR_INVALIDDATA;
> ofs += s->slice[i].size;
> }
please apply
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel
Peter Ross ([email protected])
*
* This file is part of FFmpeg.
*
@@ -260,6 +261,9 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
case AV_CODEC_ID_ADPCM_IMA_AMV:
max_channels = 1;
break;
+case AV_CODEC_ID_ADPCM_SANYO:
+max_channels = 2
hannels, int16_t
**samples_p);
+
#endif /* AVCODEC_ADPCM_H */
diff --git a/libavcodec/adpcm_le.c b/libavcodec/adpcm_le.c
new file mode 100644
index 00..df8eb3dd90
--- /dev/null
+++ b/libavcodec/adpcm_le.c
@@ -0,0 +1,205 @@
+/*
+ * Copyright (c) 2025 Peter Ross
+ *
+ * This file is part o
, 806, 0xaeb8e751
+0, 19344, 19344, 403, 806, 0x2fc320cf
+0, 19747, 19747, 403, 806, 0x30e720c6
+0, 20150, 20150, 403, 806, 0x1d8f20c8
+0, 20553, 20553, 403, 806, 0x2fc920cd
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2
t; FF_CODEC_DECODE_CB(g728_decode_frame),
> .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF |
>AV_CODEC_CAP_DR1,
> -.p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT,
> - AV_SAMPLE_FMT_NONE },
printf("FNTEMPLATE: '%s'\n", fntemplate);
+
while ((err = av_read_frame(fctx, pkt)) >= 0) {
int fd;
snprintf(pktfilename, sizeof(pktfilename), fntemplate, pktnum,
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.
st->codecpar->ch_layout.nb_channels)
> return AVERROR_INVALIDDATA;
> if (st->codecpar->ch_layout.nb_channels >
> FF_ARRAY_ELEMS(dsd_layout)) {
> avpriv_request_sample(s, "
return AVERROR_INVALIDDATA;
s->slice[i].data = avpkt->data + header_size + ofs;
s->slice[i].data_size = FFMIN(s->slice[i].size, avpkt->size -
header_size - ofs);
ofs += s->slice[i].size;
}
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5
static int read_slice_sizes(RV60Context *s, GetBitContext
*gb)
if (last_size <= 0)
return AVERROR_INVALIDDATA;
s->slice[i].size = last_size;
-sum += s->slice[i].size;
}
align_get_bits(gb);
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2
3e
--- /dev/null
+++ b/libavcodec/g728dec.c
@@ -0,0 +1,220 @@
+/*
+ * G.728 decoder
+ * Copyright (c) 2025 Peter Ross
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as publis
/mpegaudiodsp_mips_float.o
MIPSDSP-OBJS-$(CONFIG_MPEGAUDIODSP) += mips/mpegaudiodsp_mips_fixed.o
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
ffmpeg-devel
h264_v4l2_m2m"
h264_v4l2m2m_decoder_select="h264_mp4toannexb_bsf"
h264_v4l2m2m_encoder_deps="v4l2_m2m h264_v4l2_m2m"
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
__
quot;cbs"
cbs_av1_select="cbs"
cbs_h264_select="cbs"
cbs_h265_select="cbs"
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.o
return AVERROR_INVALIDDATA;
> +if (cb->coding_mode == 2)
> +avpriv_request_sample(avctx, "coding mode 2\n");
nit: there is no need for newline character with avpriv_request_sample()
-- Peter
(A907 E02F A6E5 0CD2
/mpegaudiodsp_mips_float.o
MIPSDSP-OBJS-$(CONFIG_MPEGAUDIODSP) += mips/mpegaudiodsp_mips_fixed.o
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
ffmpeg-devel
.mak
+++ b/tests/fate/libavcodec.mak
@@ -28,7 +28,7 @@ fate-cabac: libavcodec/tests/cabac$(EXESUF)
fate-cabac: CMD = run libavcodec/tests/cabac$(EXESUF)
fate-cabac: CMP = null
-FATE_LIBAVCODEC-yes += fate-celp_math
+FATE_LIBAVCODEC-$(CONFIG_CELP_MATH) += fate-celp_math
fate-celp_math: libavcodec/tests/
On Tue, Jun 10, 2025 at 12:25:24AM +0200, Andreas Rheinhardt wrote:
> Peter Ross:
> > ---
> > libavformat/aiff.c| 1 +
> > libavformat/aiffdec.c | 3 +++
> > 2 files changed, 4 insertions(+)
> >
> > diff --git a/libavformat/aiff.c b/libavformat/aiff.c
+#endif
#if CONFIG_FAANIDCT
{ "FAANI", ff_faanidct, FF_IDCT_PERM_NONE },
#endif /* CONFIG_FAANIDCT */
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ff
hashtable
diff --git a/tests/fate/libavcodec.mak b/tests/fate/libavcodec.mak
index 089ab11fb1..e2d616e307 100644
--- a/tests/fate/libavcodec.mak
+++ b/tests/fate/libavcodec.mak
@@ -28,7 +28,7 @@ fate-cabac: libavcodec/tests/cabac$(EXESUF)
fate-cabac: CMD = run libavcodec/tests
par->codec_id == AV_CODEC_ID_G728 ||
par->codec_id == AV_CODEC_ID_MP2||
par->codec_id == AV_CODEC_ID_MP3||
par->codec_id == AV_CODEC_ID_GSM_MS) {
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Descr
float *window)
+ const float *hist, float *out2, const float
*window)
{
int i;
float buffer1[MAX_BACKWARD_FILTER_ORDER + 1];
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
, temp, hist, rec,
window);
-if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1))
+if (!compute_lpc_coefs(temp, 0, order, lpc, 0, 1, 1, NULL))
ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16));
memmove(hist, hist + n, move_size*sizeof(*hist));
--
2.47.2
-- Peter
(A907 E02
V_CODEC_ID_RAWVIDEO:
case AV_CODEC_ID_BITPACKED:
+case AV_CODEC_ID_G728:
return 1;
default:
return 0;
--
2.47.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel
ormatContext *s, int64_t size,
case AV_CODEC_ID_GSM:
par->block_align = 33;
break;
+case AV_CODEC_ID_G728:
+par->block_align = 5;
+break;
default:
aiff->block_duration = 1;
break;
--
2.47.2
0;
+return ret;
+}
+
+const FFInputFormat ff_g728_demuxer = {
+.p.name = "g728",
+.p.long_name= NULL_IF_CONFIG_SMALL("raw G.728"),
+.p.extensions = "g728",
+.p.flags= AVFMT_GENERIC_INDEX,
+.read_header = g728_read_header,
+
dev/null
+++ b/libavcodec/g728dec.c
@@ -0,0 +1,220 @@
+/*
+ * G.728 decoder
+ * Copyright (c) 2025 Peter Ross
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as publis
do_hybrid_window(ractx, order, n, non_rec, temp, hist, rec, window);
+do_hybrid_window(ractx->vector_fmul, order, n, non_rec, temp, hist, rec,
window);
if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1))
ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16));
--
2.47.2
-- P
Sample: https://pross.sdf.org/sandpit/CW5.g728
Peter Ross (8):
avcodec/g728_template: do_hybrid_window() template
avcodec/g728_template: make hist parameter constant
avcodec/lpc_functions: compute_lpc_coefs: add starting lpc order and
err cache parameters
avcodec/g728dec: G.728
-else
> -return decode_super_cbp(gb, cbp16_vlc[cb_set][subset - 1]);
> +return decode_super_cbp(gb, cbp16_vlc[cb_set][subset]);
> }
>
> static int decode_cu_r(RV60Context * s, AVFrame * frame, ThreadContext *
> thread, GetBitContext * gb, int xpos, int ypos, int l
_INTRA;
> -if (is_intra && qp >= 32)
> +if (qp >= 32)
> return AVERROR_INVALIDDATA;
> cu_pos = ((xpos & 63) >> 3) + ((ypos & 63) >> 3) * 8;
please apply
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Descrip
ut =
> (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
> +else if (sta->codecpar->ch_layout.nb_channels == 0)
> +return AVERROR_INVALIDDATA;
> break;
>
> case ID_ABIT:
please apply
-
te[start+i] = 0xFFU << 24 | (bytestream2_get_be24(&s->gb) <<
> 2);
> +s->palette[(start+i)&0xFF] = 0xFFU << 24 |
> (bytestream2_get_be24(&s->gb) << 2);
> }
>
please apply
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
_rac_put(c, 0);
>+if (ret < 0)
>+return ret;
>+}
>+
>+if (c->output_start + 1 >= c->output_end)
>+return AVERROR(ENOSPC);
>+
>+if (c->output_start + 3 < c->output_end) {
>+
don’t know if there is ongoing work about this, I’m pretty new to the project.
Thanks,
Peter
> On Apr 4, 2025, at 12:00 PM, Michael Niedermayer
> wrote:
>
> Hi Peter
>
> On Thu, Apr 03, 2025 at 06:17:19PM -0700, Peter Xia wrote:
>> Adds support of decoding animated webp.
&
Hi Leon,
Thanks for the feedback! I’ve send a v2 of this patch.
Peter
> On Apr 3, 2025, at 12:11 AM, Leon Grutters wrote:
>
> On 4/1/25 12:29 PM, Peter Xia wrote:
>> Adds support of decoding animated webp.
>>
>> Signed-off-by: Peter Xia
>> ---
&g
Adds support of decoding animated webp.
Signed-off-by: Peter Xia
---
Changelog | 1 +
configure | 4 +-
doc/general_contents.texi | 2 +-
libavcodec/Makefile | 1 +
libavcodec/allcodecs.c| 3 +-
libavcodec/libwebpdec.c | 192
Can anyone take a look at this? This is my first patch so not entirely sure
about the process.
Thanks,
Peter
> On Apr 1, 2025, at 3:29 AM, Peter Xia wrote:
>
> Adds support of decoding animated webp.
>
> Signed-off-by: Peter Xia
> ---
> Changelog
Adds support of decoding animated webp.
Signed-off-by: Peter Xia
---
Changelog | 1 +
configure | 4 +-
doc/general_contents.texi | 2 +-
libavcodec/Makefile | 1 +
libavcodec/allcodecs.c| 3 +-
libavcodec/libwebpdec.c | 200
VP8Context *s = avctx->priv_data;
> --
> 2.45.2
>
> From 105f5edaa24b5ad0b4b1431cb04f22f3f5a106a6 Mon Sep 17 00:00:00 2001
> From: Andreas Rheinhardt
> Date: Thu, 6 Mar 2025 18:20:32 +0100
> Subject: [PATCH 4/4] avcodec/vp8: Remove always-false hwaccel checks for VP7
>
>
> +*c->output_buffer++ = c->code_word >> 24;
> +}
> +c->code_word <<= 8;
> +}
> +}
after calling vpx_rac_flush() how does the caller determine the final size
of the output buffer?
finally, does the output of your encoder work with the ex
].data,
> s->slice[cu_y].size)) < 0)
> +if ((ret = init_get_bits8(&gb, s->slice[cu_y].data,
> s->slice[cu_y].data_size)) < 0)
> return ret;
>
> for (int cu_x = 0; cu_x < s->cu_width; cu_x++) {
nice find. please apply,
vio_feof(pb)) {
> chunk_pos = avio_tell(pb);
> if (chunk_pos >= iff->body_end)
> --
> 2.48.1
please apply, thanks.
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
00..f932a50f6c
--- /dev/null
+++ b/libavcodec/g728dec.c
@@ -0,0 +1,220 @@
+/*
+ * G.728 decoder
+ * Copyright (c) 2025 Peter Ross
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+
On Sun, Jan 19, 2025 at 08:49:50PM +1100, Peter Ross wrote:
> Fixes ticket #10658.
> ---
>
> Tested with some different vertical resolution alignments.
>
> When the vertical resolution is not aligned to macroblock height, the
> reference encoder & decoder performs buggy
e understand why this is needed...
the avio_read() call fills buf, and the call to ff_parse_mpeg2_descriptor
specifies an "end" pointer (desc_list_end point) to prevent overreading.
where is the uninitialised memory coming from?
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B
t;linesize[plane] + x,
+(yuv20p_half && b < 2 ? 2 : 1) * fields *
frame->linesize[plane]);
if (ret < 0)
return ret;
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Descr
(yuv20p_half && b < 2 ? 2 : 1) * fields *
frame->linesize[plane]);
if (ret < 0)
return ret;
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
__
On Sun, Jan 12, 2025 at 02:48:00PM +0100, Andreas Rheinhardt wrote:
> Peter Ross:
> > ---
> > libavcodec/Makefile | 1 +
> > libavcodec/allcodecs.c | 1 +
> > libavcodec/codec_desc.c | 7 ++
> > libavcodec/codec_id.h | 1 +
&
On Sun, Jan 12, 2025 at 12:42:05AM -0300, James Almer wrote:
> On 1/11/2025 11:37 PM, Peter Ross wrote:
> > ---
> > libavcodec/Makefile | 1 +
> > libavcodec/allcodecs.c | 1 +
> > libavcodec/codec_desc.c | 7 ++
> > libavcodec/codec_id.h |
V_CODEC_ID_RAWVIDEO:
case AV_CODEC_ID_BITPACKED:
+case AV_CODEC_ID_G728:
return 1;
default:
return 0;
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel
ormatContext *s, int64_t size,
case AV_CODEC_ID_GSM:
par->block_align = 33;
break;
+case AV_CODEC_ID_G728:
+par->block_align = 5;
+break;
default:
aiff->block_duration = 1;
break;
--
2.45.2
par->codec_id == AV_CODEC_ID_G728 ||
par->codec_id == AV_CODEC_ID_MP2||
par->codec_id == AV_CODEC_ID_MP3||
par->codec_id == AV_CODEC_ID_GSM_MS) {
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Descr
0;
+return ret;
+}
+
+const FFInputFormat ff_g728_demuxer = {
+.p.name = "g728",
+.p.long_name= NULL_IF_CONFIG_SMALL("raw G.728"),
+.p.extensions = "g728",
+.p.flags= AVFMT_GENERIC_INDEX,
+.read_header = g728_read_header,
+
dev/null
+++ b/libavcodec/g728dec.c
@@ -0,0 +1,213 @@
+/*
+ * G.728 decoder
+ * Copyright (c) 2025 Peter Ross
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as publis
, temp, hist, rec,
window);
-if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1))
+if (!compute_lpc_coefs(temp, 0, order, lpc, 0, 1, 1, NULL))
ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16));
memmove(hist, hist + n, move_size*sizeof(*hist));
--
2.45.2
-- Peter
(A907 E02
float *window)
+ const float *hist, float *out2, const float
*window)
{
int i;
float buffer1[MAX_BACKWARD_FILTER_ORDER + 1];
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
Sample: https://pross.sdf.org/sandpit/CW5.g728
Peter Ross (8):
avcodec/g728_template: do_hybrid_window() template
avcodec/g728_template: make hist parameter constant
avcodec/lpc_functions: compute_lpc_coefs: add starting lpc order and
err cache parameters
avcodec/g728dec: G.728
-do_hybrid_window(ractx, order, n, non_rec, temp, hist, rec, window);
+do_hybrid_window(ractx->vector_fmul, order, n, non_rec, temp, hist, rec,
window);
if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1))
ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16));
--
2.45.2
On Sun, Dec 22, 2024 at 06:40:31PM +1100, Peter Ross wrote:
> A minimal DNG header is added to each LJ92 compressed frame, allowing
> thme to be decoded by the TIFF decoder. The TIFF decoder is responsible
> for setting up the MJPEG decoder, signalling the correct s->bayer flag,
&
ATADIR "$(eval c_escape $datadir)"
> #define AVCONV_DATADIR "$(eval c_escape $datadir)"
> #define CC_IDENT "$(c_escape ${cc_ident:-Unknown compiler})"
FFmpeg turns 25 this year.
please apply :)
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signa
%d.%d.%d.%d\n",version >> 24,
(version >> 16) & 0xFF, (version >> 8) & 0xFF, version & 0xFF);
+if (!new_stream(s, &sta, &iff->audio_stream_index,
AVMEDIA_TYPE_AUDIO))
+return AVERROR(ENOMEM);
+sta->codecp
// TODO: Handle window styles
> >
> > use avpriv_report_missing_feature()?
> >
>
> I can do that but it'll trigger on many subtitle files as it's
> pretty commonly used, just doesn't usually change all that much
> which is why it
gt; +int ret;
> +
> if (!value) {
> avio_skip(pb, size);
> return;
> }
>
> -avio_read(pb, value, size);
> -if (!value[0]) {
> +ret = avio_read(pb, value, size);
> +if (ret != size || !value[0]) {
> av_free(v
ret = AVERROR(ENOMEM);
> + goto end;
> +}
> +sub->pts = start;
> +sub->duration = duration;
> +
> +if ((ret = av_packet_add_side_data(sub, AV_PKT_DATA_SRV3_EVENT,
> (uint8_t*)event, sizeof(SRV3EventMeta))
== AV_NOPTS_VALUE ? 0 : pkt->pts);
avio_wl64(pb, 0);
avio_wl64(pb, par->codec_type == AVMEDIA_TYPE_VIDEO && (pkt->flags &
AV_PKT_FLAG_KEY) ? 1 : 0);
avio_wl64(pb, 0);
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
,
av_assert0(0);
}
-if (ret < 0)
-return ret;
return ret;
}
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
[email protected]
ht
','U','L','L')) {
} else if (type == MKTAG('M','L','V','I')) { /* occurs when MLV and
Mnn files are concatenated */
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description:
'L','V','I')) { /* occurs when MLV and
Mnn files are concatenated */
+ } else if (type == MKTAG('R','A','W','C')) {
} else {
av_log(avctx, AV_LOG_INFO, "unsupported tag %s, size %u\n",
_TIFF)
+ret = get_packet_lj92(avctx, st, pb, pkt, size);
+else
+ret = av_get_packet(pb, pkt, (st->codecpar->width *
st->codecpar->height * st->codecpar->bits_per_coded_sample + 7) >> 3);
} else { // AVMEDIA_TYPE_AUDIO
if (space > UINT_M
On Sat, Dec 21, 2024 at 12:02:06AM +0200, Jan Ekström wrote:
> On Thu, Dec 19, 2024 at 4:34 AM Peter Ross wrote:
> >
> > h264_sei depends on h2645_sei, which in turn depends on aom_film_grain for
> > ff_aom_uninit_film_grain_params()
>
> Set LGTM.
>
> Thanks f
On Thu, Dec 12, 2024 at 09:25:55AM +1100, Peter Ross wrote:
> ---
> Using AV_CODEC_ID_ADPCM_IMA_WAV for twocc 0x0069 causes subtle artefacts
> during
> playback. The correct decoder is AV_CODEC_ID_ADPCM_IMA_XBOX.
>
> Sample .wav and ref flac file:
> <https://github.com/v
1 - 100 of 683 matches
Mail list logo