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 A9A294891C for ; Thu, 21 Dec 2023 12:35:05 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 04A3C68D193; Thu, 21 Dec 2023 14:34:59 +0200 (EET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 52F2668D17D for ; Thu, 21 Dec 2023 14:34:52 +0200 (EET) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6d92e736787so397156b3a.2 for ; Thu, 21 Dec 2023 04:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703162090; x=1703766890; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6I5xoZa9Sac3xG1tRRkRn65vgh3gU/zlU1AKUNnKJjE=; b=K9dUqLqteYEhx/Jh8f5erKEr3qibv9rA2iLfSsrTzub+BbKKJJwN+j/hy+dnfsRA6N zEhzVBQos2qIb+yI+Eird9m9gRO1hN9LA5jnrpRgS+ZWHkqdH6uZ/yxmoJXzHglVWcUT PMhnxLdb36E8ZtO25dXBRbXWPwaOn+xE2CJwAl/V7lAiqYQgB5xtIeYXRj12swQYmP7c yGzHV4rYYEsRBPmtuUMEpRBTjyfaCjpxbC8v6VXGNhuzYdgBUKFlyOu6cCnk5GIB0Bs8 hXiL6WsU60xJNGyUh3FAQc7F3nT2CK3a1z72q4H8FGlaIFeTWHaCFv+n5SfQDG+i1eWw i+1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703162090; x=1703766890; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6I5xoZa9Sac3xG1tRRkRn65vgh3gU/zlU1AKUNnKJjE=; b=QiSphumc5K35mtTF7fhM4L61D5oWNvtOOJst45eLqHpQRZN/C1PL4sUrYlfVaj9NY7 i55YLuLIamAFZk+W2RZ+F5LvrtWuXKTe59n2LzAQPg39fQ7UesZYwEAVtz96zAow+BtV jekwZkiMCTg6gplgQnj4Bju+cC7aE0EqpP+OUu3lTUlAETP/bm5rIFAg62VmNzV/w114 Ll2tXmSsLy4zIw8GuRMPPtF7eJZDy2Rp4uQGsbD/TS7zUmPLMFd+bpyesU+DtkjpMreT kzvGSJqQFSvbfl0DYHB5g9txkRkHsxSkOkBkb1Iy2AqbRT0WXzVFYORAylfUvTrc3+Y6 /PpA== X-Gm-Message-State: AOJu0YzmRbP/9w299N1vYntHL03GQ6y0AcpnATgbqOCYolw81eexnJfs 00bISU3NmH0HmuSnAfH/BhG/7kWVDc0= X-Google-Smtp-Source: AGHT+IEm1C+q5VBTLJtmEHl1DOierpDVMd8JumWXihkjRGVvvOkHDdFk87bvaJzvMLIaJl5jv7RBkg== X-Received: by 2002:a05:6a00:b41:b0:6c3:5ffb:b63e with SMTP id p1-20020a056a000b4100b006c35ffbb63emr17773015pfo.33.1703162089309; Thu, 21 Dec 2023 04:34:49 -0800 (PST) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id e17-20020a630f11000000b005c6007a13b5sm1420653pgl.25.2023.12.21.04.34.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:34:48 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 21 Dec 2023 09:34:52 -0300 Message-ID: <20231221123453.8125-2-jamrial@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221123453.8125-1-jamrial@gmail.com> References: <20231221123453.8125-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] avutil/hwcontext_d3d12va: fix indentation in d3d12va_transfer_data() 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 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: Removes -Wmisleading-indentation warnings. Signed-off-by: James Almer --- libavutil/hwcontext_d3d12va.c | 54 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/libavutil/hwcontext_d3d12va.c b/libavutil/hwcontext_d3d12va.c index 052de3472f..4ce29f250c 100644 --- a/libavutil/hwcontext_d3d12va.c +++ b/libavutil/hwcontext_d3d12va.c @@ -410,35 +410,35 @@ static int d3d12va_transfer_data(AVHWFramesContext *ctx, AVFrame *dst, linesizes[i] = FFALIGN(frame->width * (frames_hwctx->format == DXGI_FORMAT_P010 ? 2 : 1), D3D12_TEXTURE_DATA_PITCH_ALIGNMENT); - staging_y_location = (D3D12_TEXTURE_COPY_LOCATION) { - .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT, - .PlacedFootprint = { - .Offset = 0, - .Footprint = { - .Format = frames_hwctx->format == DXGI_FORMAT_P010 ? - DXGI_FORMAT_R16_UNORM : DXGI_FORMAT_R8_UNORM, - .Width = ctx->width, - .Height = ctx->height, - .Depth = 1, - .RowPitch = linesizes[0], - }, + staging_y_location = (D3D12_TEXTURE_COPY_LOCATION) { + .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT, + .PlacedFootprint = { + .Offset = 0, + .Footprint = { + .Format = frames_hwctx->format == DXGI_FORMAT_P010 ? + DXGI_FORMAT_R16_UNORM : DXGI_FORMAT_R8_UNORM, + .Width = ctx->width, + .Height = ctx->height, + .Depth = 1, + .RowPitch = linesizes[0], }, - }; - - staging_uv_location = (D3D12_TEXTURE_COPY_LOCATION) { - .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT, - .PlacedFootprint = { - .Offset = s->luma_component_size, - .Footprint = { - .Format = frames_hwctx->format == DXGI_FORMAT_P010 ? - DXGI_FORMAT_R16G16_UNORM : DXGI_FORMAT_R8G8_UNORM, - .Width = ctx->width >> 1, - .Height = ctx->height >> 1, - .Depth = 1, - .RowPitch = linesizes[0], - }, + }, + }; + + staging_uv_location = (D3D12_TEXTURE_COPY_LOCATION) { + .Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT, + .PlacedFootprint = { + .Offset = s->luma_component_size, + .Footprint = { + .Format = frames_hwctx->format == DXGI_FORMAT_P010 ? + DXGI_FORMAT_R16G16_UNORM : DXGI_FORMAT_R8G8_UNORM, + .Width = ctx->width >> 1, + .Height = ctx->height >> 1, + .Depth = 1, + .RowPitch = linesizes[0], }, - }; + }, + }; DX_CHECK(ID3D12CommandAllocator_Reset(s->command_allocator)); -- 2.43.0 _______________________________________________ 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".