2023-09-22 13:22:57 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2023 Biswapriyo Nath
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
import "oaidl.idl";
|
|
|
|
import "ocidl.idl";
|
|
|
|
import "dxgicommon.idl";
|
|
|
|
import "d3d12.idl";
|
|
|
|
|
2023-09-23 04:47:27 +00:00
|
|
|
typedef enum D3D12_VIDEO_FIELD_TYPE
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_FIELD_TYPE_NONE = 0,
|
|
|
|
D3D12_VIDEO_FIELD_TYPE_INTERLACED_TOP_FIELD_FIRST = 1,
|
|
|
|
D3D12_VIDEO_FIELD_TYPE_INTERLACED_BOTTOM_FIELD_FIRST = 2,
|
|
|
|
} D3D12_VIDEO_FIELD_TYPE;
|
|
|
|
|
|
|
|
typedef enum D3D12_VIDEO_FRAME_STEREO_FORMAT
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_FRAME_STEREO_FORMAT_NONE = 0,
|
|
|
|
D3D12_VIDEO_FRAME_STEREO_FORMAT_MONO = 1,
|
|
|
|
D3D12_VIDEO_FRAME_STEREO_FORMAT_HORIZONTAL = 2,
|
|
|
|
D3D12_VIDEO_FRAME_STEREO_FORMAT_VERTICAL = 3,
|
|
|
|
D3D12_VIDEO_FRAME_STEREO_FORMAT_SEPARATE = 4,
|
|
|
|
} D3D12_VIDEO_FRAME_STEREO_FORMAT;
|
|
|
|
|
2023-09-22 13:22:57 +00:00
|
|
|
typedef enum D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_NONE = 0,
|
|
|
|
D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_FIELD_BASED = 1,
|
|
|
|
} D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE;
|
|
|
|
|
2023-09-23 04:47:27 +00:00
|
|
|
typedef enum D3D12_FEATURE_VIDEO
|
|
|
|
{
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_SUPPORT = 0,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_PROFILES = 1,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_FORMATS = 2,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_CONVERSION_SUPPORT = 3,
|
|
|
|
D3D12_FEATURE_VIDEO_PROCESS_SUPPORT = 5,
|
|
|
|
D3D12_FEATURE_VIDEO_PROCESS_MAX_INPUT_STREAMS = 6,
|
|
|
|
D3D12_FEATURE_VIDEO_PROCESS_REFERENCE_INFO = 7,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE = 8,
|
|
|
|
D3D12_FEATURE_VIDEO_PROCESSOR_SIZE = 9,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_PROFILE_COUNT = 10,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_FORMAT_COUNT = 11,
|
|
|
|
D3D12_FEATURE_VIDEO_ARCHITECTURE = 17,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_HISTOGRAM = 18,
|
|
|
|
D3D12_FEATURE_VIDEO_FEATURE_AREA_SUPPORT = 19,
|
|
|
|
D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR = 20,
|
|
|
|
D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_SIZE = 21,
|
|
|
|
D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_COUNT = 22,
|
|
|
|
D3D12_FEATURE_VIDEO_EXTENSION_COMMANDS = 23,
|
|
|
|
D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT = 24,
|
|
|
|
D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETERS = 25,
|
|
|
|
D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SUPPORT = 26,
|
|
|
|
D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SIZE = 27,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODE_PROTECTED_RESOURCES = 28,
|
|
|
|
D3D12_FEATURE_VIDEO_PROCESS_PROTECTED_RESOURCES = 29,
|
|
|
|
D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES = 30,
|
|
|
|
D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE1 = 31,
|
|
|
|
D3D12_FEATURE_VIDEO_PROCESSOR_SIZE1 = 32,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_CODEC = 33,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_PROFILE_LEVEL = 34,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT = 35,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION = 36,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_INPUT_FORMAT = 37,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_RATE_CONTROL_MODE = 38,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_INTRA_REFRESH_MODE = 39,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE = 40,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_HEAP_SIZE = 41,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT = 42,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_SUPPORT = 43,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT = 44,
|
|
|
|
D3D12_FEATURE_VIDEO_ENCODER_RESOURCE_REQUIREMENTS = 45,
|
|
|
|
} D3D12_FEATURE_VIDEO;
|
|
|
|
|
2023-09-22 13:22:57 +00:00
|
|
|
typedef enum D3D12_BITSTREAM_ENCRYPTION_TYPE
|
|
|
|
{
|
|
|
|
D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE = 0,
|
|
|
|
} D3D12_BITSTREAM_ENCRYPTION_TYPE;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_CONFIGURATION
|
|
|
|
{
|
|
|
|
GUID DecodeProfile;
|
|
|
|
D3D12_BITSTREAM_ENCRYPTION_TYPE BitstreamEncryption;
|
|
|
|
D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE InterlaceType;
|
|
|
|
} D3D12_VIDEO_DECODE_CONFIGURATION;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODER_DESC
|
|
|
|
{
|
|
|
|
UINT NodeMask;
|
|
|
|
D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
|
|
|
|
} D3D12_VIDEO_DECODER_DESC;
|
|
|
|
|
2023-09-23 04:47:27 +00:00
|
|
|
typedef struct D3D12_VIDEO_DECODER_HEAP_DESC
|
|
|
|
{
|
|
|
|
UINT NodeMask;
|
|
|
|
D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
|
|
|
|
UINT DecodeWidth;
|
|
|
|
UINT DecodeHeight;
|
|
|
|
DXGI_FORMAT Format;
|
|
|
|
DXGI_RATIONAL FrameRate;
|
|
|
|
UINT BitRate;
|
|
|
|
UINT MaxDecodePictureBufferCount;
|
|
|
|
} D3D12_VIDEO_DECODER_HEAP_DESC;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_SIZE_RANGE
|
|
|
|
{
|
|
|
|
UINT MaxWidth;
|
|
|
|
UINT MaxHeight;
|
|
|
|
UINT MinWidth;
|
|
|
|
UINT MinHeight;
|
|
|
|
} D3D12_VIDEO_SIZE_RANGE;
|
|
|
|
|
|
|
|
typedef enum D3D12_VIDEO_PROCESS_FILTER
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS = 0,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_CONTRAST = 1,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_HUE = 2,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_SATURATION = 3,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION = 4,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT = 5,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING = 6,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT = 7,
|
|
|
|
} D3D12_VIDEO_PROCESS_FILTER;
|
|
|
|
|
|
|
|
typedef enum D3D12_VIDEO_PROCESS_FILTER_FLAGS
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_NONE = 0x0,
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_BRIGHTNESS = (1 << D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_CONTRAST = (1 << D3D12_VIDEO_PROCESS_FILTER_CONTRAST),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_HUE = (1 << D3D12_VIDEO_PROCESS_FILTER_HUE),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_SATURATION = (1 << D3D12_VIDEO_PROCESS_FILTER_SATURATION),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_NOISE_REDUCTION = (1 << D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_EDGE_ENHANCEMENT = (1 << D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_ANAMORPHIC_SCALING = (1 << D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING),
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAG_STEREO_ADJUSTMENT = (1 << D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT),
|
|
|
|
} D3D12_VIDEO_PROCESS_FILTER_FLAGS;
|
|
|
|
cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FILTER_FLAGS);")
|
|
|
|
|
|
|
|
typedef enum D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_NONE = 0x0,
|
|
|
|
D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_BOB = 0x1,
|
|
|
|
D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_CUSTOM = 0x80000000,
|
|
|
|
} D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS;
|
|
|
|
cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS );")
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_PROCESS_LUMA_KEY
|
|
|
|
{
|
|
|
|
BOOL Enable;
|
|
|
|
FLOAT Lower;
|
|
|
|
FLOAT Upper;
|
|
|
|
} D3D12_VIDEO_PROCESS_LUMA_KEY;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC
|
|
|
|
{
|
|
|
|
DXGI_FORMAT Format;
|
|
|
|
DXGI_COLOR_SPACE_TYPE ColorSpace;
|
|
|
|
DXGI_RATIONAL SourceAspectRatio;
|
|
|
|
DXGI_RATIONAL DestinationAspectRatio;
|
|
|
|
DXGI_RATIONAL FrameRate;
|
|
|
|
D3D12_VIDEO_SIZE_RANGE SourceSizeRange;
|
|
|
|
D3D12_VIDEO_SIZE_RANGE DestinationSizeRange;
|
|
|
|
BOOL EnableOrientation;
|
|
|
|
D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterFlags;
|
|
|
|
D3D12_VIDEO_FRAME_STEREO_FORMAT StereoFormat;
|
|
|
|
D3D12_VIDEO_FIELD_TYPE FieldType;
|
|
|
|
D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode;
|
|
|
|
BOOL EnableAlphaBlending;
|
|
|
|
D3D12_VIDEO_PROCESS_LUMA_KEY LumaKey;
|
|
|
|
UINT NumPastFrames;
|
|
|
|
UINT NumFutureFrames;
|
|
|
|
BOOL EnableAutoProcessing;
|
|
|
|
} D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC;
|
|
|
|
|
|
|
|
typedef enum D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE = 0,
|
|
|
|
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND = 1,
|
|
|
|
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION = 2,
|
|
|
|
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
|
|
|
|
} D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC
|
|
|
|
{
|
|
|
|
DXGI_FORMAT Format;
|
|
|
|
DXGI_COLOR_SPACE_TYPE ColorSpace;
|
|
|
|
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE AlphaFillMode;
|
|
|
|
UINT AlphaFillModeSourceStreamIndex;
|
|
|
|
FLOAT BackgroundColor[4];
|
|
|
|
DXGI_RATIONAL FrameRate;
|
|
|
|
BOOL EnableStereo;
|
|
|
|
} D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC;
|
|
|
|
|
2023-09-23 04:47:50 +00:00
|
|
|
[
|
|
|
|
uuid(0946b7c9-ebf6-4047-bb73-8683e27dbb1f),
|
|
|
|
object,
|
|
|
|
local,
|
|
|
|
pointer_default(unique)
|
|
|
|
]
|
|
|
|
interface ID3D12VideoDecoderHeap : ID3D12Pageable
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_DECODER_HEAP_DESC GetDesc();
|
|
|
|
}
|
|
|
|
|
2023-09-23 04:47:27 +00:00
|
|
|
[
|
|
|
|
uuid(1f052807-0b46-4acc-8a89-364f793718a4),
|
|
|
|
object,
|
|
|
|
local,
|
|
|
|
pointer_default(unique)
|
|
|
|
]
|
|
|
|
interface ID3D12VideoDevice : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT CheckFeatureSupport(
|
|
|
|
D3D12_FEATURE_VIDEO feature_video,
|
|
|
|
[in, out] void *feature_support_data,
|
|
|
|
UINT feature_support_data_size
|
|
|
|
);
|
|
|
|
|
|
|
|
HRESULT CreateVideoDecoder(
|
|
|
|
[in] const D3D12_VIDEO_DECODER_DESC *desc,
|
|
|
|
[in] REFIID riid,
|
|
|
|
[out, iid_is(riid)] void **video_decoder
|
|
|
|
);
|
|
|
|
|
|
|
|
HRESULT CreateVideoDecoderHeap(
|
|
|
|
[in] const D3D12_VIDEO_DECODER_HEAP_DESC *video_decoder_heap_desc,
|
|
|
|
[in] REFIID riid,
|
|
|
|
[out, iid_is(riid)] void **video_decoder_heap
|
|
|
|
);
|
|
|
|
|
|
|
|
HRESULT CreateVideoProcessor(
|
|
|
|
UINT node_mask,
|
|
|
|
[in] const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *output_stream_desc,
|
|
|
|
[in] UINT input_stream_descs_count,
|
|
|
|
[in] const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *input_stream_descs,
|
|
|
|
[in] REFIID riid,
|
|
|
|
[out, iid_is(riid)] void **video_processor
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-09-22 13:22:57 +00:00
|
|
|
[
|
|
|
|
uuid(c59b6bdc-7720-4074-a136-17a156037470),
|
|
|
|
object,
|
|
|
|
local,
|
|
|
|
pointer_default(unique)
|
|
|
|
]
|
|
|
|
interface ID3D12VideoDecoder : ID3D12Pageable
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_DECODER_DESC GetDesc();
|
|
|
|
}
|
2023-09-23 04:49:22 +00:00
|
|
|
|
|
|
|
typedef enum D3D12_VIDEO_DECODE_ARGUMENT_TYPE
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_DECODE_ARGUMENT_TYPE_PICTURE_PARAMETERS = 0,
|
|
|
|
D3D12_VIDEO_DECODE_ARGUMENT_TYPE_INVERSE_QUANTIZATION_MATRIX = 1,
|
|
|
|
D3D12_VIDEO_DECODE_ARGUMENT_TYPE_SLICE_CONTROL = 2,
|
|
|
|
D3D12_VIDEO_DECODE_ARGUMENT_TYPE_MAX_VALID = 3,
|
|
|
|
} D3D12_VIDEO_DECODE_ARGUMENT_TYPE;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_FRAME_ARGUMENT
|
|
|
|
{
|
|
|
|
D3D12_VIDEO_DECODE_ARGUMENT_TYPE Type;
|
|
|
|
UINT Size;
|
|
|
|
void *pData;
|
|
|
|
} D3D12_VIDEO_DECODE_FRAME_ARGUMENT;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_REFERENCE_FRAMES
|
|
|
|
{
|
|
|
|
UINT NumTexture2Ds;
|
|
|
|
ID3D12Resource **ppTexture2Ds;
|
|
|
|
UINT *pSubresources;
|
|
|
|
ID3D12VideoDecoderHeap **ppHeaps;
|
|
|
|
} D3D12_VIDEO_DECODE_REFERENCE_FRAMES;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM
|
|
|
|
{
|
|
|
|
ID3D12Resource *pBuffer;
|
|
|
|
UINT64 Offset;
|
|
|
|
UINT64 Size;
|
|
|
|
} D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS
|
|
|
|
{
|
|
|
|
BOOL Enable;
|
|
|
|
ID3D12Resource *pReferenceTexture2D;
|
|
|
|
UINT ReferenceSubresource;
|
|
|
|
DXGI_COLOR_SPACE_TYPE OutputColorSpace;
|
|
|
|
DXGI_COLOR_SPACE_TYPE DecodeColorSpace;
|
|
|
|
} D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS
|
|
|
|
{
|
|
|
|
UINT NumFrameArguments;
|
|
|
|
D3D12_VIDEO_DECODE_FRAME_ARGUMENT FrameArguments[D3D12_VIDEO_DECODE_MAX_ARGUMENTS];
|
|
|
|
D3D12_VIDEO_DECODE_REFERENCE_FRAMES ReferenceFrames;
|
|
|
|
D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM CompressedBitstream;
|
|
|
|
ID3D12VideoDecoderHeap *pHeap;
|
|
|
|
} D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS;
|
|
|
|
|
|
|
|
typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS
|
|
|
|
{
|
|
|
|
ID3D12Resource *pOutputTexture2D;
|
|
|
|
UINT OutputSubresource;
|
|
|
|
D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS ConversionArguments;
|
|
|
|
} D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS;
|
|
|
|
|
|
|
|
[
|
|
|
|
uuid(3b60536e-ad29-4e64-a269-f853837e5e53),
|
|
|
|
object,
|
|
|
|
local,
|
|
|
|
pointer_default(unique)
|
|
|
|
]
|
|
|
|
interface ID3D12VideoDecodeCommandList : ID3D12CommandList
|
|
|
|
{
|
|
|
|
HRESULT Close();
|
|
|
|
|
|
|
|
HRESULT Reset(
|
|
|
|
[in] ID3D12CommandAllocator *allocator
|
|
|
|
);
|
|
|
|
|
|
|
|
void ClearState();
|
|
|
|
|
|
|
|
void ResourceBarrier(
|
|
|
|
[in] UINT barriers_count,
|
|
|
|
[in] const D3D12_RESOURCE_BARRIER *barriers
|
|
|
|
);
|
|
|
|
|
|
|
|
void DiscardResource(
|
|
|
|
[in] ID3D12Resource *resource,
|
|
|
|
[in, optional] const D3D12_DISCARD_REGION *region
|
|
|
|
);
|
|
|
|
|
|
|
|
void BeginQuery(
|
|
|
|
[in] ID3D12QueryHeap *query_heap,
|
|
|
|
[in] D3D12_QUERY_TYPE type,
|
|
|
|
[in] UINT index
|
|
|
|
);
|
|
|
|
|
|
|
|
void EndQuery(
|
|
|
|
[in] ID3D12QueryHeap *query_heap,
|
|
|
|
[in] D3D12_QUERY_TYPE type,
|
|
|
|
[in] UINT index
|
|
|
|
);
|
|
|
|
|
|
|
|
void ResolveQueryData(
|
|
|
|
[in] ID3D12QueryHeap *query_heap,
|
|
|
|
[in] D3D12_QUERY_TYPE type,
|
|
|
|
[in] UINT start_index,
|
|
|
|
[in] UINT queries_count,
|
|
|
|
[in] ID3D12Resource *destination_buffer,
|
|
|
|
[in] UINT64 aligned_destination_buffer_offset
|
|
|
|
);
|
|
|
|
|
|
|
|
void SetPredication(
|
|
|
|
[in, optional] ID3D12Resource *buffer,
|
|
|
|
[in] UINT64 aligned_buffer_offset,
|
|
|
|
[in] D3D12_PREDICATION_OP operation
|
|
|
|
);
|
|
|
|
|
|
|
|
void SetMarker(
|
|
|
|
[in] UINT metadata,
|
|
|
|
[in] const void *data,
|
|
|
|
[in] UINT size
|
|
|
|
);
|
|
|
|
|
|
|
|
void BeginEvent(
|
|
|
|
[in] UINT metadata,
|
|
|
|
[in] const void *data,
|
|
|
|
[in] UINT size
|
|
|
|
);
|
|
|
|
|
|
|
|
void EndEvent();
|
|
|
|
|
|
|
|
void DecodeFrame(
|
|
|
|
[in] ID3D12VideoDecoder *decoder,
|
|
|
|
[in] const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *output_arguments,
|
|
|
|
[in] const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *input_arguments
|
|
|
|
);
|
|
|
|
|
|
|
|
void WriteBufferImmediate(
|
|
|
|
[in] UINT count,
|
|
|
|
[in] const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *params,
|
|
|
|
[in, optional] const D3D12_WRITEBUFFERIMMEDIATE_MODE *modes
|
|
|
|
);
|
|
|
|
}
|