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 |
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 +
&
_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
'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",
','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:
,
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
ffmpeg-devel@ffmpeg.org
ht
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))
(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, 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,
&
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.
&
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
_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) {
>+
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
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
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
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
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)
ut =
> (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
> +else if (sta->codecpar->ch_layout.nb_channels == 0)
> +return AVERROR_INVALIDDATA;
> break;
>
> case ID_ABIT:
please apply
-
_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
-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
/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
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
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, "
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
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
, 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
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.
/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
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
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
ffmpeg-devel@ffmpeg.org
https://ffmpeg.o
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
__
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
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
+#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
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 },
.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/
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.47.2
-- P
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
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
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,
+
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
, 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
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
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
Peter Ross (pr...@xvid.org)
*
* 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
@ -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");
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
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
-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
, 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
--
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@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or
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
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
I get bouces saying that the user does not exist. Have have send patch, but no
maintainer.
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-req
Hi Michael,
Friendly ping to get this one merged.
Thanks,
Peter
On 20 Aug 2020, 22:39 +0200, Michael Niedermayer ,
wrote:
> On Thu, Aug 20, 2020 at 05:14:12PM +0200, Peter van der Spek wrote:
> > I suppose that’s okay. It’s in the input stream as well after all.
>
> well, th
ected when there
is a |RtmpSampleAccess object prior to the onMetaData object.
Signed-off-by: Peter van der Spek
---
libavformat/flvdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 0862273..d480d0b 100644
--- a/libavforma
-class.html#client_audiosampleaccess
https://helpx.adobe.com/adobe-media-server/ssaslr/client-class.html#client_videosampleaccess
Best,
Peter
On 18 Aug 2020, 14:46 +0200, Michael Niedermayer ,
wrote:
>
> Do you have a testcase?
> Is this documented somewhere?
>
> thx
>
> [...]
in commit d7638d8dfc3c4ffd0dc18a64937a5a07ed67b354
as unknown metadata packets now result in an opaque data stream, and the
|RtmpSampleAccess packet was an "unknown" metadata packet type.
With this change the RTMP streams are correctly detected when there
is a |RtmpSampleAccess object prior to the onMetaData object.
I suppose that’s okay. It’s in the input stream as well after all.
On 20 Aug 2020, 13:19 +0200, Michael Niedermayer ,
wrote:
> On Wed, Aug 19, 2020 at 09:06:54AM +0200, Peter van der Spek wrote:
> > Since release 4.2, FFmpeg fails to detect the correct streams in an RTMP
> > strea
601 - 662 of 662 matches
Mail list logo