2013-02-23 17:28:22 +00:00
|
|
|
/*
|
|
|
|
* This file is part of mpv.
|
|
|
|
*
|
2017-06-24 14:08:17 +00:00
|
|
|
* mpv 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.
|
2013-02-23 17:28:22 +00:00
|
|
|
*
|
|
|
|
* mpv 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
|
2017-06-24 14:08:17 +00:00
|
|
|
* GNU Lesser General Public License for more details.
|
2013-02-23 17:28:22 +00:00
|
|
|
*
|
2017-06-24 14:08:17 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
|
2013-02-23 17:28:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MPV_MACOSX_APPLICATION
|
|
|
|
#define MPV_MACOSX_APPLICATION
|
|
|
|
|
2017-07-29 13:26:58 +00:00
|
|
|
#include "osdep/macosx_menubar.h"
|
2019-03-29 19:39:42 +00:00
|
|
|
#include "options/m_option.h"
|
2013-02-23 17:28:22 +00:00
|
|
|
|
2020-12-13 16:13:18 +00:00
|
|
|
enum {
|
|
|
|
FRAME_VISIBLE = 0,
|
|
|
|
FRAME_WHOLE,
|
|
|
|
};
|
|
|
|
|
2023-09-30 14:01:04 +00:00
|
|
|
enum {
|
|
|
|
RENDER_TIMER_CALLBACK = 0,
|
|
|
|
RENDER_TIMER_PRECISE,
|
|
|
|
RENDER_TIMER_SYSTEM,
|
|
|
|
};
|
|
|
|
|
2018-06-06 15:04:40 +00:00
|
|
|
struct macos_opts {
|
2019-03-29 19:38:02 +00:00
|
|
|
int macos_title_bar_appearance;
|
|
|
|
int macos_title_bar_material;
|
2019-03-29 19:39:42 +00:00
|
|
|
struct m_color macos_title_bar_color;
|
2018-06-06 15:04:40 +00:00
|
|
|
int macos_fs_animation_duration;
|
2023-02-20 03:32:50 +00:00
|
|
|
bool macos_force_dedicated_gpu;
|
2020-09-15 14:44:12 +00:00
|
|
|
int macos_app_activation_policy;
|
2020-12-13 16:13:18 +00:00
|
|
|
int macos_geometry_calculation;
|
2023-09-30 14:01:04 +00:00
|
|
|
int macos_render_timer;
|
2018-07-22 21:07:32 +00:00
|
|
|
int cocoa_cb_sw_renderer;
|
2023-02-20 03:32:50 +00:00
|
|
|
bool cocoa_cb_10bit_context;
|
2018-06-06 15:04:40 +00:00
|
|
|
};
|
|
|
|
|
2013-03-04 13:23:06 +00:00
|
|
|
// multithreaded wrapper for mpv_main
|
2015-05-02 16:47:57 +00:00
|
|
|
int cocoa_main(int argc, char *argv[]);
|
2013-02-23 17:28:22 +00:00
|
|
|
void cocoa_register_menu_item_action(MPMenuKey key, void* action);
|
|
|
|
|
2020-01-19 15:23:59 +00:00
|
|
|
extern const struct m_sub_options macos_conf;
|
|
|
|
|
2013-02-23 17:28:22 +00:00
|
|
|
#endif /* MPV_MACOSX_APPLICATION */
|