access: srt: add support stream encryption
[vlc.git] / modules / video_chroma / dxgi_fmt.h
blob71282655b32cfc6f4ef74919109e51aa641b8045
1 /*****************************************************************************
2 * dxgi_fmt.h : DXGI helper calls
3 *****************************************************************************
4 * Copyright © 2015 VLC authors, VideoLAN and VideoLabs
6 * Authors: Steve Lhomme <robux4@gmail.com>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #ifndef VLC_VIDEOCHROMA_DXGI_FMT_H_
24 #define VLC_VIDEOCHROMA_DXGI_FMT_H_
26 #include <dxgi.h>
27 #include <dxgiformat.h>
29 #include <vlc_common.h>
30 #include <vlc_fourcc.h>
32 #define GPU_MANUFACTURER_AMD 0x1002
33 #define GPU_MANUFACTURER_NVIDIA 0x10DE
34 #define GPU_MANUFACTURER_VIA 0x1106
35 #define GPU_MANUFACTURER_INTEL 0x8086
36 #define GPU_MANUFACTURER_S3 0x5333
37 #define GPU_MANUFACTURER_QUALCOMM 0x4D4F4351
39 #define D3D11_MAX_SHADER_VIEW 3
41 typedef struct
43 const char *name;
44 DXGI_FORMAT formatTexture;
45 vlc_fourcc_t fourcc;
46 uint8_t bitsPerChannel;
47 uint8_t widthDenominator;
48 uint8_t heightDenominator;
49 DXGI_FORMAT resourceFormat[D3D11_MAX_SHADER_VIEW];
50 } d3d_format_t;
52 const char *DxgiFormatToStr(DXGI_FORMAT format);
53 vlc_fourcc_t DxgiFormatFourcc(DXGI_FORMAT format);
54 const d3d_format_t *GetRenderFormatList(void);
55 void DxgiFormatMask(DXGI_FORMAT format, video_format_t *);
56 const char *DxgiVendorStr(int gpu_vendor);
58 #endif /* include-guard */