qt: playlist: use item title if available
[vlc.git] / modules / video_output / win32 / d3d11_quad.h
blob07c3a0c9d9aaf659657b6dca28f2ab8b3faf62b7
1 /*****************************************************************************
2 * d3d11_quad.h: Direct3D11 Quad handling
3 *****************************************************************************
4 * Copyright (C) 2017-2018 VLC authors and VideoLAN
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_D3D11_QUAD_H
24 #define VLC_D3D11_QUAD_H
26 #include "../../video_chroma/d3d11_fmt.h"
27 #include "d3d11_shaders.h"
29 #define PS_CONST_LUMI_BOUNDS 0
30 #define VS_CONST_VIEWPOINT 1
32 typedef bool (*d3d11_select_plane_t)(void *opaque, size_t plane_index, ID3D11RenderTargetView **);
34 void D3D11_RenderQuad(d3d11_device_t *, d3d11_quad_t *, d3d11_vertex_shader_t *,
35 ID3D11ShaderResourceView *resourceViews[DXGI_MAX_SHADER_VIEW],
36 d3d11_select_plane_t selectPlane, void *selectOpaque);
38 int D3D11_AllocateQuad(vlc_object_t *, d3d11_device_t *, video_projection_mode_t, d3d11_quad_t *);
39 #define D3D11_AllocateQuad(a,b,c,d) D3D11_AllocateQuad(VLC_OBJECT(a),b,c,d)
41 void D3D11_ReleaseQuad(d3d11_quad_t *);
43 int D3D11_SetupQuad(vlc_object_t *, d3d11_device_t *, const video_format_t *, d3d11_quad_t *,
44 const display_info_t *);
45 #define D3D11_SetupQuad(a,b,c,d,e) D3D11_SetupQuad(VLC_OBJECT(a),b,c,d,e)
47 bool D3D11_UpdateQuadPosition( vlc_object_t *, d3d11_device_t *, d3d11_quad_t *,
48 const RECT *output, video_orientation_t );
49 #define D3D11_UpdateQuadPosition(a,b,c,d,e) D3D11_UpdateQuadPosition(VLC_OBJECT(a),b,c,d,e)
51 void D3D11_UpdateViewport(d3d11_quad_t *, const RECT *, const d3d_format_t *display);
53 void D3D11_UpdateQuadOpacity(vlc_object_t *, d3d11_device_t *, d3d11_quad_t *, float opacity);
54 #define D3D11_UpdateQuadOpacity(a,b,c,d) D3D11_UpdateQuadOpacity(VLC_OBJECT(a),b,c,d)
56 void D3D11_UpdateQuadLuminanceScale(vlc_object_t *, d3d11_device_t *, d3d11_quad_t *, float luminanceScale);
57 #define D3D11_UpdateQuadLuminanceScale(a,b,c,d) D3D11_UpdateQuadLuminanceScale(VLC_OBJECT(a),b,c,d)
59 void D3D11_UpdateViewpoint(vlc_object_t *, d3d11_device_t *, d3d11_quad_t *, const vlc_viewpoint_t*, float sar);
60 #define D3D11_UpdateViewpoint(a,b,c,d,e) D3D11_UpdateViewpoint(VLC_OBJECT(a),b,c,d,e)
62 #endif /* VLC_D3D11_QUAD_H */