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_
27 #include <dxgiformat.h>
29 #include <vlc_common.h>
30 #include <vlc_fourcc.h>
35 DXGI_FORMAT formatTexture
;
37 uint8_t bitsPerChannel
;
38 uint8_t widthDenominator
;
39 uint8_t heightDenominator
;
44 extern const char *DxgiFormatToStr(DXGI_FORMAT format
);
45 extern vlc_fourcc_t
DxgiFormatFourcc(DXGI_FORMAT format
);
46 extern const d3d_format_t
*GetRenderFormatList(void);
47 extern void DxgiFormatMask(DXGI_FORMAT format
, video_format_t
*);
49 typedef struct ID3D11Device ID3D11Device
;
50 bool isXboxHardware(ID3D11Device
*d3ddev
);
51 IDXGIAdapter
*D3D11DeviceAdapter(ID3D11Device
*d3ddev
);
53 #endif /* include-guard */