Re: [FFmpeg-devel] [RFC] financial sustainability Plan A (SPI)

2023-10-27 Thread Cosmin Stejerean via ffmpeg-devel
> On Oct 27, 2023, at 12:00 PM, Rémi Denis-Courmont wrote: > > Le perjantaina 27. lokakuuta 2023, 21.52.51 EEST Cosmin Stejerean via ffmpeg- > devel a écrit : >> With a list of FFLabs consultants the "what they work on" can be extracted >> from the git log o

Re: [FFmpeg-devel] [RFC] financial sustainability Plan A (SPI)

2023-10-28 Thread Thilo Borgmann via ffmpeg-devel
appealing and advertising for that way easier. And if it does not, we lost exactly nothing. -Thilo _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [RFC] financial sustainability Plan A (SPI)

2023-10-28 Thread Thilo Borgmann via ffmpeg-devel
Am 28.10.23 um 18:43 schrieb Ronald S. Bultje: Hi Thilo, On Sat, Oct 28, 2023 at 11:31 AM Thilo Borgmann via ffmpeg-devel < [email protected]> wrote: What this is about, is to set up a way to properly spend the SPI money aside from travel & hw. Why we should not do it be

Re: [FFmpeg-devel] [ANNOUNCE] upcoming GA vote

2023-10-29 Thread Thilo Borgmann via ffmpeg-devel
. Please comment if you didn't get the mail. The list is as follows: [...] the language issue had been resolved and no further complains arrived. Thus I ended the testvote and we should be good to go. -Thilo ___ ffmpeg-devel mailing list ffmpeg-

Re: [FFmpeg-devel] [RFC] Release 6.1

2023-10-29 Thread Thilo Borgmann via ffmpeg-devel
s.th. does not imply anything and is not an argument. Again, a personal attack, from you. If you find calling your opinion unsubstantiated a personal attack, then why do you reply with the same personal attack? -Thilo _______ ffmpeg-devel maili

Re: [FFmpeg-devel] [RFC] Release 6.1

2023-10-29 Thread Thilo Borgmann via ffmpeg-devel
Am 29.10.23 um 17:25 schrieb Jean-Baptiste Kempf: On Sun, 29 Oct 2023, at 16:10, Thilo Borgmann via ffmpeg-devel wrote: Where? I don't see you saying that in this thread. If you said so at VDD, that's not many times. Explained three times at VDD and several time on IRC. Very well

Re: [FFmpeg-devel] [RFC] Release 6.1

2023-10-29 Thread Thilo Borgmann via ffmpeg-devel
Am 29.10.23 um 18:56 schrieb Jean-Baptiste Kempf: On Sun, 29 Oct 2023, at 18:20, Thilo Borgmann via ffmpeg-devel wrote: In this case as well, I think you should have transported your reasoning back to this thread on the ML - It's actually in this very thread on the ML about the timin

Re: [FFmpeg-devel] [RFC] Release 6.1

2023-10-29 Thread Thilo Borgmann via ffmpeg-devel
to be on line at the same time, is unsuited for a project on multiple timezones where everybody is equal but nobody has an obligation. And I think it is very bad that some body with apparent authority suggests otherwise. +1 -Thilo ___ ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] web: move 5.0 to olddownloads

2023-10-29 Thread Cosmin Stejerean via ffmpeg-devel
old downloads. - Cosmin _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [ANNOUNCE] upcoming GA vote

2023-10-30 Thread Thilo Borgmann via ffmpeg-devel
vote tomorrow. This has been launched. You should be able to vote until Sunday 5th Nov, 23:59 Sure you did not just create the vote but started it already as well? I should be part of the GA but didn't get a mail... -Thilo _______ ffmpeg-devel mailing li

Re: [FFmpeg-devel] [ANNOUNCE] upcoming GA vote

2023-10-30 Thread Thilo Borgmann via ffmpeg-devel
Am 30.10.23 um 11:50 schrieb Jean-Baptiste Kempf: On Mon, 30 Oct 2023, at 11:33, Thilo Borgmann via ffmpeg-devel wrote: Am 30.10.23 um 09:18 schrieb Jean-Baptiste Kempf: Hello, On Sun, 29 Oct 2023, at 10:33, Anton Khirnov wrote: vote question (unchanged): How do we update the list of

Re: [FFmpeg-devel] [RFC] financial sustainability Plan A (SPI)

2023-10-31 Thread Thilo Borgmann via ffmpeg-devel
disappear if we set silent mode). How big this impact might be, was revealed by the deprication message libav added back in the days. Although it is of course not that news-worthy. -Thilo ___ ffmpeg-devel mailing list [email protected] https://ffmpeg

Re: [FFmpeg-devel] [PATCH 1/4] avutil/x86/pixelutils: Empty MMX state in ff_pixelutils_sad_8x8_mmxext

2023-11-01 Thread Henrik Gramner via ffmpeg-devel
to use SSE2 instead (even if that means only using the lower half of xmm registers). _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmp

Re: [FFmpeg-devel] [RFC] Release 6.1

2023-11-01 Thread Thilo Borgmann via ffmpeg-devel
Am 29.10.23 um 20:27 schrieb Jean-Baptiste Kempf: On Sun, 29 Oct 2023, at 19:46, Thilo Borgmann via ffmpeg-devel wrote: Am 29.10.23 um 18:56 schrieb Jean-Baptiste Kempf: On Sun, 29 Oct 2023, at 18:20, Thilo Borgmann via ffmpeg-devel wrote: In this case as well, I think you should have

[FFmpeg-devel] FFmpeg at NAB 2024

2023-11-01 Thread Thilo Borgmann via ffmpeg-devel
/8_0/exhview/?hallID=W&selectedBooth=W4232 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [ANNOUNCE] upcoming GA vote

2023-11-01 Thread Gerion Entrup via ffmpeg-devel
7;t think listing emails on this mailing list is a good idea, or even > legal (GDPR, for example). Not sure how similar the two lists are but http://ffmpeg.org/pipermail/ffmpeg-devel/2023-October/316062.html (same thread) already contains exactly such a list. Best, Gerion signature.asc Desc

[FFmpeg-devel] [PATCH 0/1] tools/general_assembly.pl - print names with emails

2023-11-03 Thread Cosmin Stejerean via ffmpeg-devel
Per http://ffmpeg.org/pipermail/ffmpeg-devel/2023-November/316480.html a list of emails should not be published as the GA membership. To facilitate publishing the GA list this updates the GA script to also print names along with the emails in the format ``` Name ``` Cosmin Stejerean (1

[FFmpeg-devel] [PATCH 1/1] tools/general_assembly.pl - print names with emails

2023-11-03 Thread Cosmin Stejerean via ffmpeg-devel
my $email = $assembly{$name}; +printf("%s <%s>\n", $name, $email); } -- 2.31.1 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 1/1] tools/general_assembly.pl - print names with emails

2023-11-03 Thread Cosmin Stejerean via ffmpeg-devel
places like this list then it seems sorting by name would be more natural. But I'm happy to to update the patch with whatever sort order we want to use. - Cosmin _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/list

Re: [FFmpeg-devel] [PATCH] bwdif_vulkan: fix artifacts on vulkan decode images

2023-11-04 Thread Philip Langdale via ffmpeg-devel
> input. > > Patch attached. > LGTM. Thanks. --phil _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 1/1] tools/general_assembly.pl - print names with emails

2023-11-05 Thread Thilo Borgmann via ffmpeg-devel
rieb Cosmin Stejerean via ffmpeg-devel: On Nov 3, 2023, at 11:40 AM, Nicolas George wrote: This is also changing the sort order. It might be acceptable but it might also not be. It is and I probably should have called that out in the description. If the goal is to publish mostly names

Re: [FFmpeg-devel] [PATCH 1/1] tools/general_assembly.pl - print names with emails

2023-11-05 Thread Thilo Borgmann via ffmpeg-devel
Am 05.11.23 um 14:41 schrieb Thilo Borgmann via ffmpeg-devel: Hi, sorry can't comment on the ML atm as people will wonder why I respond to this but not to other "more important" mails... Having sent this private mail to the ML anyways just proves how much I should not post

Re: [FFmpeg-devel] [PATCH 1/1] tools/general_assembly.pl - print names with emails

2023-11-05 Thread Cosmin Stejerean via ffmpeg-devel
> On Nov 5, 2023, at 5:41 AM, Thilo Borgmann via ffmpeg-devel > wrote: > > The script should output two files then, so that no manual editing is > required. > The voting system expects a file with mail addresses one per line and the ML > then shall be given the very sa

[FFmpeg-devel] [PATCH v2 0/1] tools/general_assembly.pl - add options to print names, emails or both

2023-11-06 Thread Cosmin Stejerean via ffmpeg-devel
Per http://ffmpeg.org/pipermail/ffmpeg-devel/2023-November/316480.html a list of emails should not be published as the GA membership. To facilitate publishing the GA list this updates the GA script with options to print only names, only emails (for voting) or both. Changes since v1: - added

[FFmpeg-devel] [PATCH v2 1/1] tools/general_assembly.pl - add options to print names, emails or both

2023-11-06 Thread Cosmin Stejerean via ffmpeg-devel
il (sort values %assembly) { -printf("%s\n", $email); +foreach my $name (sort keys %assembly) { +my $email = $assembly{$name}; +if ($print_full) { +printf("%s <%s>\n", $name, $email); + } elsif ($print_names) { +printf("%s\n", $name);

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: extra members for GA

2023-11-09 Thread Kieran Kunhya via ffmpeg-devel
ption A won its contests against B/C/D by > 17/7, 23/1, and 17/7, respectively. While it is possible that the list > used was not entirely correct (also depending on > the intepretation of the rules), I see no reason to think it was > incorrect in 10 people, which is what you'd need

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: extra members for GA

2023-11-09 Thread Thilo Borgmann via ffmpeg-devel
the mail. Therefore, it cannot be the list of 51 voters JB provided in the corresponding thread [3]. Did the original list survive? Josh? If not, we can go back in time and run the script again. -Thilo [1] https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2020-April/261323.html [2] https

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: extra members for GA

2023-11-09 Thread Cosmin Stejerean via ffmpeg-devel
not accept, but it seems reasonable to ask them if they want to accept the nomination. I do think that being subscribed to the mailing list should be a prerequisite however. - Cosmin ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: extra members for GA

2023-11-10 Thread Kieran Kunhya via ffmpeg-devel
e root? Kieran _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: extra members for GA

2023-11-10 Thread Thilo Borgmann via ffmpeg-devel
Am 10.11.23 um 13:39 schrieb Kieran Kunhya via ffmpeg-devel: The list does not match your list, for example Gautam is on your list but not on joshs So my question is still standing, can you explain how your list was created? or where its from? How was the list of your root admins created? Who

[FFmpeg-devel] [ANNOUNCE] Repeat vote: GA voters list updates

2023-11-10 Thread Thilo Borgmann via ffmpeg-devel
om [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] -Thilo [1] https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2023-November/316594

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: extra members for GA

2023-11-11 Thread Kieran Kunhya via ffmpeg-devel
On Sat, Nov 11, 2023 at 11:45 PM Michael Niedermayer wrote: > > On Fri, Nov 10, 2023 at 12:39:45PM +, Kieran Kunhya via ffmpeg-devel > wrote: > > > The list does not match your list, for example Gautam is on your list > > > but not on joshs > > > > &g

Re: [FFmpeg-devel] [ANNOUNCE] Repeat vote: GA voters list updates

2023-11-12 Thread Thilo Borgmann via ffmpeg-devel
his repeat vote becomes void. Anyway, if he cannot, this needs to follow the given timeframe. On we go: Am 11.11.23 um 10:54 schrieb Jean-Baptiste Kempf: On Sat, 11 Nov 2023, at 08:22, Thilo Borgmann via ffmpeg-devel wrote: Neither does this list of 51 people [1] correlate to the 54 authorized v

Re: [FFmpeg-devel] [ANNOUNCE] Repeat vote: GA voters list updates

2023-11-14 Thread Thilo Borgmann via ffmpeg-devel
words, who was an authorized voter). -Thilo ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] swscale/x86/rgb_2_rgb: Add opaque pointer to missed definitions of ff_nv12ToUV

2023-11-14 Thread Alfred Wingate via ffmpeg-devel
src += srcStride; dst1 += dst1Stride; dst2 += dst2Stride; -- 2.42.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.

[FFmpeg-devel] Need to reduce ffmpeg.exe size in n6.0

2023-11-14 Thread Kumar, Rahul via ffmpeg-devel
This ffmpeg.exe is not working for me. Can somebody guide me if I am missing anything here? Regards, Rahul Honeywell ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link abo

[FFmpeg-devel] [PATCH 1/2] avcodec/qsv: add sps pps header when frame->key_frame is true

2023-11-15 Thread Zhongwei Wang via ffmpeg-devel
IPFRAME_NO_SKIP && -- 2.38.1.windows.1 -- 这封电子邮件已由 Avast 防病毒软件检查过病毒。 www.avast.com _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] FFmpeg at NAB 2024

2023-11-19 Thread Kieran Kunhya via ffmpeg-devel
has been provided about who will actually be present on the booth. Ragards, Kieran Kunhya > ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v6 1/2] avformat/flac_picture: Add ff_flac_write_picture

2023-11-19 Thread Zsolt Vadász via ffmpeg-devel
io_wb32(pb, 0); - -avio_wb32(pb, pkt->size); -avio_write(pb, pkt->data, pkt->size); -return 0; -} - static int flac_finish_header(struct AVFormatContext *s) { + FlacMuxerContext *c = s->priv_data; int i, ret, padding = s->metadata_header_padding; if (padding < 0) padding = 8192; @@ -179,7 +95,7 @@ static int flac_finish_header(struct AVFormatContext *s) AVPacket *pkt = st->priv_data; if (!pkt) continue; -ret = flac_write_picture(s, pkt); +ret = ff_flac_write_picture(s, 0, &c->attached_types, -1, pkt); av_packet_unref(pkt); if (ret < 0 && (s->error_recognition & AV_EF_EXPLODE)) return ret; -- 2.34.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v6 2/2] avformat/oggenc: Add support for embedding cover art

2023-11-19 Thread Zsolt Vadász via ffmpeg-devel
er_page(s, oggstream); +} -ogg_write_pages(s, 2); +ogg_write_pages(s, 2); +} return 1; } @@ -708,6 +841,8 @@ static int ogg_write_trailer(AVFormatContext *s) /* flush current page if needed */ for (i = 0; i < s->nb_streams; i++) { OGGStreamContext *oggstrea

Re: [FFmpeg-devel] FFmpeg at NAB 2024

2023-11-19 Thread Kieran Kunhya via ffmpeg-devel
On Sun, Nov 19, 2023 at 9:46 PM Michael Niedermayer wrote: > > On Sun, Nov 19, 2023 at 02:26:22PM +, Kieran Kunhya via ffmpeg-devel > wrote: > [...] > > I would not find it acceptable for SPI to pay these costs. I do not feel > > donors would want their money spent on

Re: [FFmpeg-devel] [ANNOUNCE] Repeat vote: GA voters list updates

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
Thilo [1] https://vote.ffmpeg.org/cgi-bin/civs/results.pl?id=E_07e9c717f7820201 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg

[FFmpeg-devel] [PATCH v5 0/7] webp: add support for animated WebP decoding

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
0644 libavformat/webpdec.c create mode 100644 tests/ref/fate/webp-anim -- 2.39.2 (Apple Git-143) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-

[FFmpeg-devel] [PATCH v5 1/7] avcodec/webp: move definitions into header

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
UND 0x01 + +#define ANMF_BLENDING_METHOD0x02 +#define ANMF_BLENDING_METHOD_ALPHA 0x00 +#define ANMF_BLENDING_METHOD_OVERWRITE 0x02 + +#endif /* AVCODEC_WEBP_H */ -- 2.39.2 (Apple Git-143) ___________ ffmpeg-devel mailing list [email protected] ht

[FFmpeg-devel] [PATCH v5 2/7] avcodec/webp: remove unused definitions

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v5 6/7] libavformat/webp: add WebP demuxer

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
kt_dts=0 pkt_dts_time=0.00 best_effort_timestamp=0 best_effort_timestamp_time=0.00 -pkt_duration=1 -pkt_duration_time=0.04 -duration=1 -duration_time=0.04 -pkt_pos=0 -pkt_size=39276 +pkt_duration=100 +pkt_duration_time=0.10 +duration=100 +duration_time=0.10 +pkt_pos=30 +pk

[FFmpeg-devel] [PATCH v5 3/7] avcodec/webp_parser: parse each frame into one packet

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
*poutbuf = NULL; +*poutbuf_size = 0; return buf_size; +} -if (next != END_NOT_FOUND && next < 0) -ctx->pc.frame_start_found = FFMAX(ctx->pc.frame_start_found - i - 1, 0); -else -ctx->pc.frame_start_found = 0; +// Extre

[FFmpeg-devel] [PATCH v5 5/7] avcodec/webp: make init_canvas_frame static

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
hroma_h); -else -height = FFALIGN(canvas->height, 1 << desc->log2_chroma_h); - -memset(canvas->data[plane], s->transparent_yuva[plane], - height * canvas->linesize[plane]); -} -} - -return 0; -} - /* * Blend src1 (foreground) and src2 (background) into dest, in ARGB format. * width, height are the dimensions of src1 -- 2.39.2 (Apple Git-143) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v5 7/7] fate: add test for animated WebP

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v5 4/7] libavcodec/webp: add support for animated WebP decoding

2023-11-20 Thread Thilo Borgmann via ffmpeg-devel
avcodec_open2(s->avctx_vp8, codec, NULL); +if (ret < 0) { + return ret; +} return 0; } @@ -1547,12 +2136,52 @@ static av_cold int webp_decode_close(AVCodecContext *avctx) WebPContext *s = avctx->priv_data; av_packet_free(&s->pkt); +ff_thread_release_ext_buffer(&s->canvas_frame); +av_frame_free(&s->canvas_frame.f); +av_frame_free(&s->frame); +avcodec_free_context(&s->avctx_vp8); + +return 0; +} + +static void webp_decode_flush(AVCodecContext *avctx) +{ +WebPContext *s = avctx->priv_data; + +ff_thread_release_ext_buffer(&s->canvas_frame); +} + +#if HAVE_THREADS +static int webp_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) +{ +WebPContext *wsrc = src->priv_data; +WebPContext *wdst = dst->priv_data; +int ret; + +if (dst == src) +return 0; + +ff_thread_release_ext_buffer(&wdst->canvas_frame); +if (wsrc->canvas_frame.f->data[0] && +(ret = ff_thread_ref_frame(&wdst->canvas_frame, &wsrc->canvas_frame)) < 0) +return ret; + +wdst->vp8x_flags = wsrc->vp8x_flags; +wdst->canvas_width= wsrc->canvas_width; +wdst->canvas_height = wsrc->canvas_height; +wdst->prev_anmf_flags = wsrc->anmf_flags; +wdst->prev_width = wsrc->width; +wdst->prev_height = wsrc->height; +wdst->prev_pos_x = wsrc->pos_x; +wdst->prev_pos_y = wsrc->pos_y; +wdst->await_progress = wsrc->await_progress + 1; -if (s->initialized) -return ff_vp8_decode_free(avctx); +memcpy(wdst->background_argb, wsrc->background_argb, sizeof(wsrc->background_argb)); +memcpy(wdst->background_yuva, wsrc->background_yuva, sizeof(wsrc->background_yuva)); return 0; } +#endif const FFCodec ff_webp_decoder = { .p.name = "webp", @@ -1560,9 +2189,11 @@ const FFCodec ff_webp_decoder = { .p.type = AVMEDIA_TYPE_VIDEO, .p.id = AV_CODEC_ID_WEBP, .priv_data_size = sizeof(WebPContext), +UPDATE_THREAD_CONTEXT(webp_update_thread_context), .init = webp_decode_init, FF_CODEC_DECODE_CB(webp_decode_frame), .close = webp_decode_close, +.flush = webp_decode_flush, .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, -.caps_internal = FF_CODEC_CAP_ICC_PROFILES, +.caps_internal = FF_CODEC_CAP_ICC_PROFILES | FF_CODEC_CAP_ALLOCATE_PROGRESS, }; -- 2.39.2 (Apple Git-143) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH v5 4/7] libavcodec/webp: add support for animated WebP decoding

2023-11-21 Thread Cosmin Stejerean via ffmpeg-devel
On Nov 20, 2023, at 5:14 PM, James Almer wrote: On 11/20/2023 4:22 PM, Thilo Borgmann via ffmpeg-devel wrote: +    if (*got_frame) { +    if (!(s->vp8x_flags & VP8X_FLAG_ANIMATION)) { +    // no animation, output the decoded frame +    av_frame_move_ref(p, s

Re: [FFmpeg-devel] [PATCH 1/6] lavc/aarch64: new optimization for 8-bit hevc_pel_bi_pixels

2023-11-22 Thread Martin Storsjö via ffmpeg-devel
te delivery chain, while some later party might have rewritten things. By the way, I create these patches by /'git format-patch -s -o "../" --add-header "X-Unsent: 1" --suffix .eml --to [email protected] -6 --filename-max-length=100' /to generate .eml file.

Re: [FFmpeg-devel] [PATCH v5 4/7] libavcodec/webp: add support for animated WebP decoding

2023-11-22 Thread Thilo Borgmann via ffmpeg-devel
Am 22.11.23 um 03:54 schrieb Cosmin Stejerean via ffmpeg-devel: On Nov 20, 2023, at 5:14 PM, James Almer wrote: On 11/20/2023 4:22 PM, Thilo Borgmann via ffmpeg-devel wrote: +    if (*got_frame) { +    if (!(s->vp8x_flags & VP8X_FLAG_ANIMATION)) { +    // no animation, out

[FFmpeg-devel] [PATCH v6 2/7] avcodec/webp: remove unused definitions

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v6 3/7] avcodec/webp_parser: parse each frame into one packet

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
*poutbuf = NULL; +*poutbuf_size = 0; return buf_size; +} -if (next != END_NOT_FOUND && next < 0) -ctx->pc.frame_start_found = FFMAX(ctx->pc.frame_start_found - i - 1, 0); -else -ctx->pc.frame_start_found = 0; +// Extreme

[FFmpeg-devel] [PATCH v6 1/7] avcodec/webp: move definitions into header

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
UND 0x01 + +#define ANMF_BLENDING_METHOD0x02 +#define ANMF_BLENDING_METHOD_ALPHA 0x00 +#define ANMF_BLENDING_METHOD_OVERWRITE 0x02 + +#endif /* AVCODEC_WEBP_H */ -- 2.37.1 (Apple Git-137.1) ___________ ffmpeg-devel mailing list [email protected] ht

[FFmpeg-devel] [PATCH v6 0/7] webp: add support for animated WebP decoding

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
create mode 100644 libavformat/webpdec.c create mode 100644 tests/ref/fate/webp-anim -- 2.37.1 (Apple Git-137.1) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or

[FFmpeg-devel] [PATCH v6 6/7] libavformat/webp: add WebP demuxer

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
kt_dts=0 pkt_dts_time=0.00 best_effort_timestamp=0 best_effort_timestamp_time=0.00 -pkt_duration=1 -pkt_duration_time=0.04 -duration=1 -duration_time=0.04 -pkt_pos=0 -pkt_size=39276 +pkt_duration=100 +pkt_duration_time=0.10 +duration=100 +duration_time=0.10 +pkt_p

[FFmpeg-devel] [PATCH v6 4/7] libavcodec/webp: add support for animated WebP decoding

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
gt;avctx_vp8) +return AVERROR(ENOMEM); +s->avctx_vp8->flags = avctx->flags; +s->avctx_vp8->flags2 = avctx->flags2; +s->avctx_vp8->pix_fmt = avctx->pix_fmt; +ret = avcodec_open2(s->avctx_vp8, codec, NULL); +if (ret < 0) { +return ret; +

[FFmpeg-devel] [PATCH v6 7/7] fate: add test for animated WebP

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v6 5/7] avcodec/webp: make init_canvas_frame static

2023-11-23 Thread Thilo Borgmann via ffmpeg-devel
oma_h); -else -height = FFALIGN(canvas->height, 1 << desc->log2_chroma_h); - -memset(canvas->data[plane], s->transparent_yuva[plane], - height * canvas->linesize[plane]); -} -} - -return 0; -} - /* * Blend src1 (foreground) and src2 (background) into dest, in ARGB format. * width, height are the dimensions of src1 -- 2.37.1 (Apple Git-137.1) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 2/3] x86/ac3dsp: add ff_float_to_fixed24_avx2()

2023-11-23 Thread Henrik Gramner via ffmpeg-devel
-> int conversion instructions belongs to actually differs between µarchs. Realistically whether movaps or movdqa is used to store the result to memory is unlikely to matter in practice though. _______ ffmpeg-devel mailing list [email protected] https:

[FFmpeg-devel] [PATCH] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions

2023-11-25 Thread Cosmin Stejerean via ffmpeg-devel
; +} +} + yadif->filter = filter; ff_bwdif_init_filter_line(&s->dsp, yadif->csp->comp[0].depth); -- 2.39.2 (Apple Git-143) _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubs

[FFmpeg-devel] [PATCH] libavcodec/dcadec: adjust the `ch_layout` when downmix is active

2023-11-25 Thread Geoffrey McRae via ffmpeg-devel
s->request_channel_layout = DCA_SPEAKER_LAYOUT_5POINT1; +av_channel_layout_uninit(&avctx->ch_layout); +avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1; +} else av_log(avctx, AV_LOG_WARNING, "Invalid downmix layo

[FFmpeg-devel] [PATCH] libavcodec/mlpdec: add missing correction to ch_layout when downmixing

2023-11-25 Thread Geoffrey McRae via ffmpeg-devel
, "Invalid downmix layout\n"); +} + ff_thread_once(&init_static_once, init_static); return 0; -- 2.39.2 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jpegxl_parser: fix parsing sequences of extremely small files

2023-11-26 Thread Thilo Borgmann via ffmpeg-devel
the sample gets uploaded. I CC'd [email protected] as well. Can do this in a bit. What about the file you‘d sent to samples-request in August, is there still a test to be pushed about it as well? -Thilo _______ ffmpeg-devel mailing li

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jpegxl_parser: fix parsing sequences of extremely small files

2023-11-27 Thread Thilo Borgmann via ffmpeg-devel
t was already uploaded and the fate test utilizing it has been merged. Ok, then its done: e19bb66167c096e86f8cf567a7df3528  fate-suite/jxl/l.jxl -Thilo ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-

Re: [FFmpeg-devel] [PATCH v2] avcodec/amfenc: increase precision of Sleep() on Windows

2023-11-27 Thread Henrik Gramner via ffmpeg-devel
ESOLUTION flag might be an alternative? _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: TC/CC elections

2023-11-29 Thread Thilo Borgmann via ffmpeg-devel
redoing it, we maybe just do the other option and be a bit more resilient to misinterpretation. -Thilo _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or ema

Re: [FFmpeg-devel] [PATCH] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
> On Nov 28, 2023, at 5:30 AM, Thomas Mundt wrote: > > Hi Cosmin, > > Cosmin Stejerean via ffmpeg-devel schrieb am Sa., > 25. Nov. 2023, 21:39: > >> Fixes #10688 >> >> Signed-off-by: Cosmin Stejerean >> --- >> libavfilter/vf_bwdif.c

Re: [FFmpeg-devel] [PATCH] avformat/matroskadec: Prevent expensive get_cue_desc lookups

2023-11-29 Thread Tom Boshoven via ffmpeg-devel
; // The prebuffer is larger than the duration. > @@ -4295,7 +4307,7 @@ static int64_t > webm_dash_manifest_compute_bandwidth(AVFormatContext *s, int64_t > } > } > > -desc_end = get_cue_desc(s, desc_end.end_time_ns,

Re: [FFmpeg-devel] [PATCH] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
> On Nov 29, 2023, at 11:36 AM, Dennis Mungai wrote: > > On Wed, 29 Nov 2023 at 22:26, Cosmin Stejerean via ffmpeg-devel < > [email protected]> wrote: > >> >> >>> On Nov 28, 2023, at 5:30 AM, Thomas Mundt wrote: >>> >>> Hi

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: TC/CC elections

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
n theory weights would have to be assigned such that the sum for each one of those 21 combinations is correctly ranked by order of preference. I think the simplicity of the simpler ranked choice voting might outweigh the benefit of expressing complex preferences with the sum of weights. - Co

[FFmpeg-devel] [PATCH v2 0/3] consider chroma subsampling for bwdif (including CUDA and Vulkan)

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
dimensions libavfilter/vf_bwdif.c| 13 ++--- libavfilter/vf_bwdif_cuda.c | 13 ++--- libavfilter/vf_bwdif_vulkan.c | 14 ++ 3 files changed, 30 insertions(+), 10 deletions(-) -- 2.42.1 _______ ffmpeg-devel mailing list ff

[FFmpeg-devel] [PATCH v2 2/3] avfilter/vf_bwdif_cuda: consider chroma subsampling when enforcing minimum dimensions

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
goto exit; } -y->csp = av_pix_fmt_desc_get(output_frames->sw_format); +y->csp = desc; y->filter = filter; ret = CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); -- 2.42.1 ___ ffmpeg-devel mailing list ffmpeg

[FFmpeg-devel] [PATCH v2 1/3] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
wdif_init_filter_line(&s->dsp, yadif->csp->comp[0].depth); -- 2.42.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v2 3/3] avfilter/vf_bwdif_vulkan: consider chroma subsampling when enforcing minimum dimensions

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
lines is not supported\n"); return AVERROR(EINVAL); } -y->csp = av_pix_fmt_desc_get(vkctx->frames->sw_format); +y->csp = desc; y->filter = bwdif_vulkan_filter_frame; return init_filter(avctx); -- 2.42.1 _

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: TC/CC elections

2023-11-29 Thread Cosmin Stejerean via ffmpeg-devel
to multiple candidates. - Cosmin ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] avcodec/av1dec: Fix resolving zero divisor

2023-11-30 Thread Michael Niedermayer via ffmpeg-devel
v, w; int32_t *param = &s->cur_frame.gm_params[idx][0]; -if (param[2] < 0) +if (param[2] <= 0) return 0; alpha = av_clip_int16(param[2] - (1 << AV1_WARPEDMODEL_PREC_BITS)); -- 2.17.1 ___________ ffmpeg-devel mailing list f

Re: [FFmpeg-devel] [POC][PATCHSET] Add qrencodesrc source

2023-11-30 Thread Cosmin Stejerean via ffmpeg-devel
l > QR codes are robust to lossy coding, therefore it should be possible to use > them to compare a generated video with a reference one (in case they cannot be compared frame-by-frame). - Cosmin ___________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.

Re: [FFmpeg-devel] [PATCH v2 1/3] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions

2023-11-30 Thread Cosmin Stejerean via ffmpeg-devel
On Nov 30, 2023, at 04:37, Thomas Mundt wrote:  Am Do., 30. Nov. 2023 um 01:23 Uhr schrieb Cosmin Stejerean via ffmpeg-devel mailto:[email protected]> >: From: Cosmin Stejerean mailto:[email protected]> > Fixes #10688 Signed-off-by: Cosmin Stejerean mailto:cos.

Re: [FFmpeg-devel] [PATCH] lavc: remove the QOA decoder

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
If nobody else can add a test I can try to do so but I'll need a couple of days to figure it out. - Cosmin _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above

[FFmpeg-devel] [PATCH v3 0/3] consider chroma subsampling for bwdif (including CUDA and Vulkan)

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
++--- libavfilter/vf_bwdif_vulkan.c | 14 ++ 3 files changed, 30 insertions(+), 10 deletions(-) -- 2.42.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or

[FFmpeg-devel] [PATCH v3 2/3] avfilter/vf_bwdif_cuda: consider chroma subsampling when enforcing minimum dimensions

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
t;cuCtxPushCurrent(s->hwctx->cuda_ctx)); if (ret < 0) goto exit; -- 2.42.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v3 3/3] avfilter/vf_bwdif_vulkan: consider chroma subsampling when enforcing minimum dimensions

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
return AVERROR(EINVAL); +} + return init_filter(avctx); } -- 2.42.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v3 1/3] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
ns or 4 lines is not supported\n"); return AVERROR(EINVAL); } -yadif->csp = av_pix_fmt_desc_get(link->format); -yadif->filter = filter; ff_bwdif_init_filter_line(&s->dsp, yadif->csp->comp[0].depth); return 0; -- 2.42.1

[FFmpeg-devel] [PATCH] fate: Add tests for QOA decoder

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
, 2140, 8560, 0xf64370aa -- 2.42.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] fate: Add tests for QOA decoder

2023-12-02 Thread Thilo Borgmann via ffmpeg-devel
Am 03.12.23 um 00:43 schrieb Paul B Mahol: Files needs to be first uploaded to rsync server of FATE, and wait 24h and after that it can be pushed. Uploaded. -Thilo ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman

Re: [FFmpeg-devel] [PATCH] avdevice/avfoundation: replace AVCaptureDevice with new api

2023-12-04 Thread Thilo Borgmann via ffmpeg-devel
Am 04.12.23 um 13:47 schrieb xufuji456 via ffmpeg-devel: Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead" Signed-off-by: xufuji456 <839789...@qq

Re: [FFmpeg-devel] [PATCH] avdevice/avfoundation: replace AVCaptureDevice with new api

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
Hi, Am 05.12.23 um 14:33 schrieb xufuji456 via ffmpeg-devel: Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead" Signed-off-by: xufuji4

Re: [FFmpeg-devel] [PATCH] avdevice/avfoundation: replace AVCaptureDevice with new api

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
Am 05.12.23 um 15:16 schrieb Thilo Borgmann via ffmpeg-devel: Hi, Am 05.12.23 um 14:33 schrieb xufuji456 via ffmpeg-devel: Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceD

Re: [FFmpeg-devel] [PATCH] avdevice/avfoundation: replace AVCaptureDevice with new api

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
Am 05.12.23 um 15:19 schrieb Thilo Borgmann via ffmpeg-devel: Am 05.12.23 um 15:16 schrieb Thilo Borgmann via ffmpeg-devel: Hi, Am 05.12.23 um 14:33 schrieb xufuji456 via ffmpeg-devel: Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is de

Re: [FFmpeg-devel] [PATCH] avfilter: add aspace filter

2023-12-05 Thread Nicolas George via ffmpeg-devel
, you are a bad one? -- Nicolas George _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as vvc maintainer

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
Am 05.12.23 um 16:16 schrieb Nuo Mi: --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) LGTM -Thilo ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as vvc maintainer

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
Am 05.12.23 um 16:22 schrieb Thilo Borgmann via ffmpeg-devel: Am 05.12.23 um 16:16 schrieb Nuo Mi: ---   MAINTAINERS | 1 +   1 file changed, 1 insertion(+) LGTM Pushed. Thanks, Thilo ___ ffmpeg-devel mailing list [email protected] https

[FFmpeg-devel] [PATCH v7 0/7] webp: add support for animated WebP decoding

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
100644 libavcodec/webp.h create mode 100644 libavformat/webpdec.c create mode 100644 tests/ref/fate/webp-anim -- 2.37.1 (Apple Git-137.1) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To

[FFmpeg-devel] [PATCH v7 1/7] avcodec/webp: move definitions into header

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
UND 0x01 + +#define ANMF_BLENDING_METHOD0x02 +#define ANMF_BLENDING_METHOD_ALPHA 0x00 +#define ANMF_BLENDING_METHOD_OVERWRITE 0x02 + +#endif /* AVCODEC_WEBP_H */ -- 2.37.1 (Apple Git-137.1) ___________ ffmpeg-devel mailing list [email protected] ht

[FFmpeg-devel] [PATCH v7 2/7] avcodec/webp: remove unused definitions

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v7 4/7] libavcodec/webp: add support for animated WebP decoding

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
ret = avcodec_open2(s->avctx_vp8, codec, NULL); + if (ret < 0) { + return ret; +} return 0; } @@ -1547,12 +2141,52 @@ static av_cold int webp_decode_close(AVCodecContext *avctx) WebPContext *s = avctx->priv_data; av_packet_free(&s->pkt); +ff_thread_release_ext_buffer(&s->canvas_frame); +av_frame_free(&s->canvas_frame.f); +av_frame_free(&s->frame); +avcodec_free_context(&s->avctx_vp8); + +return 0; +} + +static void webp_decode_flush(AVCodecContext *avctx) +{ +WebPContext *s = avctx->priv_data; + +ff_thread_release_ext_buffer(&s->canvas_frame); +} + +#if HAVE_THREADS +static int webp_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) +{ +WebPContext *wsrc = src->priv_data; +WebPContext *wdst = dst->priv_data; +int ret; + +if (dst == src) +return 0; + +ff_thread_release_ext_buffer(&wdst->canvas_frame); +if (wsrc->canvas_frame.f->data[0] && +(ret = ff_thread_ref_frame(&wdst->canvas_frame, &wsrc->canvas_frame)) < 0) +return ret; + +wdst->vp8x_flags = wsrc->vp8x_flags; +wdst->canvas_width= wsrc->canvas_width; +wdst->canvas_height = wsrc->canvas_height; +wdst->prev_anmf_flags = wsrc->anmf_flags; +wdst->prev_width = wsrc->width; +wdst->prev_height = wsrc->height; +wdst->prev_pos_x = wsrc->pos_x; +wdst->prev_pos_y = wsrc->pos_y; +wdst->await_progress = wsrc->await_progress + 1; -if (s->initialized) -return ff_vp8_decode_free(avctx); +memcpy(wdst->background_argb, wsrc->background_argb, sizeof(wsrc->background_argb)); +memcpy(wdst->background_yuva, wsrc->background_yuva, sizeof(wsrc->background_yuva)); return 0; } +#endif const FFCodec ff_webp_decoder = { .p.name = "webp", @@ -1560,9 +2194,11 @@ const FFCodec ff_webp_decoder = { .p.type = AVMEDIA_TYPE_VIDEO, .p.id = AV_CODEC_ID_WEBP, .priv_data_size = sizeof(WebPContext), +UPDATE_THREAD_CONTEXT(webp_update_thread_context), .init = webp_decode_init, FF_CODEC_DECODE_CB(webp_decode_frame), .close = webp_decode_close, +.flush = webp_decode_flush, .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, -.caps_internal = FF_CODEC_CAP_ICC_PROFILES, +.caps_internal = FF_CODEC_CAP_ICC_PROFILES | FF_CODEC_CAP_ALLOCATE_PROGRESS, }; -- 2.37.1 (Apple Git-137.1) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v7 3/7] avcodec/webp_parser: parse each frame into one packet

2023-12-05 Thread Thilo Borgmann via ffmpeg-devel
*poutbuf = NULL; +*poutbuf_size = 0; return buf_size; +} -if (next != END_NOT_FOUND && next < 0) -ctx->pc.frame_start_found = FFMAX(ctx->pc.frame_start_found - i - 1, 0); -else -ctx->pc.frame_start_found = 0; +// Extreme

<    7   8   9   10   11   12   13   14   15   16   >