From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v3] Add avpriv_slicethread_create2() and avpriv_slicethread_execute2(), make execute() and execute2() return FFMIN() of thread return codes
Date: Mon, 26 Sep 2022 16:28:14 +0200
Message-ID: <AS8P250MB0744CC1F67F84A517323588F8F529@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <8339c7e82920315daba7ab10b879e76a2545b89d.camel@haerdin.se>
Tomas Härdin:
> mån 2022-09-26 klockan 15:58 +0200 skrev Andreas Rheinhardt:
>> Tomas Härdin:
>>> diff --git a/libswscale/swscale_internal.h
>>> b/libswscale/swscale_internal.h
>>> index abeebbb002..50e73c86fa 100644
>>> --- a/libswscale/swscale_internal.h
>>> +++ b/libswscale/swscale_internal.h
>>> @@ -306,7 +306,7 @@ typedef struct SwsContext {
>>>
>>> AVSliceThread *slicethread;
>>> struct SwsContext **slice_ctx;
>>> - int *slice_err;
>>> + attribute_deprecated int *slice_err; ///< @deprecated Not used
>>> any more. Removing it would require a bunch of asm to be rewritten.
>>> int nb_slice_ctx;
>>>
>>> // values passed to current sws_receive_slice() call
>>
>> What asm would need to be rewritten?
>
> swscale.c:
> /* yuv2gbrp uses the SwsContext for yuv coefficients
> if struct offsets change the asm needs to be updated too */
> av_assert0(offsetof(SwsContext, yuv2rgb_y_offset) == 40292);
>
>
>> Anyway, we don't deprecate internal fields; if we have to keep them
>> around for ABI compatibility, we wrap them in #if
>> LIBFOO_VERSION_MAJOR <
>> BAR.
>
> It's not actually an API/ABI issue but an asm issue
>
It seems to me that this is the only such issue that affects this patch.
If you modified line 583 of libswscale/x86/output.asm as well as the
assert, you could remove slice_err. (But let James confirm 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".
next prev parent reply other threads:[~2022-09-26 14:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 13:46 Tomas Härdin
2022-09-26 13:50 ` Andreas Rheinhardt
2022-09-26 13:54 ` James Almer
2022-09-26 14:14 ` Tomas Härdin
2022-09-26 13:58 ` Andreas Rheinhardt
2022-09-26 14:01 ` Andreas Rheinhardt
2022-09-26 14:02 ` Tomas Härdin
2022-09-26 14:28 ` Andreas Rheinhardt [this message]
2022-09-26 14:44 ` Tomas Härdin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AS8P250MB0744CC1F67F84A517323588F8F529@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \
--to=andreas.rheinhardt@outlook.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git