From patchwork Sun Sep 25 17:12:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38312 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp1784646pzh; Sun, 25 Sep 2022 10:12:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4x29PWHaCQ7U/271aPoBbWn7b/LFPMyTkgsG7IaeNjDtW0uxXMuCOh/TYd5pkfQ570kD7V X-Received: by 2002:a17:907:96a2:b0:782:4072:19da with SMTP id hd34-20020a17090796a200b00782407219damr15135376ejc.398.1664125940447; Sun, 25 Sep 2022 10:12:20 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id nc33-20020a1709071c2100b0077a341b88fbsi17622593ejc.191.2022.09.25.10.12.19; Sun, 25 Sep 2022 10:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=J2FFoNh6; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 66DFE68B9DE; Sun, 25 Sep 2022 20:12:16 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-oln040092066060.outbound.protection.outlook.com [40.92.66.60]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C1E2E68B919 for ; Sun, 25 Sep 2022 20:12:09 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ew810Ex0xuAtAfiA3Inun3EQeP/gYwm80780pAhMHp8JT49JSf0RkU64U7fTQeQlRBVFCLnvJV4BxeWyj9q9656j0urfeg+dRFkkVslF0UNjsea+T34iqDiV7rIXnZwofUUDopsFC64F9lLH9FwxrUEf8vANRHHf3sz0jzTcDBNxUzXk39uieoMCl4NTSZFU92n8xPfcH8q8pejC36HuYhMIPgKpBs0CrJxraFHHkcI47XSTXGO70zfGhxRY/NyasUg/VZPZ7mMwlaT9ep+65OljaHjiuvpE+WIXeU5BDK2MRDz9AgtxcRLZSwlbi7uc9xpPm7i+Cxonmjs28r9jBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8ITUg8KJqEVPLZtLfxApcnE+bv21cKrHf592DxUQzFA=; b=hBEeViFMZCsf6TQEQ32MpE7j0dFXH83KBOFRJYOBjhDXN94YEamN3BSxMrEhhertJ/qpuJY4EU6MWCp/b6xsajTmCy/xoxUjh/zaW3VRcPLwl/IO/Uj3tA70yUQh3+OdHsEHtFpqOvYlHcYwJEcybGhMVigVUExJRnxiTkZtiDFgCxLV1RnRkz/NQ7BH94sT99kw876VEpHTGQXjbhX+fh3FJ6U+Rou3TdYzJavnfBgIcTEkokRMawzdkych/zjyn+/BtlXABWdHPKS0+7ncPs9QMmuNMEL2Ny8k43sMfMMB84CLJqSnX6n7Y+WdPsY0+0lY/611odViUNdN/WgYQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ITUg8KJqEVPLZtLfxApcnE+bv21cKrHf592DxUQzFA=; b=J2FFoNh6wPCJhTgF9jmMrmTw4nLEup55JCzelkG9k91R5XQ9/zdmQnCLGy/ehaG6QI4DHjIJs4l54Q3qIwFE5N2vxstOQxeESjt85W/bG8FnL7TpUR89ftCyefxNejK66EwU+L41MceqXfZRviUMnXSsPZYDbMQsUTfflAnef/QoVzi4v6CtqWPp7/6MbKVq1K0un38NzMOd7bVRR8TH2G6bVEDLAPhLDfZE2YzvA0YdmoS9Um2RwBWhtDDHigAIzSpGWc1q+LFT9ebZ+CHMZrESOQPVfoHZAdi45C1qSJEHakX0Zf5ByrJcmevmunZxin/HkKV2EjeibAE2xl0cjQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by DU2P250MB0176.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:275::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Sun, 25 Sep 2022 17:12:07 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::85ac:1b92:90f:dc18]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::85ac:1b92:90f:dc18%4]) with mapi id 15.20.5654.016; Sun, 25 Sep 2022 17:12:06 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 25 Sep 2022 19:12:06 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [46s69pFDsgLEedwp7rXhwx7dDdDq5txoLA3IyHtYViA=] X-ClientProxiedBy: ZR0P278CA0017.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::27) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20220925171206.2834189-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|DU2P250MB0176:EE_ X-MS-Office365-Filtering-Correlation-Id: 531deb46-d63e-41ee-330e-08da9f1912b2 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmovRtSN2t7hJLPTR9ZDHuwS8mmMSRgpmiSJDlQuN4zayxmdMf/lAFoBmGvpdenar++fsScQb8nPSGEbTJV4qUtr+OsJlIQrnuE0Y3fjeZJ2gE0V7zlQQUY5fBMhz/7MJQxhr8DiGFQ3Xoh9fIgLb5wCjxUQWZzby/MqcMQm2KAC9zvwDWCpCectXNatIZJU0GVXbm3WR3GVLxsoul7UC3uErF9sfFv99j2fLf8sPJVwPP4AKFU9bvaKcYci6iKoHdOgwWyYNmWgdOBqdPPFxtmJIP7YdbcCEEJkLy6FW4Crf8F1LVfngw2BzmJH54t7zhDSHHRzx8nXApNnaDt2Ov/pHCx8fhMRsyvWU1OKcATp00y5UrbufHq1gPpcKdIoU8TNXD/vTzORX3zejD7s+H+YzL9d9qAmdlf0awvexuWS0MstFy2CzJ7816HIrq+6XgHZb59Af3AA91XhmNx7U15gKNwlAzfhf/FvWlQFU5pLLgR7wHzgdtCDEBPASq0olyhtjOkhrdjHDQGsGTpDrfVhfdcuArfEdK4vojdYEVmQBW3PmcZH5senbjUliyHlvDDQgXSC/WK71EEo+ljceac+QCBHQjiswG6Q4eKXIelJqfs9w7tRIIDdH0kqm5zYtSkK8Mv6y1YM99oCG75cDsOrwtdxN23WW2SZjnurStYzz9gxYUpzVDhOTWUHN2ctYeB41+lyGdRlLiJs0N6AtsUV5l6fwsYMjZQ9s0uusP4QsIjgGVMGWlfpxwNAgNd7o4o= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iMu+ppC1lq4IXOIMCHIrHCGWpg8um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dC3BoerJO1tpNUoJG6rhviTp7E/kPUQe56Ku9/fhm3JKZZ3EjxFk7/pqWFmbhgZTLYHwuyEBct43TEiAxrpELw69T/6m6pmfgkV8HtJ0kUqVli4HbH4YrJRNUXxtLFm9ABKbDhXIbd67FV0SCRMpZGwLfinSrJQFudsa535YpaZA4AQ16/WwpDwWrhq2uLtr4tKigbGOxVGR+B9tK+vmYIptAnVJ2ZtsHl8gEj05mIfiG7kudgsCZUzxJNdWZ5tcMzr1pTWh8SMZoIsrTMxhvVEt3HLwThUxNwuvOo7LIJHqTirDA5Gfu0quOl9IftaGS8J7BOyuVp3vIVnp46DCsu+UZrhKjPTtRTlMs5EMWcYIqv9hSLdn0RRDMqKZax0aJ8KSbzrPFgbb1WJKpXrIMXHOLy0OKI/m5R1rxA06FuGqtYLiyxTSppdNV2/iEtz62FphAlEee9vpqv7nYbPtDozLQ6Jmr3WrA307vQwX2Lr3TBERbaXlYWHit0hq3r8Mp5/0cYXAEVePU/6DSn5oY25BU1DFMLi/21WAS0HByla7mnaioF+6FzAc+KsbfzDJEvj2BgxDT7tceKL7cxTji+ghMgJ8np/fxVYEwedaRqEZ9bjuC6R38H/q+q5wOVUS/d9bAhs6QHLMalgjpXA6XoGH68qjl32TeqX5ynxC6LXcgrnqaHCIrqnuGXEH+pHjeFasrRfZHwLkytvqg2d+6QBghHNFMFbrTYqHJkyBm+rkccUHmC5qrrxKSh2QDCmWs0cLTvJK+xuFy7PSzEWzOmlUrnw53ucC9VdioHkTKYNwsMlCcKvzWW4+bNbLihH1cxG4IFh6UrlmocMsM9BABlip9kcv8EoHSNh2h7PGwyEkZvfEVSI5f+93sFt70+Eje/DQfbUbYX4RGOd0dzfJxfpGFr9ONRlfBs5plDWDSXUE0xBHKr X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 531deb46-d63e-41ee-330e-08da9f1912b2 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2022 17:12:06.5524 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2P250MB0176 Subject: [FFmpeg-devel] [PATCH] avutil/display: Drop wrong comments about matrices being allocated 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3atg5a+QALCp These functions work just as well with stack based matrices. Signed-off-by: Andreas Rheinhardt --- libavutil/display.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavutil/display.h b/libavutil/display.h index 31d8bef361..0c73bff5da 100644 --- a/libavutil/display.h +++ b/libavutil/display.h @@ -90,8 +90,8 @@ double av_display_rotation_get(const int32_t matrix[9]); * Initialize a transformation matrix describing a pure clockwise * rotation by the specified angle (in degrees). * - * @param matrix an allocated transformation matrix (will be fully overwritten - * by this function) + * @param[out] matrix a transformation matrix (will be fully overwritten + * by this function) * @param angle rotation angle in degrees. */ void av_display_rotation_set(int32_t matrix[9], double angle); @@ -99,7 +99,7 @@ void av_display_rotation_set(int32_t matrix[9], double angle); /** * Flip the input matrix horizontally and/or vertically. * - * @param matrix an allocated transformation matrix + * @param[in,out] matrix a transformation matrix * @param hflip whether the matrix should be flipped horizontally * @param vflip whether the matrix should be flipped vertically */