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 97D6144022 for ; Wed, 23 Nov 2022 19:36:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E560568B6A0; Wed, 23 Nov 2022 21:36:11 +0200 (EET) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3C59668980E for ; Wed, 23 Nov 2022 21:36:04 +0200 (EET) Received: by mail-pg1-f171.google.com with SMTP id b62so17644264pgc.0 for ; Wed, 23 Nov 2022 11:36:04 -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=ax6cJBfi3sZmnNnzzMbI50MX/GZHInR9jcmIVfV2znf8whUD1bNRRk9aoTFLCY3Do+ MQxyQr/ZDYMwsQB7HWz7V66m7CQPZRNJTHzHkfJorRGodeSjwHGn0CWa4tMvchf1Y04R uz6naXwaNlYBj00r3HEPg8gkIovUUSFQGANQGo2dJFU5E+SDCQWaULxEIuzFyjpsQy83 tdo2Mes4p0lA00afd8gqtY0i01rXbtRodNzXtppaygv1yeYC3MoJ7e8OLM+VL6Q67xO8 HfzHGDU0IbVYVa1/rWYpE7YNdkDeZP4qGaPdz1eEgIAkcWncIk5wITnph3th7lHaez5S R/XA== 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=M1fwTgcINkFG0Aa0UAFdvInNbcr42p2tzszY+ltIDYLEZtoqCjsBccpIWgjJPWx5a3 LVj9UiwYV6iGTJ4PrDKnEUND/OHzD0qZWhqnOqLfee0g3u8zMWAKP5MMQX5rbd5ffKhq f/tdasSwkTSql32z8IeUY6yzuQuoLPG+0dvapPOX5UpjohxGUPuIfxQ1ajDZSEfD1ZJh fWj5pTpwFFwlzqxvqtp9txPsN5GcQBsHlih+DJKA88eW+mJFGMUwkhefIBLZwm855NSH GkfgiYQaEp1KM36R/DnClEk8xNmJV/jLj1tg7hssASje1oPKmsxfVfkeJf5Bw47ibe9/ S7sA== X-Gm-Message-State: ANoB5pk/SOl6lChlSEBoHnh+m4lFpOIyTxjRCCk89bcvPBt8hSPtDM6N YnGEpqMqCrW2ilh/1eH5+caPupcKQFY= X-Google-Smtp-Source: AA0mqf5uAC2J4KkgEuh1ri6fe2QIfmZ6zg2OvQD9KeGxSpryQ0f5PX76lI0IWDrFQk6XkB0ippzD+Q== X-Received: by 2002:aa7:8c54:0:b0:574:2f5a:18d0 with SMTP id e20-20020aa78c54000000b005742f5a18d0mr6854287pfd.23.1669232162051; Wed, 23 Nov 2022 11:36:02 -0800 (PST) Received: from localhost.localdomain (S0106bc4dfba470f3.vc.shawcable.net. [174.7.244.175]) by smtp.gmail.com with ESMTPSA id a8-20020a63d408000000b00460fbe0d75esm11319276pgh.31.2022.11.23.11.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 11:36:01 -0800 (PST) From: mindmark@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 23 Nov 2022 11:35:38 -0800 Message-Id: <20221123193540.741-3-mindmark@gmail.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20221123193540.741-1-mindmark@gmail.com> References: <20221123193540.741-1-mindmark@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v5 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".