Skip to content
Snippets Groups Projects
Commit df6424d8 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

vout: direct3d: remove the header to share common callbacks for rendering

parent fa8fb1b8
No related branches found
No related tags found
No related merge requests found
/*****************************************************************************
* d3d_render.h: Direct3D Render callbacks
*****************************************************************************
* Copyright (C) 2019 VLC authors and VideoLAN
*
* Authors: Steve Lhomme <robux4@gmail.com>
*
* This program 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 program 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 program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef VLC_D3D_RENDER_H
#define VLC_D3D_RENDER_H
struct device_cfg_t {
bool hardware_decoding;
};
struct device_setup_t {
void *device_context;
};
struct direct3d_cfg_t {
unsigned width;
unsigned height;
unsigned bitdepth;
bool full_range; /** video is full range or studio/limited range */
video_color_space_t colorspace; /** video color space */
video_color_primaries_t primaries; /** video color primaries */
video_transfer_func_t transfer; /** video transfer function */
};
struct output_cfg_t {
int surface_format;
bool full_range; /** video is full range or studio/limited range */
video_color_space_t colorspace; /** video color space */
video_color_primaries_t primaries; /** video color primaries */
video_transfer_func_t transfer; /** video transfer function */
};
typedef bool (*d3d_device_setup_cb)(void** opaque, const struct device_cfg_t*, struct device_setup_t* );
typedef void (*d3d_device_cleanup_cb)(void* opaque);
typedef bool (*d3d_update_output_cb)(void* opaque, const struct direct3d_cfg_t *cfg, struct output_cfg_t *out);
typedef void (*d3d_swap_cb)(void* opaque);
typedef bool (*d3d_start_end_rendering_cb)(void* opaque, bool enter);
#endif /* VLC_D3D_RENDER_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment