From: Pierre-Anthony Lemieux <pal@sandflow.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 5/7] avcodec/cbs_sei: refactor to use avutil/uuid Date: Sat, 30 Apr 2022 10:53:02 -0700 Message-ID: <CAF_7JxDvvVwnqEgvGuY=i+7NhDH4_h6fvvznzGu=Rn0sJcW6DQ@mail.gmail.com> (raw) In-Reply-To: <02a9b3be-e7a0-6283-188a-6033fde862b5@jkqxz.net> On Sat, Apr 30, 2022 at 10:31 AM Mark Thompson <sw@jkqxz.net> wrote: > > On 24/04/2022 11:14, Zane van Iperen wrote: > > From: Pierre-Anthony Lemieux <pal@palemieux.com> > > > > --- > > libavcodec/cbs_sei.h | 3 ++- > > libavcodec/vaapi_encode_h264.c | 8 ++++---- > > 2 files changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/libavcodec/cbs_sei.h b/libavcodec/cbs_sei.h > > index c7a7a95be0..67c6e6cbbd 100644 > > --- a/libavcodec/cbs_sei.h > > +++ b/libavcodec/cbs_sei.h > > @@ -23,6 +23,7 @@ > > #include <stdint.h> > > > > #include "libavutil/buffer.h" > > +#include "libavutil/uuid.h" > > > > #include "cbs.h" > > #include "sei.h" > > @@ -41,7 +42,7 @@ typedef struct SEIRawUserDataRegistered { > > } SEIRawUserDataRegistered; > > > > typedef struct SEIRawUserDataUnregistered { > > - uint8_t uuid_iso_iec_11578[16]; > > + AVUUID uuid_iso_iec_11578; > > uint8_t *data; > > AVBufferRef *data_ref; > > size_t data_length; > > This feels like a step backwards? The syntax template files are explicitly relying on this being uint8_t[16], so giving it a different name is confusing. What/where are the syntax template files? > > > diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c > > index 7a6b54ab6f..b3105d6ccc 100644 > > --- a/libavcodec/vaapi_encode_h264.c > > +++ b/libavcodec/vaapi_encode_h264.c > > @@ -25,6 +25,7 @@ > > #include "libavutil/common.h" > > #include "libavutil/internal.h" > > #include "libavutil/opt.h" > > +#include "libavutil/uuid.h" > > > > #include "avcodec.h" > > #include "cbs.h" > > @@ -43,7 +44,7 @@ enum { > > }; > > > > // Random (version 4) ISO 11578 UUID. > > -static const uint8_t vaapi_encode_h264_sei_identifier_uuid[16] = { > > +static const AVUUID vaapi_encode_h264_sei_identifier_uuid = { > > 0x59, 0x94, 0x8b, 0x28, 0x11, 0xec, 0x45, 0xaf, > > 0x96, 0x75, 0x19, 0xd4, 0x1f, 0xea, 0xa9, 0x4d, > > }; > > @@ -1089,9 +1090,8 @@ static av_cold int vaapi_encode_h264_configure(AVCodecContext *avctx) > > const char *driver; > > int len; > > > > - memcpy(priv->sei_identifier.uuid_iso_iec_11578, > > - vaapi_encode_h264_sei_identifier_uuid, > > - sizeof(priv->sei_identifier.uuid_iso_iec_11578)); > > + av_uuid_copy(priv->sei_identifier.uuid_iso_iec_11578, > > + vaapi_encode_h264_sei_identifier_uuid); > > > > driver = vaQueryVendorString(ctx->hwctx->display); > > if (!driver) > > This is fair. > > - Mark > _______________________________________________ > 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-04-30 17:53 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-24 10:14 [FFmpeg-devel] [PATCH v2 0/7] Add UUID functionality to libavutil Zane van Iperen 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122 Zane van Iperen 2022-05-10 13:18 ` Andreas Rheinhardt 2022-05-11 15:02 ` Zane van Iperen 2022-05-31 3:17 ` Pierre-Anthony Lemieux 2022-05-11 11:53 ` Anton Khirnov 2022-05-11 15:02 ` Zane van Iperen 2022-05-31 3:16 ` Pierre-Anthony Lemieux 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 2/7] avutil/tests/uuid: add uuid tests Zane van Iperen 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 3/7] avformat/mov: refactor to use avutil/uuid Zane van Iperen 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 4/7] avformat/smoothstreamingenc: " Zane van Iperen 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 5/7] avcodec/cbs_sei: " Zane van Iperen 2022-04-30 17:31 ` Mark Thompson 2022-04-30 17:53 ` Pierre-Anthony Lemieux [this message] 2022-04-30 19:25 ` Mark Thompson 2022-04-30 20:53 ` Pierre-Anthony Lemieux 2022-05-01 21:06 ` Mark Thompson 2022-05-04 16:21 ` Zane van Iperen 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 6/7] avformat/imf: " Zane van Iperen 2022-04-24 10:14 ` [FFmpeg-devel] [PATCH v2 7/7] avfilter/showinfo: " Zane van Iperen
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='CAF_7JxDvvVwnqEgvGuY=i+7NhDH4_h6fvvznzGu=Rn0sJcW6DQ@mail.gmail.com' \ --to=pal@sandflow.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