Commit Graph

363 Commits

Author SHA1 Message Date
twinaphex
b578ffb056 Create RARCH_DISPLAY_CTL_HW_CONTEXT_GET 2016-02-07 21:53:38 +01:00
twinaphex
a2b2869ca6 Cleanup 2016-02-07 21:46:57 +01:00
twinaphex
0584b3c072 Create RARCH_DISPLAY_CTL_IS_HW_CONTEXT 2016-02-07 20:32:53 +01:00
twinaphex
d8bfa7ab7d Rename RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT to RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT 2016-02-07 20:15:58 +01:00
twinaphex
702d9d4728 Create RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT 2016-02-07 20:11:16 +01:00
twinaphex
3e69eb5a8e video_driver_unset_callback - have destroy_callback do this
implicitly
2016-02-07 20:06:07 +01:00
twinaphex
71a8098037 Refactor RARCH_DISPLAY_CTL_HAS_WINDOWED 2016-02-07 01:11:07 +01:00
twinaphex
b8b7ee530c Respect 80-char width limits 2016-02-06 21:51:37 +01:00
Twinaphex
9c9fdcfa58 (iOS 9) Fix iOS 9 build 2016-02-04 20:17:26 +01:00
Twinaphex
667e33e82b Buildfix 2016-02-04 20:05:20 +01:00
twinaphex
12d1de4232 Set these static variables initially to NULL 2016-02-04 20:03:31 +01:00
twinaphex
2cbb18b4e4 Create RARCH_DRIVER_CTL_FIND_INDEX 2016-02-01 13:15:53 +01:00
twinaphex
6151e1c425 Create CORE_CTL_RETRO_CTX_FRAME_CB and CORE_CTL_RETRO_CTX_POLL_CB 2016-01-27 04:49:38 +01:00
twinaphex
372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
twinaphex
3a16acaa40 Prevent crash 2016-01-14 07:23:11 +01:00
twinaphex
54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex
08e73ea144 Non_HAVE_MEN codepath fixes - courtesy of Karlton
t # Please enter the commit message for your changes. Lines starting
2016-01-02 02:54:20 +01:00
twinaphex
4fd5f1cad6 Improvements to unsetting the video driver callback 2015-12-28 21:34:57 +01:00
twinaphex
dde68de466 Add new environment callback - RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2015-12-25 19:29:14 +01:00
twinaphex
7df9efbffe Get rid of some warnings when compiling for targets with no threaded
video defined
2015-12-25 07:11:34 +01:00
twinaphex
fd644cb434 Revert "(video_driver.c) Ensure input is initialized in init_video_input"
This reverts commit d191e29d1b.
2015-12-20 23:52:50 +01:00
Higor Eurípedes
d191e29d1b (video_driver.c) Ensure input is initialized in init_video_input 2015-12-20 19:12:14 -03:00
twinaphex
aa488dda25 Create video driver poke load_texture / unload_texture 2015-12-20 20:52:23 +01:00
twinaphex
fc6505e408 Get rid of rarch_system_info_get_ptr 2015-12-10 22:30:25 +01:00
twinaphex
b4fa396470 Cleanup 2015-12-09 10:14:43 +01:00
twinaphex
7bdc1da676 Create RARCH_DISPLAY_CTL_CACHED_FRAME_SET_PTR 2015-12-09 10:13:48 +01:00
twinaphex
ebb0906f3e Remove function 2015-12-09 09:10:21 +01:00
twinaphex
39499eb107 Silence 'cannot be reached' warnings 2015-12-08 19:54:36 +01:00
Higor Eurípedes
c257374dcd (video_context_driver) Make better use of the data argument in context calls 2015-12-08 12:19:08 -03:00
twinaphex
9736713279 Create RARCH_DISPLAY_CTL_SET_STUB_FRAME/UNSET_STUB_FRAME 2015-12-07 21:16:15 +01:00
twinaphex
2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
twinaphex
0df4a8d2a2 Put message from video_driver_frame into separate buffer
temporarily for safety
2015-12-07 10:59:53 +01:00
twinaphex
c6359d6dbc Divorce g_system_menu from global state 2015-12-06 19:31:47 +01:00
twinaphex
0389474e12 Set dangling pointers to null for RARCH_DISPLAY_CTL_DEINIT
and RARCH_AUDIO_CTL_DEINIT too
2015-12-06 18:15:00 +01:00
twinaphex
a3033c2f66 Buildfixes 2015-12-06 18:12:49 +01:00
twinaphex
09ecd04d67 Make sure gpu_buffer is set back to NULL too upon
RARCH_DISPLAY_CTL_DESTROY time
2015-12-06 17:33:51 +01:00
twinaphex
0f9ba38b76 Make sure all static local variables from video_driver_ctl are
reset back to default state after calling RARCH_DISPLAY_CTL_DESTROY
2015-12-06 17:17:08 +01:00
twinaphex
083d1fec69 video_driver_frame - cleanup 2015-12-06 15:24:06 +01:00
twinaphex
bbbf6513fd move gpu record buffer to video_driver.c 2015-12-06 15:22:20 +01:00
twinaphex
a23598e553 Don't need video_driver_current_msg anymore 2015-12-06 14:32:30 +01:00
twinaphex
39e9d5c5ba Start cutting down on the size of some char local variables - we
don't need PATH_MAX_LENGTH for everything
2015-12-06 13:28:20 +01:00
twinaphex
ec1b1c3e54 Header cleanups 2015-12-05 21:23:34 +01:00
twinaphex
5b939e810c Get rid of driver_t and driver_get_ptr 2015-12-05 16:54:13 +01:00
twinaphex
18ab12ab83 Take header include record_driver.h out of driver.h 2015-12-05 16:12:29 +01:00
twinaphex
7e5d1f3117 Only rcord_driver.c references driver->recording now 2015-12-05 16:05:35 +01:00
twinaphex
89721b8837 Start creating font driver wrapper functions 2015-12-05 10:31:15 +01:00
twinaphex
ddff980161 Remove unused variables 2015-12-05 09:14:55 +01:00
twinaphex
f72b69e8d1 Don't include frontend_driver.h as part of driver.h 2015-12-05 09:09:31 +01:00
twinaphex
c36b8e1ae9 Don't touch driver->frontend outside of frontend_driver.c anymore 2015-12-05 08:52:01 +01:00
twinaphex
351077dc78 Start reimplementing audio/video/input driver deiniting 2015-12-04 14:30:59 +01:00
twinaphex
bdb54d91b7 video_monitor_fps_statistics - small cleanup 2015-12-04 08:27:47 +01:00
twinaphex
6411a7d0d9 Make video_driver_current_msg smaller 2015-12-04 08:04:16 +01:00
twinaphex
830b3052e5 (video_driver.c) Turn some variables into local static variables 2015-12-04 02:29:49 +01:00
Higor Eurípedes
f63468d783 Fix some potential null derefs 2015-12-03 21:22:29 -03:00
twinaphex
faa02023ce Check if video_driver_poke is false 2015-12-04 01:21:46 +01:00
twinaphex
d8b9be9349 Put parentheses around earlier check 2015-12-04 00:26:53 +01:00
twinaphex
b6be555809 Try to prevent a NULL pointer dereference for global - rename video_frame 2015-12-04 00:26:09 +01:00
twinaphex
eda3e06898 (GL) Guard against possible segfaults in threaded video mode 2015-12-03 23:16:37 +01:00
twinaphex
9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex
4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex
d1486464fe Turn video_driver_frame_filter into a static function 2015-11-30 07:22:08 +01:00
twinaphex
2fe9ef736c (video_driver.c) Uniquely namespace static variables 2015-11-30 07:14:23 +01:00
twinaphex
ef591c416d Cleanups 2015-11-29 23:01:37 +01:00
twinaphex
b62738465c Move video_active to gfx/video_driver.c 2015-11-29 21:38:47 +01:00
twinaphex
e2fde41124 Move current_msg to gfx/video_driver.c 2015-11-29 20:59:52 +01:00
twinaphex
a2399bc2cf Remove unused variable 2015-11-29 20:45:23 +01:00
twinaphex
1d44619f41 Move driver->video_cache_context and driver->video_cache_context_ack
to video_driver.c
2015-11-29 20:44:51 +01:00
twinaphex
df9f0fc6d1 Move input_data_own to input_driver.c 2015-11-29 20:34:35 +01:00
twinaphex
c62150c2a2 Move video_data_own to gfx/video_driver.c 2015-11-29 20:23:16 +01:00
twinaphex
d181870caa No more dependency on driver_t for driver->input 2015-11-29 19:18:59 +01:00
twinaphex
7a6f444823 No more references to driver->input from outside 2015-11-29 19:07:02 +01:00
twinaphex
778c9a25d6 Remove another call to driver->input from inside 2015-11-29 19:03:23 +01:00
twinaphex
4ff0492e3d Start getting rid of driver->input references 2015-11-29 19:02:27 +01:00
twinaphex
d76d9d3411 (gfx/video_driver.c) Cleanup 2015-11-29 18:30:22 +01:00
twinaphex
be0857aff2 move video_pixel_scalar struct to gfx/video_driver.c 2015-11-29 01:48:25 +01:00
twinaphex
0044d853f8 Move display_type / display_window etc all to gfx/video_driver.c -
no more dependencies on driver_t
2015-11-29 01:12:49 +01:00
twinaphex
3b903adea1 Don't try to access driver->input_data from outside 2015-11-28 18:26:05 +01:00
twinaphex
be71e654f3 Create input_driver_get_data_ptr 2015-11-28 18:22:05 +01:00
twinaphex
2b4464f30a Implement RARCH_MAIN_CTL_IS_IDLE 2015-11-28 15:03:59 +01:00
twinaphex
73ce9c0d23 Add another RARCH_INPUT_CTL_* command 2015-11-25 18:33:18 +01:00
twinaphex
14b2b8ada7 Start creating input_driver_ctl 2015-11-25 18:21:21 +01:00
twinaphex
d2f771440b Contain driver->input_data usage 2015-11-25 03:15:22 +01:00
twinaphex
1639f27f8c Turn check_block_hotkey into static function 2015-11-24 01:54:21 +01:00
twinaphex
cd51102281 Remove scaler_get_ptr 2015-11-24 01:50:37 +01:00
twinaphex
51291067eb video_driver.c) Turn some functions static 2015-11-24 01:30:52 +01:00
twinaphex
1f62479068 move video_frame to gfx/video_driver.c 2015-11-24 01:26:59 +01:00
twinaphex
deae90e0bb Move use_rgba to gfx/video_driver.c - get rid of driver_t dependencies 2015-11-23 23:58:40 +01:00
twinaphex
06035875f2 Divorce video poke interface from driver_t struct 2015-11-23 22:14:39 +01:00
twinaphex
3ad52d0f08 Cleanups 2015-11-23 21:00:56 +01:00
twinaphex
1f87c6d9e2 Dont' try to access driver->video_context_data directly 2015-11-23 20:56:06 +01:00
Higor Eurípedes
d665f8a6e4 (video_driver) Fix crash in deinit_pixel_converter() 2015-11-23 15:46:56 -03:00
twinaphex
24400bc797 Divorce audio_data from driver_t struct 2015-11-23 19:22:18 +01:00
twinaphex
be7e4ad96b Move video_data to gfx/video_driver.c 2015-11-23 19:05:49 +01:00
twinaphex
389cf13db5 Don't reference driver->video_data outside of gx/video_driver.c anymore 2015-11-23 18:51:04 +01:00
twinaphex
f9671333b5 Divorce current_video from driver_t struct 2015-11-23 18:11:17 +01:00
twinaphex
672a3814d6 Create more VIDEO_DRIVER_CTL_ commands 2015-11-23 18:01:46 +01:00
twinaphex
c7dc83533a Add param to video_driver_get_ptr for grabbing the nonthreaded
data state
2015-11-23 16:06:09 +01:00
twinaphex
76d6378228 Go through video_driver_ctl 2015-11-23 15:01:49 +01:00
twinaphex
2e3c3d25b5 Create video_driver_frame 2015-11-23 14:53:56 +01:00
twinaphex
9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex
1bd2f2eb8a Make some pixel converter functions static 2015-11-23 13:05:50 +01:00
twinaphex
beceaf4a8c Merge video_pixel_converter.c with video_driver.c 2015-11-23 13:02:24 +01:00
twinaphex
86504392b9 Create video_driver_set_size 2015-11-23 12:54:15 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex
aa1e8dc543 (menu_setting) Refactor this macro mess 2015-11-21 16:32:22 +01:00
twinaphex
892d99b3a6 Add SET_VIEWPORT_CONFIG 2015-11-21 13:13:55 +01:00
twinaphex
806c124eae Merge video_viewport.c and video_driver.c 2015-11-21 13:01:23 +01:00
twinaphex
5b44bd0e6b Create RARCH_DISPLAY_CTL_SET_VIEWPORT_SQUARE_PIXEL 2015-11-21 12:54:38 +01:00
twinaphex
4db97a5300 Refactor away video_viewport_set_core 2015-11-21 12:45:36 +01:00
twinaphex
cf5533ccaa Refactor away video_viewport_reset_custom 2015-11-21 12:36:14 +01:00
twinaphex
96b41b43b5 Cleanups 2015-11-21 11:24:02 +01:00
twinaphex
e3c09e00b9 Move setting to function 2015-11-21 11:22:34 +01:00
twinaphex
35aef696ea Add RARCH_DISPLAY_CTL_DEFAULT_SETTINGS 2015-11-21 09:55:08 +01:00
twinaphex
30272dd413 Create 'loading and saving' of configuration settings for video_driver_ctl 2015-11-21 09:32:51 +01:00
twinaphex
de44911092 (PS3/Wii) Reimplement video resolution code 2015-11-21 08:39:46 +01:00
twinaphex
1c3ba76e67 (PS3) Implement video output get prev/next 2015-11-21 07:54:42 +01:00
twinaphex
e09e65e348 Add RARCH_DISPLAY_CTL_GET_NEXT_VIDEO_OUT 2015-11-20 21:20:12 +01:00
twinaphex
b4ec6e208b init_video_input - cleanups 2015-11-20 21:07:15 +01:00
twinaphex
d0ccd7065b Turn another function static 2015-11-20 21:05:27 +01:00
twinaphex
daadda2553 Cleanups 2015-11-20 20:49:49 +01:00
twinaphex
a7cb5b8491 Add RARCH_DISPLAY_CTL_MONITOR_ADJUST_SYSTEM_RATES 2015-11-20 20:47:47 +01:00
twinaphex
e1ac9aed6b Add RARCH_DISPLAY_CTL_MONITOR_RESET 2015-11-20 19:04:00 +01:00
twinaphex
21cabec759 Add RARCH_DISPLAY_CTL_{DEINIT/INIT} 2015-11-20 19:01:13 +01:00
twinaphex
c1fa9dc637 Make video_driver_unset_callback a static function 2015-11-20 18:57:04 +01:00
twinaphex
0184a73de8 init_video - cleanups 2015-11-20 18:55:01 +01:00
twinaphex
ddde58caf4 Simplify video_driver_get_ptr 2015-11-20 18:50:21 +01:00
twinaphex
9ea40f5e32 Add RARCH_DISPLAY_CTL_SET_ASPECT_RATIO 2015-11-20 18:45:00 +01:00
twinaphex
5069d71295 Cleanups 2015-11-20 18:41:25 +01:00
twinaphex
225757f68c video_driver_ctl - cleanups 2015-11-20 18:38:08 +01:00
twinaphex
993da04e3b simplify video_driver_ctl 2015-11-20 18:36:38 +01:00
twinaphex
d68401aa4d Add RARCH_DISPLAY_CTL_SHOW_MOUSE 2015-11-20 17:26:39 +01:00
twinaphex
3e986f9562 Add RARCH_DISPLAY_CTL_SET_NONBLOCK_STATE 2015-11-20 17:22:19 +01:00
twinaphex
a59ca22457 Add RARCH_DISPLAY_CTL_FIND_DRIVER 2015-11-20 15:59:01 +01:00
twinaphex
704ff87b12 Add RARCH_DISPLAY_CTL_APPLY_STATE_CHANGES 2015-11-20 15:55:09 +01:00
twinaphex
09dda14549 Add RARCH_DISPLAY_CTL_READ_VIEWPORT 2015-11-20 15:41:20 +01:00
twinaphex
d8eeed0a9e Add RARCH_DISPLAY_CTL_CACHED_FRAME_HAS_VALID_FB 2015-11-20 15:38:10 +01:00
twinaphex
6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
twinaphex
0d5c928e68 video_driver_ctl - avoid cost of grabbing the pointers for actions
where it isn't needed
2015-11-20 15:25:25 +01:00
twinaphex
5cea9e5400 Add RARCH_DISPLAY_CTL_IS_FOCUSED 2015-11-20 15:24:24 +01:00
twinaphex
7141210d15 Remove video_driver_has_windowed 2015-11-20 15:20:54 +01:00
twinaphex
ba4643a7c1 Add RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT 2015-11-20 15:16:58 +01:00
twinaphex
7b1f57b1cd Add RARCH_DISPLAY_CTL_FRAME_FILTER_ALIVE 2015-11-20 15:14:12 +01:00
twinaphex
533b799692 Create video_driver_ctl and get rid of video_driver_get_frame_count 2015-11-20 15:08:27 +01:00
aliaspider
75b57f1567 (3ds) improve performance when using video filters by allocating the
output buffer in linear memory.
2015-11-12 14:57:26 +01:00
twinaphex
db5d8d248b Create new char_list_new_special 2015-10-26 19:41:20 +01:00
twinaphex
b9febe2eed Add void pointer to string_list_special_new 2015-10-26 19:16:20 +01:00
twinaphex
aff1bd03de Code deduplication 2015-10-26 08:55:59 +01:00
twinaphex
02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
Alcaro
4746e44992 Add this to the list. 2015-10-11 16:30:17 +02:00