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 BCD2D43B15 for ; Tue, 13 Dec 2022 02:42:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A0FC568BE03; Tue, 13 Dec 2022 04:42:41 +0200 (EET) 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 DCFB968B14E for ; Tue, 13 Dec 2022 04:42:33 +0200 (EET) Received: by mail-pl1-f181.google.com with SMTP id 4so8172864plj.3 for ; Mon, 12 Dec 2022 18:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ah5jnSQd0uwlQM476wKU9MSV1W213y5QXsaQdVLTuX0=; b=hK2OmeQZQx38gJ3DIw0B+WK9AuQdpSL8Tdz6PMqwQQQ1EiPX9W6dduIR9mnocVoO4P JP7t1tF0Eg1Fw9VL9pApGT5VUSvqyR39Iy3jYorhRHKSDkScWPppiVeQkjxBZ2pDCWA/ bfPkOzLTI1a1qnFP1LqXAqjlfZG3BatTfkK62urOiMaPq1NZUMBeoPIQukTqjy4FLfO7 CBXJW5VeqgQdTTpX5aAjUrgEXTWDQ2gxEQ7c2hXrliEaQn11oY7PNtB2WOPsByIMla8x KESVC4gN/ZVfA6MbSgRSlLkvBWqalKREZJ+yZxOeic/QsMKL852rOs8n9cBBpZ6sL1w2 bfoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ah5jnSQd0uwlQM476wKU9MSV1W213y5QXsaQdVLTuX0=; b=fmg/4MQRAkuiKhHPF092IJMjxZOA7l6+kW952tWAjCsC1y976MW1pZCo7m/VJkqzzl Zx85zPS0wS7iJMHX78BtQDhRVLVC+4QKKyJwTz5GNyzR9qn5gPxBZegigGqB/pYbKRNR 38Y1wvAbJ7M6zAjUOBEfLVM5ucCZD9uvEReEdWG3pH+1HaONr+94uXGdXdMGAroCVPAG mE4lKxew3q6UKQgaP6IueIJma+lN7GDS0nq9PRrpF+zc96KBev+abSbSq14QJPXj/Ons 3V0d6c0fNcMESFeRbzF5xc/ALJJ4/DPfq92kcbhzJ1NVix+9mf0aQNXR0rTxj5n6VOC2 dn1Q== X-Gm-Message-State: ANoB5pmrEVr8l26CkBBFGRJJEBVuBulP+O0XEhcMQHX2iLXk5pPR5sSe PDrhFTxT7OiUcThOREADQTNe0m7Baos= X-Google-Smtp-Source: AA0mqf6yrE6jtbLaOq+WxrgHseChlUXCMm6NHCkC0dQRP0G+MESo0NEc5vjwDGvMEcUbN1DI77WcyQ== X-Received: by 2002:a17:902:9b93:b0:189:8c38:cb96 with SMTP id y19-20020a1709029b9300b001898c38cb96mr17725048plp.20.1670899351713; Mon, 12 Dec 2022 18:42:31 -0800 (PST) Received: from localhost.localdomain (S0106bc4dfba470f3.vc.shawcable.net. [174.7.244.175]) by smtp.gmail.com with ESMTPSA id ju2-20020a170903428200b00186ae20e8dcsm7060105plb.271.2022.12.12.18.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 18:42:31 -0800 (PST) From: mindmark@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Mon, 12 Dec 2022 18:42:15 -0800 Message-Id: <20221213024216.259-3-mindmark@gmail.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20221213024216.259-1-mindmark@gmail.com> References: <20221213024216.259-1-mindmark@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 3/4] avcodec/bswapdsp: add documentation 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: Mark Reid 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: From: Mark Reid --- libavcodec/bswapdsp.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/libavcodec/bswapdsp.h b/libavcodec/bswapdsp.h index 10519cfd2e..ecc37d2c56 100644 --- a/libavcodec/bswapdsp.h +++ b/libavcodec/bswapdsp.h @@ -21,11 +21,44 @@ #include +/** + * @file + * Optimized buffer byte swapping routines. + */ + typedef struct BswapDSPContext { + /** + * Byte swap 32 bit elements in a buffer. + + * @param dst Destination buffer. + * @param src Source buffer, may be the same as dst. + * @param len The number of elements in the buffer. + * + */ + /** @{ */ void (*bswap32_buf)(uint32_t *dst, const uint32_t *src, int len); + /** @} */ + + /** + * Byte swap 16 bit elements in a buffer. + * + * @param dst Destination buffer. + * @param src Source buffer, may be the same as dst. + * @param len The number of elements in the buffer. + * + */ + /** @{ */ void (*bswap16_buf)(uint16_t *dst, const uint16_t *src, int len); + /** @} */ } BswapDSPContext; + +/** + * Initialize BswapDSPContext function pointers. + * + * @param c pointer to BswapDSPContext + * + */ void ff_bswapdsp_init(BswapDSPContext *c); void ff_bswapdsp_init_riscv(BswapDSPContext *c); void ff_bswapdsp_init_x86(BswapDSPContext *c); -- 2.31.1.windows.1 _______________________________________________ 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".