From patchwork Fri Oct 14 22:31:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38739 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp537977pzb; Fri, 14 Oct 2022 15:31:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5r7Rl83cKJUJaa6IfC1c/3BDu7hjKa84+SDFsGFlrNPOdPe4BRbjnA5SdQ1Z3U3kGKnzIH X-Received: by 2002:aa7:c698:0:b0:458:8274:12ac with SMTP id n24-20020aa7c698000000b00458827412acmr5967edq.351.1665786703681; Fri, 14 Oct 2022 15:31:43 -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 qb7-20020a1709077e8700b007721f88d3e0si3720683ejc.554.2022.10.14.15.31.42; Fri, 14 Oct 2022 15:31:43 -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=LIsPQrJq; 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 4D6FD68BB65; Sat, 15 Oct 2022 01:31:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073081.outbound.protection.outlook.com [40.92.73.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C211D68BBB8 for ; Sat, 15 Oct 2022 01:31:32 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RuWo2rD8qbjP+MmlazZW+77F139R6RAXwEmqa69kWL3SLY5Xa1vy8oxTihfaktkPUGvblrCkXKT4rTHWS/g4CwEAjXzuxmzzWSzexd1c8kFfHNIjgh49Myl079aX8JEtZQDtda8HES+dyZmQsbVqOqfHaDNqj7m1ZLazHTg7J0iwcTFmnobqvHzDM52sC4t2zvZZtm9v6Cd91qx0dWN+9E49wbc8AJxP7j+Flwye0vQz6/QH6a0QTeVbScf3yACoM+l322er4rs3OXQjAOXhz2CD1ERjKGV/9AwEObP4lu24nMt+XZME4Fb4PrLFIoE+559QKe0zE1EacL4+b90mLQ== 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=9v5UKxCeT+llW66re8y/qtf2ROrzxq6zcBsxT/VB1ww=; b=TbOTs8HD1dKdqFQE24fBemlvIkBgiAC27QWzR2ejWjIZjEJVUF+1XXPgBxUmqPNxgXqQIa50x3fnK5cvR7DumTL1bBQ6dTRyAlImLfgoK9ui1Z4JJ776UT151B1SMhMTU9tyt4vocXktAiIp1R1SO3Pilj0w4FDf73s5MS5Cgbg6qYOZsiRuOONrQaOCTQH/sYfqKvfyeu8btFz/kl5bXEH6shzAjgLojIvTD+eB3votvys/9hiQyqYsfVFPQabhgFsvDfr+4pCPDWbK0LPn0lj6htZUi61XUxGiUq+LpobkDHbE3fNBxoYK7cyNyu1yuzZqIG7PZXXjluTrPzQ7RQ== 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=9v5UKxCeT+llW66re8y/qtf2ROrzxq6zcBsxT/VB1ww=; b=LIsPQrJqSJdw0kHh25AbK38CrmNkXJ2htugRfd/Ybl7rLD9vkY50WjaM62lWr48IWUTY5gYrrJZZhfAzkXFBnc/mdfX6/bN9ZVXxg1n8c1dCZ13lKtRn+eXlpVm6XbUWfme/lg1Fv47F6zj/1uxDwjcY9uJM4+RHjBsiXDNrfsSPALr5eYb2v8Y7ykq1FP8J27kz9CaynaayOGsquFAgmvEokjtDCzW6NN2xAyGhkY6hIDYfV86/Bf7wJqecZQOXX4v8T2yBSJWJw77EvZ5/cTghXkDJyPlYhbPO+4a/1AziQnmRiScfnWu/dRlswtTIoxmgN2/+X9bxCEWe/y0geQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AS8P250MB0742.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:53a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Fri, 14 Oct 2022 22:31:31 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::f9d7:680f:70c4:44fe]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::f9d7:680f:70c4:44fe%7]) with mapi id 15.20.5709.015; Fri, 14 Oct 2022 22:31:31 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 15 Oct 2022 00:31:33 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [z1w/egrpXr0oZNB9HBoeyEAjwy0lBAGscldiAzyu618=] X-ClientProxiedBy: FR3P281CA0080.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::15) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20221014223134.2830505-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AS8P250MB0742:EE_ X-MS-Office365-Filtering-Correlation-Id: 973270a7-fb00-42da-703c-08daae33d76b X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmrYWfscCpT4MVejCVJ5Kk6zlEWHdSZt+zFfchQjhW3hP+c8aDhY4T3f3qoILXrLpzS3l84lbvg/v8AW1UjBoh3r2UcQeEkg/WheVz7H8BZo1232isnEeg7C6lV5rkdG0iDEi4McTY1f9fsGOEroNIOtVHF4zGAizi//C6PEoaQa23LsqockGcta6/KEr4FzjQgohxsywhjPtAB8eKg7aF8hFtV0YddyKQgeAyfE08gQrcJ+cCuByYzw+kQPBRcS/jWxMAHmL/KIIIDQTZaIBJjX3y5RvGcwxIBwmKyWPQtXvhvYXiP2gTpAiRae+3UMjFhUtLaXZMr69+p9h08Fj07IzsFhP4xojGiGq7UeY9ilbjXj0rfvj1UeDX8qu2zzM6ciOqA7s4QIi7G63dIEEPqFH/ZxfGp7XOWI0iFVRja/yA7h22JXzSavXIXDvlJm4fcPFKsi/VJiahYTfhAuDlgspbC1THkxmxglo2L8zlKh08Iupa+UvPtHmflojwPxTbkOXhfUoAXxO0o07EKqvVlnZ1803P3T/yeQzrWzMhKcoGKIdmyMqbQKICwKviSsiLtZn9eLyJN5ChZEEZD3Ogsbom8w/5YbLWJRg/kIAc21ySqe0DRC1ZvWzwRospgXj41qr/u+foipAO7A2ddsafHB06S3gi1fJFXKucux6BNPXH3XWvvSRY2Svijv2B+Th/225XBk9iv+vL9HUzCkKe7yeW5PjvvYbOQZ1Y+w9hgWNRqiqOonVhMkOX9qwH/lyac= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F1OdVsDUmdDRwXwDLzECuKlaicF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q5L0fOVMP1MIwHOpSX0rpeLUPPPPECEh2wqUZQD3Tv/vHbhOOeQgzcXj69PXV1Y0BvSGxsTwP8zquyKKWV8NSX+8AnKkj1lnMUZ7XlPirjnaTEyf2BKD86eQrP7+poWj5OVMFb/Y6ExABFAgZTI/jZLW1vg8sYYThOSH8xZfnnGNok676/UYnRzKPNcYKSScTZjZCW1XAn3bhlx/aKZ25EZPajyH3R1hScaLMr+vJq3Ev7YlFTAk75JkbUKh6Axageeu5Fp+Gg1iADym0yU5imnqBqUVd2id78b56dF7NxmcRUh34p/3z99VNqTXJ8dAAUZ6QpSF8S3z8BGSZWMlHQHg2MfjapRhiu8RD4ksTCAfgE3Gj9OETfvbpQx38UHSyStxusbxQ/EZiStALv6Aq5zv/YCxFHSu9PdKe9rUz1Kzt2L9Dfx6xLy4g6mcMXMQcciFgrM1e9UVqwvA+qdC8p/ivgzRT2llAbAhT0DeprcKTd7ITiC6Uc7OjJcXS7s93k7igfh3jNPSLECRFUVntYLU4Au1aqHGq2E3E7p5sN+VDDFuafIjoCMRzOJZDIYQB3iKDhD/4c658HueRgvwyRKoXxaeRvjNFkThPdP6xPigJ+xv304QfPmASTdTPTsJ3nK2RrMi6R4p/Hs0jTaJ6ZfTNJGSkqrHSgqXz0DRYyBFMYHoiI1WEEOjqy3/KpIpQgS84fz6P8CatYcuosZ0HGB18tQeLBdmm/C5VGBltfHHJ4GL6UIar2nPEmACi/A34uP6kRNZ7Bc9rlqALisLKPhYS7JidQwQx4HRHJVkMrRcpslr7rT8V9QJd+oXUIw7AQno47k4iyZ0MMmTafInVY0WcT+NeA0N5jvMue9dPD9o8LkNdTLjn3Jm2XsFsRqybXMj+FBpgRlLD8pgOWMjjSCP9ZR72buXBAKxY92c2KuMj/EU/ji95mKteUnZW/WrriOWzg7cE9yuIbgFCYbn8= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 973270a7-fb00-42da-703c-08daae33d76b X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2022 22:31:30.9553 (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: AS8P250MB0742 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/jpegtables: Mark jpegtables as hidden 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: bSSvKRkbEbBp These tables are not exported as avpriv symbols, but instead included into every library using them. Therefore they can be mark with the hidden elf visibility. For certain arches this is necessary in order to avoid building suboptimal code; for other arches it just allows the compiler to simplify accesses like ff_mjpeg_bits_dc_luminance + 1 because the "+ 1" can be baked into the offset. Signed-off-by: Andreas Rheinhardt --- libavcodec/jpegtables.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/jpegtables.h b/libavcodec/jpegtables.h index 49b5ecdeb0..39baec3efb 100644 --- a/libavcodec/jpegtables.h +++ b/libavcodec/jpegtables.h @@ -23,6 +23,9 @@ #include +#include "libavutil/attributes_internal.h" + +FF_VISIBILITY_PUSH_HIDDEN extern const uint8_t ff_mjpeg_bits_dc_luminance[]; extern const uint8_t ff_mjpeg_val_dc[]; @@ -33,5 +36,6 @@ extern const uint8_t ff_mjpeg_val_ac_luminance[]; extern const uint8_t ff_mjpeg_bits_ac_chrominance[]; extern const uint8_t ff_mjpeg_val_ac_chrominance[]; +FF_VISIBILITY_POP_HIDDEN #endif /* AVCODEC_JPEGTABLES_H */