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 1DE11449FF for ; Thu, 29 Sep 2022 18:09:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C6A9568BAE5; Thu, 29 Sep 2022 21:09:11 +0300 (EEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2336468BA89 for ; Thu, 29 Sep 2022 21:09:04 +0300 (EEST) Received: by mail-pf1-f170.google.com with SMTP id b23so2116541pfp.9 for ; Thu, 29 Sep 2022 11:09:04 -0700 (PDT) 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; bh=gA54uSmepfSWjONf2GDMCk9UPzM21oyq2EuT7HkLuD4=; b=dtRbV/hfu+5fpf0lCxqXF5F0JB82TEQFisDo3EFT4+Fbgiee0bZZOPJaS3f7pU+CAB Sgw/a91GnGOZSNV3EqMPdZbbam/W5QhzxsWo16GPf1WzjxFbIGemHzBxPxidFaf1tROU SWo/qhTo9HFxFHbAEBicp62rJ9fR3oBjWfql3XNLOgRBRDyqPDgkq9lb+Ny7pS0al3C8 WH39hnAoxFOVMWos0XMZ0wjGRpA/J8KFoNrfDV8tTLW4nzgorOLSdCPwTyPJ8RPXuLoD pqRm8zMbdWNPqgqrkYHuHmRG+0b8xxJ4V6gM2YLKoQnnfpDv6mwG4LDKlKSzNNU9pR/y OZdA== 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; bh=gA54uSmepfSWjONf2GDMCk9UPzM21oyq2EuT7HkLuD4=; b=P4pFk0jN8vSNsuU2RcMTHdMTLHaf6jPUfFwr8zQWzMaiaJQScHIO3wj4sO6qvGNUBg qmKf1HWA8kndgzsG4y4mmhjnWIHeHrAIPh3hDJogDywT8YkUu64AnaQAHBvfqIsvROk8 ArwCJJFKL/jyYEywSuQP0azEtV3iULnyL3rrPOJqVj5jjxmwZafB1lO9f3+nc1LdTc3S DNiKh37ngLnKYXtPri3KtJeZT293C+RtMpw7fkXtrcZMmCsYRRvAz5lVJUt54PR1rfbt Cv7+Ws78syVKLIZVHcpKih1lYqTlBA3DAikdv2ZtkO/KRwv0zV3G8chzimF1psekYuO+ iNhg== X-Gm-Message-State: ACrzQf2LnF8H5bGiXY5O4PqDyh8YtSecY96NWSrXmoBebDIA0lP5KXeW 3zxv0EjHofyF/mK99gbnXCD6QRxNTx4= X-Google-Smtp-Source: AMsMyM7Mqtu9K54WbRPoa33sak/C2QLMTsUxRwEcmSXYgqVZXHnBeP+MFjd/dIqSg160HEc5Mr50jw== X-Received: by 2002:a63:3110:0:b0:438:e26c:167f with SMTP id x16-20020a633110000000b00438e26c167fmr4048221pgx.134.1664474941668; Thu, 29 Sep 2022 11:09:01 -0700 (PDT) Received: from localhost.localdomain (S0106bc4dfba470f3.vc.shawcable.net. [174.7.244.175]) by smtp.gmail.com with ESMTPSA id i2-20020a17090332c200b0016f8e8032c4sm185689plr.129.2022.09.29.11.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 11:09:00 -0700 (PDT) From: mindmark@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 29 Sep 2022 11:08:39 -0700 Message-Id: <20220929180841.614-3-mindmark@gmail.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20220929180841.614-1-mindmark@gmail.com> References: <20220929180841.614-1-mindmark@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 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".