From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id C52B14E84B for <ffmpegdev@gitmailbox.com>; Thu, 8 May 2025 01:38:06 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0D28068C1C1; Thu, 8 May 2025 04:37:50 +0300 (EEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DF7E168C15E for <ffmpeg-devel@ffmpeg.org>; Thu, 8 May 2025 04:37:26 +0300 (EEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-22e16234307so6050555ad.0 for <ffmpeg-devel@ffmpeg.org>; Wed, 07 May 2025 18:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746668245; x=1747273045; darn=ffmpeg.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=U00U+QiiIomLi5d5vswkxZQap5CFelZQ4H9sXePJBM4=; b=Fd4gSF0Rm8qitCC8M5IAE9dFofFrMn9ClwOnGvJBUnLV6VBkjEv8bCPI1YKso8NIII 0jtgyo2IH3LDodnewGPrjy6KT3tyHBjcmBk+7BMKWaGCNIFhzGd+BP4Ff0rN+05TRqTl zYlmKDYylq3nYE5wQJs4Vwt+tAVrDKTpSJSBs2CAXyELzMIIsoxG/Lfi46l+GoXEuKuR q6e6T9I10SwWkKg5OHT3Xdjh/uUDFVq2YTbQm3FRTb7E/mAlX4DQw9OedSMh2WkHX6d2 2nd477uhhBbxpsPqY6s6i0t2NhSssGXcwLIlsiHoMEanzrsrQh7OvU/tkEyKQST5FXR1 fKRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746668245; x=1747273045; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=U00U+QiiIomLi5d5vswkxZQap5CFelZQ4H9sXePJBM4=; b=S3wg1Y7dR94esYO/1K/HX5ZRexZ26HX/8NCSZTVDFteenjxkChBarCebI1N0zt42TB 32wbgnvXK+nWrOY9Nrc7VqNb3nUREyl/qE/5MGLVLiun8mZ90G3tIynaFn0uwkAdEZ/t JqttI+alOyObH53bVdRVuJCNNPWhEInMlCW3O8123kpzfAJxF7dHfSXMBuHfmBL+MyVW ecEwHQSVmbHHfq9Vy6TjvFBQdh9oY6Vqa6V88ghHq9iP0mq+TYXfM0d5hbeXb38QGZ7y Ob+axZHKRCNfhfOqbomg9gHCb79bhu0xTyn3I8d7Q/LURif7lICUw7A2OksnfxWVbvo4 yhtw== X-Gm-Message-State: AOJu0Yy8Y5ImGBPgaKLwLWXYHTFPLdV9Qhoyruy081lXe/15OCD5MZ4b y2A5V5F7CuqX4HyV2+PH+vkih0r5m+tdUZF/RbhqkP+x1Ths4fVbpBsSdw== X-Gm-Gg: ASbGncvMkwsN6Bl21ePpMMMROKezWSc4pazyrDYM2lPlIAp+T6oqQnCmZYswRoeHMRY R/Y537snensgBoXioBBkqj+2oaxhBK+Lq49HGl+C/GfPiWRqZ4tViTJg38Het/BVLuR7ciGGZ1o haVGmqyLkqcc++drsl7dGCpZ5lbTwTSBGGwz9Jo/zWyXMIBZorhrCFthz6QyHFiHXC53eac76TP pTD67QfL+haOlzb/orBPhM2SRhWhHiRqn1XDNUU5pEQr1FuzUIB9+GLRT83yg6SDZfsv7bM+amC M6q7PZIrEDjB2jkPKPEvdS+yPFXJF2TAzng+7BEaNQDMztC0PrxVy8f2wcM= X-Google-Smtp-Source: AGHT+IGz6L4OwK2tKovn04eQ07RlLvbHKQDPbQwsp8z5Bs1Q6Zs34cl7xc6bw3KmMApdmLQ+2yLtKQ== X-Received: by 2002:a17:902:e54e:b0:22e:56e5:819a with SMTP id d9443c01a7336-22e8475a519mr25086825ad.13.1746668244936; Wed, 07 May 2025 18:37:24 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e150eb21dsm101166115ad.40.2025.05.07.18.37.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 May 2025 18:37:24 -0700 (PDT) From: softworkz <ffmpegagent@gmail.com> X-Google-Original-From: softworkz <softworkz@hotmail.com> Message-Id: <e5999793910324f2e7b71b733de45c8398334105.1746668216.git.ffmpegagent@gmail.com> In-Reply-To: <pull.66.v12.ffstaging.FFmpeg.1746668216.ffmpegagent@gmail.com> References: <pull.66.v11.ffstaging.FFmpeg.1746398104.ffmpegagent@gmail.com> <pull.66.v12.ffstaging.FFmpeg.1746668216.ffmpegagent@gmail.com> Date: Thu, 08 May 2025 01:36:45 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v12 04/15] fftools/textformat: Rename name param to key for API consistency X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: softworkz <softworkz@hotmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/e5999793910324f2e7b71b733de45c8398334105.1746668216.git.ffmpegagent@gmail.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> From: softworkz <softworkz@hotmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: softworkz <softworkz@hotmail.com> --- fftools/textformat/avtextformat.c | 14 +++++++------- fftools/textformat/avtextformat.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fftools/textformat/avtextformat.c b/fftools/textformat/avtextformat.c index 1edf24d956..8ee7472f1b 100644 --- a/fftools/textformat/avtextformat.c +++ b/fftools/textformat/avtextformat.c @@ -507,7 +507,7 @@ void avtext_print_ts(AVTextFormatContext *tctx, const char *key, int64_t ts, int avtext_print_integer(tctx, key, ts); } -void avtext_print_data(AVTextFormatContext *tctx, const char *name, +void avtext_print_data(AVTextFormatContext *tctx, const char *key, const uint8_t *data, int size) { AVBPrint bp; @@ -532,11 +532,11 @@ void avtext_print_data(AVTextFormatContext *tctx, const char *name, data += l; size -= l; } - avtext_print_string(tctx, name, bp.str, 0); + avtext_print_string(tctx, key, bp.str, 0); av_bprint_finalize(&bp, NULL); } -void avtext_print_data_hash(AVTextFormatContext *tctx, const char *name, +void avtext_print_data_hash(AVTextFormatContext *tctx, const char *key, const uint8_t *data, int size) { char buf[AV_HASH_MAX_SIZE * 2 + 64] = { 0 }; @@ -549,10 +549,10 @@ void avtext_print_data_hash(AVTextFormatContext *tctx, const char *name, av_hash_update(tctx->hash, data, size); len = snprintf(buf, sizeof(buf), "%s:", av_hash_get_name(tctx->hash)); av_hash_final_hex(tctx->hash, (uint8_t *)&buf[len], (int)sizeof(buf) - len); - avtext_print_string(tctx, name, buf, 0); + avtext_print_string(tctx, key, buf, 0); } -void avtext_print_integers(AVTextFormatContext *tctx, const char *name, +void avtext_print_integers(AVTextFormatContext *tctx, const char *key, uint8_t *data, int size, const char *format, int columns, int bytes, int offset_add) { @@ -560,7 +560,7 @@ void avtext_print_integers(AVTextFormatContext *tctx, const char *name, unsigned offset = 0; int l, i; - if (!name || !data || !format || columns <= 0 || bytes <= 0) + if (!key || !data || !format || columns <= 0 || bytes <= 0) return; av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED); @@ -578,7 +578,7 @@ void avtext_print_integers(AVTextFormatContext *tctx, const char *name, av_bprintf(&bp, "\n"); offset += offset_add; } - avtext_print_string(tctx, name, bp.str, 0); + avtext_print_string(tctx, key, bp.str, 0); av_bprint_finalize(&bp, NULL); } diff --git a/fftools/textformat/avtextformat.h b/fftools/textformat/avtextformat.h index c61dca159f..8ff503401a 100644 --- a/fftools/textformat/avtextformat.h +++ b/fftools/textformat/avtextformat.h @@ -148,11 +148,11 @@ void avtext_print_time(AVTextFormatContext *tctx, const char *key, int64_t ts, c void avtext_print_ts(AVTextFormatContext *tctx, const char *key, int64_t ts, int is_duration); -void avtext_print_data(AVTextFormatContext *tctx, const char *name, const uint8_t *data, int size); +void avtext_print_data(AVTextFormatContext *tctx, const char *key, const uint8_t *data, int size); -void avtext_print_data_hash(AVTextFormatContext *tctx, const char *name, const uint8_t *data, int size); +void avtext_print_data_hash(AVTextFormatContext *tctx, const char *key, const uint8_t *data, int size); -void avtext_print_integers(AVTextFormatContext *tctx, const char *name, uint8_t *data, int size, +void avtext_print_integers(AVTextFormatContext *tctx, const char *key, uint8_t *data, int size, const char *format, int columns, int bytes, int offset_add); const AVTextFormatter *avtext_get_formatter_by_name(const char *name); -- ffmpeg-codebot _______________________________________________ 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".