avutil/hwcontext_d3d12va: fix indentation in d3d12va_transfer_data()
Removes -Wmisleading-indentation warnings. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
4d78a9ac14
commit
4ea6121f18
@ -401,35 +401,35 @@ static int d3d12va_transfer_data(AVHWFramesContext *ctx, AVFrame *dst,
|
|||||||
linesizes[i] = FFALIGN(frame->width * (frames_hwctx->format == DXGI_FORMAT_P010 ? 2 : 1),
|
linesizes[i] = FFALIGN(frame->width * (frames_hwctx->format == DXGI_FORMAT_P010 ? 2 : 1),
|
||||||
D3D12_TEXTURE_DATA_PITCH_ALIGNMENT);
|
D3D12_TEXTURE_DATA_PITCH_ALIGNMENT);
|
||||||
|
|
||||||
staging_y_location = (D3D12_TEXTURE_COPY_LOCATION) {
|
staging_y_location = (D3D12_TEXTURE_COPY_LOCATION) {
|
||||||
.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
|
.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
|
||||||
.PlacedFootprint = {
|
.PlacedFootprint = {
|
||||||
.Offset = 0,
|
.Offset = 0,
|
||||||
.Footprint = {
|
.Footprint = {
|
||||||
.Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
|
.Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
|
||||||
DXGI_FORMAT_R16_UNORM : DXGI_FORMAT_R8_UNORM,
|
DXGI_FORMAT_R16_UNORM : DXGI_FORMAT_R8_UNORM,
|
||||||
.Width = ctx->width,
|
.Width = ctx->width,
|
||||||
.Height = ctx->height,
|
.Height = ctx->height,
|
||||||
.Depth = 1,
|
.Depth = 1,
|
||||||
.RowPitch = linesizes[0],
|
.RowPitch = linesizes[0],
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
|
};
|
||||||
|
|
||||||
staging_uv_location = (D3D12_TEXTURE_COPY_LOCATION) {
|
staging_uv_location = (D3D12_TEXTURE_COPY_LOCATION) {
|
||||||
.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
|
.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
|
||||||
.PlacedFootprint = {
|
.PlacedFootprint = {
|
||||||
.Offset = s->luma_component_size,
|
.Offset = s->luma_component_size,
|
||||||
.Footprint = {
|
.Footprint = {
|
||||||
.Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
|
.Format = frames_hwctx->format == DXGI_FORMAT_P010 ?
|
||||||
DXGI_FORMAT_R16G16_UNORM : DXGI_FORMAT_R8G8_UNORM,
|
DXGI_FORMAT_R16G16_UNORM : DXGI_FORMAT_R8G8_UNORM,
|
||||||
.Width = ctx->width >> 1,
|
.Width = ctx->width >> 1,
|
||||||
.Height = ctx->height >> 1,
|
.Height = ctx->height >> 1,
|
||||||
.Depth = 1,
|
.Depth = 1,
|
||||||
.RowPitch = linesizes[0],
|
.RowPitch = linesizes[0],
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
|
};
|
||||||
|
|
||||||
DX_CHECK(ID3D12CommandAllocator_Reset(s->command_allocator));
|
DX_CHECK(ID3D12CommandAllocator_Reset(s->command_allocator));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user