From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 91B0C46DC4 for ; Tue, 10 Oct 2023 11:03:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6017368C93D; Tue, 10 Oct 2023 14:03:39 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 11D0D68C93D for ; Tue, 10 Oct 2023 14:03:33 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 832C024048D for ; Tue, 10 Oct 2023 13:03:32 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id MZYcME2-YE2j for ; Tue, 10 Oct 2023 13:03:32 +0200 (CEST) Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 12E2A2400FF for ; Tue, 10 Oct 2023 13:03:32 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id F1A1C1601B9; Tue, 10 Oct 2023 13:03:31 +0200 (CEST) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20231007162503.1057-3-jamrial@gmail.com> References: <20231007162503.1057-1-jamrial@gmail.com> <20231007162503.1057-3-jamrial@gmail.com> Mail-Followup-To: FFmpeg development discussions and patches Date: Tue, 10 Oct 2023 13:03:31 +0200 Message-ID: <169693581196.6638.14376440546069092680@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 2/7] avformat/dump: print Frame Cropping side data info X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Quoting James Almer (2023-10-07 18:24:58) > Signed-off-by: James Almer > --- > libavformat/dump.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/libavformat/dump.c b/libavformat/dump.c > index c0868a1bb3..8986e7c32a 100644 > --- a/libavformat/dump.c > +++ b/libavformat/dump.c > @@ -427,6 +427,23 @@ static void dump_s12m_timecode(void *ctx, const AVStream *st, const AVPacketSide > } > } > > +static void dump_cropping(void *ctx, const AVPacketSideData *sd) > +{ > + uint32_t top, bottom, left, right; > + > + if (sd->size != sizeof(uint32_t) * 4) { > + av_log(ctx, AV_LOG_ERROR, "invalid data\n"); > + return; > + } > + > + top = AV_RL32(sd->data + 0); > + bottom = AV_RL32(sd->data + 4); > + left = AV_RL32(sd->data + 8); > + right = AV_RL32(sd->data + 12); > + > + av_log(ctx, AV_LOG_INFO, "%d/%d/%d/%d", left, right, top, bottom); %PRIu32? Also, some user indication of which is which would be nice, like l:5/r:1/... -- Anton Khirnov _______________________________________________ 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".