Commit Graph

150 Commits

Author SHA1 Message Date
twinaphex
780bf74273 Try to not use glDeleteTextures directly outside 2015-11-09 01:50:05 +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
415176e360 Rfactor camera_driver.c to use string_list_special 2015-10-26 08:42:34 +01:00
twinaphex
02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
twinaphex
ff1078a98b (camera/drivers/video4linux2.c) Use path_is_character_special 2015-09-22 21:16:58 +02:00
twinaphex
83df9e61d0 (V4L2) Silence C89_BUILD - implicit constant conversion overflow warnings 2015-09-22 17:05:09 +02:00
twinaphex
2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex
ded8920a65 Cleanups 2015-09-04 21:13:12 +02:00
twinaphex
be9f2b870a Compile in memmap.c 2015-08-22 18:38:17 +02:00
twinaphex
135ee2f503 Use UINT64_C(1) everywhere instead of 1ULL 2015-07-12 07:53:46 +02:00
twinaphex
fefa500dcf Some C89 build fixes 2015-06-29 21:52:55 +02:00
twinaphex
6392c494e5 (camera_driver.c) Use rarch_system_info_get_ptr 2015-06-25 13:00:35 +02:00
twinaphex
e67f3f246d Rearrange header include dependencies 2015-06-02 17:17:46 +02:00
Twinaphex
68993c1f71 Ifdef AVFoundation and CoreLocation specifically for HAVE_COCOA and/or
HAVE_COCOATOUCH
2015-04-20 14:14:45 +02:00
Twinaphex
10d8d2e8c7 Change HAVE_CAMERA defines to HAVE_AVFOUNDATION 2015-04-20 11:44:28 +02:00
twinaphex
1f7482d833 (Emscripten) Integrate header files into actual drivers 2015-04-19 22:01:56 +02:00
twinaphex
4e912dbae8 Create HAVE_AVFOUNDATION define 2015-04-19 20:38:40 +02:00
Twinaphex
d19eddccb9 Omit HAVE_AVFOUNDATION for OSX port right now 2015-03-31 03:26:23 +02:00
twinaphex
e6f0d366cb Go through global_get_ptr 2015-03-21 04:43:18 +01:00
twinaphex
6cefa69aa4 Go through settings pointer 2015-03-20 19:48:23 +01:00
twinaphex
3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex
761177a885 Update more old code to go through the new wrapper function 2015-03-15 02:59:38 +01:00
twinaphex
00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex
795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
twinaphex
2d35ab7fe1 (Scaler) Try to prevent calling NULL function pointer 2015-02-10 20:31:17 +01:00
twinaphex
3d4be395ef Update camera_driver.c 2015-01-30 07:55:55 +01:00
twinaphex
26ab324727 (OSX 10.6) Fix declaration shadows global variable warnings 2015-01-15 21:10:36 +01:00
twinaphex
6cdaa4e282 (MSVC) Build fixes 2015-01-12 22:47:12 +01:00
twinaphex
1b28a4a498 Cleanups 2015-01-12 21:16:17 +01:00
twinaphex
f45d9efb37 Move camera_driver.c to camera/ 2015-01-12 19:44:29 +01:00
twinaphex
444adb622f Move camera drivers to camera/drivers/ 2015-01-12 19:04:12 +01:00
twinaphex
90076c5fad Start using MAX_PATH_LENGTH - relying on MAX_PATH for 360 can cause
problems because it's defined at '260' and thus too small for some
strings
2015-01-07 20:42:36 +01:00
twinaphex
3692bb2185 Update headers 2015-01-07 18:17:42 +01:00
twinaphex
e9a8573afa Misc. minor cleanups 2014-10-27 04:04:04 +01:00
twinaphex
58f09ce79e Move scaler code over to libretro SDK 2014-10-23 04:34:35 +02:00
twinaphex
81c5019afb Move miscellaneous header over to libretro SDK 2014-10-21 08:39:37 +02:00
twinaphex
7472922ee0 Move compat/ over to libretro SDK 2014-10-21 07:58:58 +02:00
twinaphex
c62d52de0f Start properly implementing libretro SDK for boolean.h include
header, glsym, and rthreads
2014-10-21 05:05:52 +02:00
twinaphex
64e77f1224 (camera) Style nits 2014-09-13 02:27:34 +02:00
twinaphex
75d2e13dcb Make drivers non-const 2014-09-11 07:06:20 +02:00
twinaphex
fe510bca6f Indenting/C-style comments 2014-09-08 17:57:18 +02:00
Lioncash
a7aa077cc6 Remove some unused variables. 2014-09-05 19:27:46 -04:00
twinaphex
f9c0f5ac64 (Camera/Location stub drivers) Changes
(General) Fix some potential uninitialized variables
2014-08-17 06:09:23 +02:00
twinaphex
ab780d22ed (Camera) nullcamera_poll - return false 2014-08-15 21:25:44 +02:00
twinaphex
e1a122843b Add null camera - remove HAVE_CAMERA ifdefs 2014-08-14 02:55:04 +02:00
twinaphex
8193eb4b3d (Android) Input - Move files around 2014-06-10 22:15:23 +02:00
Themaister
f2c78c36e3 [Android] Add support for GLES3 HW render. 2014-04-14 13:17:05 +02:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Themaister
1c9895611b Rework performance interface.
Avoids super-ugly macros and retroarch-ifdefs.
2013-12-18 19:21:56 +01:00
twinaphex
9852c5dc4c Rewrite perf interface - exposes callbacks now for RETRO_PERFORMANCE_INIT/RETRO_PERFORMANCE_START/RETRO_PERFORMANCE_STOP calls without messy, hardcoded preprocessor-dependent variables in macros - will update cores accordingly too 2013-12-18 19:03:08 +01:00
twinaphex
69a67b3df2 Change RARCH_PERFORMANCE_ macro calls to RETRO_PERFORMANCE 2013-12-17 19:14:57 +01:00
twinaphex
977e6a1b52 (iOS) Integrate iOS camera driver into RAGameView.m - CVOpenGLESTextureCacheCreateTextureFromImage keeps failing right now so instancingviewer camera core doesn't yet work 2013-12-01 20:39:06 +01:00
twinaphex
37622eb48d (iOS) Camera - implement most of the code inside RAGameView -
totally untested - C camera driver is now a shim and will just
need to dial into the RAGameView camera driver parts
2013-12-01 19:31:00 +01:00
twinaphex
224c0b4652 (iOS) Flesh out camera driver some more - still no image - have to
generate texture cache in RAGameView.m
2013-12-01 17:06:44 +01:00
twinaphex
624250cc7f (iOS) Camera - add two links for reference 2013-12-01 16:30:18 +01:00
twinaphex
272795ca17 (iOS) Start adding camera code - right now fails at camera_init 2013-12-01 16:14:31 +01:00
twinaphex
cc7cda7252 (iOS) Skeleton camera driver 2013-12-01 14:41:18 +01:00
twinaphex
98d937d9e0 (Android) Camera - avoid potential memory leaks 2013-11-26 21:28:05 +01:00
twinaphex
abdd77e77f (Android) Camera- take out logs 2013-11-25 23:48:50 +01:00
twinaphex
9341f9347a (Android) Camera - don't spam log in android_camera_poll for now 2013-11-25 00:46:43 +01:00
twinaphex
0a779239e3 (Android) Camera - add logs to every JNI call - for 4.4 debugging 2013-11-24 23:48:13 +01:00
twinaphex
7f0aafbcba (Android) Camera update - update onCameraPoll Java function -
remove ret variable - remove FIXME in C camera driver for Android
2013-11-21 15:37:28 +01:00
twinaphex
ac3e17f6d8 (Android) Camera - hoist class variable outside of struct and
only use in init function
2013-11-20 18:01:45 +01:00
twinaphex
bae3bf8393 (Android) Camera - update FIXMEs 2013-11-20 17:57:51 +01:00
Themaister
44937348e8 Start implementing SSE2 conversion of YUV. 2013-11-20 17:39:01 +01:00
Themaister
c4176564c5 Don't use LUT for YUV conversion.
Current C version is just as fast, and doesn't thrash the cache.
~100us per 640x480 webcam frame.
2013-11-20 17:39:00 +01:00
Themaister
9d60b53630 Add perf counter to LUT based YUV conversion. 2013-11-20 17:39:00 +01:00
twinaphex
87421d477c Clean up JNI: (...)
* pthread_key_create is used to set a destructor for every thread
created through jni_thread_getenv
* To grab a JNIEnv pointer - go through jni_thread_getenv
* jni_thread_getenv sets pthread_setspecific for the JNIEnv pointer
to bind destructor
* Reuse activity->vm everywhere instead of creating local pointer
copies
* Don't use DetachCurrentThread outside of platform_android's (new)
jni_thread_destruct function - the destructor will do this for us
now
2013-11-20 17:33:19 +01:00
ToadKing
b6af8b0e92 more camera changes, still no image 2013-11-19 15:13:29 -05:00
ToadKing
894b2870c0 more android camera work. no longer crashes, but still no image 2013-11-19 14:20:29 -05:00
twinaphex
21bc30a44c (Android) Make RetroActivity invoke JNI_OnLoad - grab pointer to
RetroActivity class - try to use from camera/android.c
2013-11-19 14:30:45 +01:00
Themaister
7b8dc09d57 Pass a dummy affine transform for android camera. 2013-11-18 09:32:29 +01:00
twinaphex
c4f389fdb4 (Android) Camera - android_camera_stop - free GL texture 2013-11-18 03:56:22 +01:00
ToadKing
104dafe53f [Android] fill in camera stub functions - needs testing, probably doesn't work yet 2013-11-17 21:48:49 -05:00
twinaphex
8b561a315e (Android) Camera - add FIXMEs 2013-11-18 02:06:27 +01:00
twinaphex
0381cf1ffe (Android) Camera - caps passed to int should contain
RETRO_CAMERA_BUFFER_OPENGL_TEXTURE
2013-11-18 01:55:22 +01:00
twinaphex
1e4e0544bf (Android) Cache JNI environment/pointer to RetroActivity class
inside camera struct - attach thread at init function and detach
thread at free function
2013-11-18 01:47:51 +01:00
twinaphex
43b513b86b (Camera) Cleanup Android camera driver 2013-11-18 00:31:06 +01:00
twinaphex
51891483c4 (Android) Stub android camera C driver - will interface with JNI
functions
2013-11-18 00:28:27 +01:00
Themaister
a824952dec Some V4L2 cleanups.
Avoids global state for buffers, and make processing loop a bit simpler.
2013-11-16 17:31:49 +01:00
ToadKing
be830a0a1c [V4L2] set the frame_raw_cb pitch correctly 2013-11-15 19:38:48 -05:00
ToadKing
8f78112261 [V4L2] more conversion fixes 2013-11-15 19:35:16 -05:00
ToadKing
bc29115692 [V4L2] fix bad poitner arithmetic 2013-11-15 18:30:41 -05:00
ToadKing
e524ee1834 [V4L2] detect core caps correctly 2013-11-15 17:58:01 -05:00
twinaphex
1d067b9148 (V4L2) Check if raw_framebuffer_cb is not NULL 2013-11-15 01:19:54 +01:00
twinaphex
3c70302fb6 (V4L2) Fill in raw_framebuffer code - experimental 2013-11-13 15:36:10 +01:00
ToadKing
aaff8f2648 move prototype camera interface to libretro interface - GL texture only for now 2013-11-12 19:48:36 -05:00
Themaister
dfff94e5a0 Rework camera interface.
Hook up a more proper interface for libretro. Still very experimental.
2013-11-12 16:02:26 +01:00
Themaister
6f09f4b8e0 Stick to mmap() in v4l2.
Avoids really bloated code. Shouldn't become a problem.
2013-11-12 16:02:26 +01:00
twinaphex
c107b06a76 Add RETRO_ENVIRONMENT_SET_CAMERA_RETRIEVE 2013-11-12 12:00:57 +01:00
twinaphex
f8d44c6e60 (Camera) Add camera driver init/deinit when HAVE_CAMERA is defined 2013-11-11 14:26:57 +01:00
twinaphex
9284bb6b59 (camera/v4l2) v4l_init - free v4l object at error 2013-11-11 03:52:07 +01:00
Themaister
270fb50db8 Forgot sizeof in realloc. 2013-11-10 18:08:04 +01:00
Themaister
67f7b34447 Fixup some style nits and cruft. 2013-11-10 18:02:40 +01:00
Themaister
70fcf31fdd Use bool for ready. 2013-11-10 17:47:39 +01:00
twinaphex
fcc4411496 (v4l2 camera) Get rid of warnings 2013-11-10 16:09:22 +01:00
ToadKing
a6024c4efa add width and height retrieval to camera driver 2013-11-09 23:06:58 -05:00
twinaphex
577bf02323 (Camera V4L2) Implement init_userp 2013-11-10 03:27:17 +01:00
twinaphex
fc65ae7709 (Camera) Add preliminary camera interface and preliminary
Video4Linux 2 camera driver implementation - ToadKing can try
to hook into this driver interface now for his WebGL camera driver
2013-11-10 03:16:03 +01:00