From: Mark Reid <mindmark@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avutil: move bswapdsp from avcodec to avutil Date: Tue, 6 Dec 2022 15:37:48 -0800 Message-ID: <CA+anCRnyJBWWfp_0AW6ch-yvYsRt-A5BvD+8sr1=N_Xmepa_Pg@mail.gmail.com> (raw) In-Reply-To: <8b87a0c1-2691-98aa-1bc2-fee897bd81ba@gmail.com> On Tue, Dec 6, 2022 at 10:21 AM James Almer <jamrial@gmail.com> wrote: > On 12/5/2022 7:16 PM, mindmark@gmail.com wrote: > > diff --git a/libavcodec/bswapdsp.h b/libavutil/bswapdsp.h > > similarity index 71% > > rename from libavcodec/bswapdsp.h > > rename to libavutil/bswapdsp.h > > index 6f4db66115..b540560d6a 100644 > > --- a/libavcodec/bswapdsp.h > > +++ b/libavutil/bswapdsp.h > > @@ -16,18 +16,16 @@ > > * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA > 02110-1301 USA > > */ > > > > -#ifndef AVCODEC_BSWAPDSP_H > > -#define AVCODEC_BSWAPDSP_H > > +#ifndef AVUTIL_BSWAPDSP_H > > +#define AVUTIL_BSWAPDSP_H > > > > #include <stdint.h> > > > > -typedef struct BswapDSPContext { > > - void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w); > > +typedef struct AVBSwapDSPContext { > > + void (*bswap32_buf)(uint32_t *dst, const uint32_t *src, int len); > > void (*bswap16_buf)(uint16_t *dst, const uint16_t *src, int len); > > -} BswapDSPContext; > > +} AVBSwapDSPContext; > > > > -void ff_bswapdsp_init(BswapDSPContext *c); > > -void ff_bswapdsp_init_riscv(BswapDSPContext *c); > > -void ff_bswapdsp_init_x86(BswapDSPContext *c); > > +void av_bswapdsp_init(AVBSwapDSPContext *c); > > > > -#endif /* AVCODEC_BSWAPDSP_H */ > > +#endif /* AVUTIL_BSWAPDSP_H */ > > For what's supposed to become an installer header, this is barebones in > the documentation department. > > Also, does this have any real use for API users? If you want to access > these functions from swscale as well as lavc, you could either duplicate > the code, or use the avpriv prefix. > I'm not a fan of adding public API for something that has no use outside > of our own libraries. > I agree, I don't see a need for this to be public. I'll change it to use the avpriv prefix if that's okay. I'll add a little doc to the header too anyway. the blockdsp is disappearing from configure is a mistake, I'll fix that too > _______________________________________________ > 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". > _______________________________________________ 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-12-06 23:38 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-05 22:16 mindmark 2022-12-05 22:16 ` [FFmpeg-devel] [PATCH v2 2/2] libswscale: add AVBSwapDSPContext and use mindmark 2022-12-06 18:16 ` Michael Niedermayer 2022-12-06 18:21 ` [FFmpeg-devel] [PATCH v2 1/2] avutil: move bswapdsp from avcodec to avutil Michael Niedermayer 2022-12-06 18:21 ` James Almer 2022-12-06 23:37 ` Mark Reid [this message] 2022-12-07 4:11 ` Andreas Rheinhardt 2022-12-07 5:50 ` Mark Reid 2022-12-07 6:59 ` Andreas Rheinhardt
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='CA+anCRnyJBWWfp_0AW6ch-yvYsRt-A5BvD+8sr1=N_Xmepa_Pg@mail.gmail.com' \ --to=mindmark@gmail.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