1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
media / gpu / windows / d3d12_video_decoder_wrapper.h [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_WINDOWS_D3D12_VIDEO_DECODER_WRAPPER_H_
#define MEDIA_GPU_WINDOWS_D3D12_VIDEO_DECODER_WRAPPER_H_
#include <wrl.h>
#include <memory>
#include "media/base/video_decoder_config.h"
#include "media/base/video_types.h"
#include "media/gpu/windows/d3d_com_defs.h"
#include "media/gpu/windows/d3d_video_decoder_wrapper.h"
namespace media {
// A wrapper class for API calls around ID3D12VideoDecoder.
class D3D12VideoDecoderWrapper : public D3DVideoDecoderWrapper {
public:
static std::unique_ptr<D3D12VideoDecoderWrapper> Create(
MediaLog* media_log,
ComD3D12VideoDevice video_device,
VideoDecoderConfig config,
uint8_t bit_depth,
VideoChromaSampling chroma_sampling);
protected:
explicit D3D12VideoDecoderWrapper(MediaLog* media_log);
};
} // namespace media
#endif // MEDIA_GPU_WINDOWS_D3D12_VIDEO_DECODER_WRAPPER_H_