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 573FE44D6D for ; Mon, 21 Nov 2022 22:12:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 36A7468BA43; Tue, 22 Nov 2022 00:12:29 +0200 (EET) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ACB9368B786 for ; Tue, 22 Nov 2022 00:12:20 +0200 (EET) Received: by mail-pg1-f175.google.com with SMTP id q1so12381775pgl.11 for ; Mon, 21 Nov 2022 14:12:20 -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=gA54uSmepfSWjONf2GDMCk9UPzM21oyq2EuT7HkLuD4=; b=NBmx/5Oqx8F3Q4WIjne1TfnfMrUVqIai4VNJ0aF1QtaQGSemFkFXI9LbNwW1G2DruB 1CO+GQhe6jIN/tclFQv9iW7Yi2OCJCUxXMxzHHSRTUqxzj1kTF5AGBgD+CLwJBSdTFig IQsQ/Ju9CfmLUtdqqACdX/Pnxs3q/EQp1wflO6KZ7vKhmiFXQNEGP843G1N7wa/gTrpm MH551244CH/8aPx/iZiiuwbQOoX3u/OWj8Ui+Rvt3+MfkTJ/M/ZxH3tQYoLVnhAvTEC2 8goxPp0g2Ulc7bBTtaucsmX3DBewpCyGq22zqSQbrjFZ76NqvM6V/q5SdSB4rCI1eGDt /FoQ== 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=gA54uSmepfSWjONf2GDMCk9UPzM21oyq2EuT7HkLuD4=; b=WkIS0SqnRi/bCq0G413stHmGh8Oy96i4kqNNkIodtDC6b/pN7BkVxtL6ScsIZRP5KI hu6bEFUEAhRyPtOCjwlwio+hUBwQN+I/vQGj7xjEH5vVtjkGh0xsqCgej2Pn900mtOqy yZZ3tX7qxkdntwvDebM9WmnGL7zI0b/i3qwFEqz5uM+bpnHxY7DfHbIGvT1vq80iNBWd Hpx/t3hbIdEOICS+NSkqqJYxDxSZurWyiObHi1QlTC5/3HQJViXinJutXOFEnAYzzhpR Qv2jqcevWjEV9m8D+9rlGwWzZ1KwLhwjoY+rAN2HSWjhI4t+nND84VJpscvKTl37vub4 2S5w== X-Gm-Message-State: ANoB5plONIfsOR7F6EAeLKLYf5TcTckyxTWKyIvHBpBaww2qMJxnkjLw 9ynncl5XsFTaNUFW2bEEII6zlBgfV5Q= X-Google-Smtp-Source: AA0mqf7zsmmwjUYn5LZ9ft1nN3zus0hbPhK4tWh9R0x5CchIh7E11rw3hmWhfICsY2od4vu4ZTtjLA== X-Received: by 2002:aa7:9e5d:0:b0:54c:9e75:ab7 with SMTP id z29-20020aa79e5d000000b0054c9e750ab7mr1226261pfq.82.1669068738637; Mon, 21 Nov 2022 14:12:18 -0800 (PST) Received: from localhost.localdomain (S0106bc4dfba470f3.vc.shawcable.net. [174.7.244.175]) by smtp.gmail.com with ESMTPSA id b8-20020aa78ec8000000b0056b8b17f914sm9111095pfr.216.2022.11.21.14.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 14:12:17 -0800 (PST) From: mindmark@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Mon, 21 Nov 2022 14:11:44 -0800 Message-Id: <20221121221146.426-3-mindmark@gmail.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20221121221146.426-1-mindmark@gmail.com> References: <20221121221146.426-1-mindmark@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 2/4] avfilter/vf_hflip: add support for packed rgb float formats 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 --- libavfilter/vf_hflip_init.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/libavfilter/vf_hflip_init.h b/libavfilter/vf_hflip_init.h index d0319f463d..31173f73fc 100644 --- a/libavfilter/vf_hflip_init.h +++ b/libavfilter/vf_hflip_init.h @@ -86,6 +86,29 @@ static void hflip_qword_c(const uint8_t *ssrc, uint8_t *ddst, int w) dst[j] = src[-j]; } +static void hflip_b96_c(const uint8_t *ssrc, uint8_t *ddst, int w) +{ + const uint32_t *in = (const uint32_t *)ssrc; + uint32_t *out = (uint32_t *)ddst; + + for (int j = 0; j < w; j++, out += 3, in -= 3) { + out[0] = in[0]; + out[1] = in[1]; + out[2] = in[2]; + } +} + +static void hflip_b128_c(const uint8_t *ssrc, uint8_t *ddst, int w) +{ + const uint64_t *in = (const uint64_t *)ssrc; + uint64_t *out = (uint64_t *)ddst; + + for (int j = 0; j < w; j++, out += 2, in -= 2) { + out[0] = in[0]; + out[1] = in[1]; + } +} + static av_unused int ff_hflip_init(FlipContext *s, int step[4], int nb_planes) { for (int i = 0; i < nb_planes; i++) { @@ -97,6 +120,8 @@ static av_unused int ff_hflip_init(FlipContext *s, int step[4], int nb_planes) case 4: s->flip_line[i] = hflip_dword_c; break; case 6: s->flip_line[i] = hflip_b48_c; break; case 8: s->flip_line[i] = hflip_qword_c; break; + case 12: s->flip_line[i] = hflip_b96_c; break; + case 16: s->flip_line[i] = hflip_b128_c; break; default: return AVERROR_BUG; } -- 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".