Skip to content

Commit

Permalink
Move camera drivers to camera/drivers/
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jan 12, 2015
1 parent 33cdd16 commit 444adb6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ OBJ += frontend/frontend.o \
audio/resamplers/nearest.o \
audio/resamplers/cc_resampler.o \
location/nulllocation.o \
camera/nullcamera.o \
camera/drivers/nullcamera.o \
gfx/drivers/nullgfx.o \
audio/drivers/nullaudio.o \
input/drivers/nullinput.o \
Expand Down Expand Up @@ -177,7 +177,7 @@ ifeq ($(HAVE_EMSCRIPTEN), 1)
OBJ += frontend/platform/platform_emscripten.o \
input/drivers/rwebinput_input.o \
audio/drivers/rwebaudio.o \
camera/rwebcam.o
camera/drivers/rwebcam.o
endif

# Audio
Expand Down Expand Up @@ -601,7 +601,7 @@ endif
# Camera

ifeq ($(HAVE_V4L2),1)
OBJ += camera/video4linux2.o
OBJ += camera/drivers/video4linux2.o
DEFINES += -DHAVE_V4L2
endif

Expand Down
2 changes: 1 addition & 1 deletion camera/android.c → camera/drivers/android.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#include <glsym/glsym.h>
#include "../driver.h"
#include "../../driver.h"

typedef struct android_camera
{
Expand Down
2 changes: 1 addition & 1 deletion camera/nullcamera.c → camera/drivers/nullcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/

#include "../driver.h"
#include "../../driver.h"

static void *nullcamera_init(const char *device, uint64_t caps,
unsigned width, unsigned height)
Expand Down
4 changes: 2 additions & 2 deletions camera/rwebcam.c → camera/drivers/rwebcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* If not, see <http://www.gnu.org/licenses/>.
*/

#include "../driver.h"
#include "../emscripten/RWebCam.h"
#include "../../driver.h"
#include "../../emscripten/RWebCam.h"

static void *rwebcam_init(const char *device, uint64_t caps,
unsigned width, unsigned height)
Expand Down
2 changes: 1 addition & 1 deletion camera/video4linux2.c → camera/drivers/video4linux2.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string.h>
#include <assert.h>
#include <stddef.h>
#include "../performance.h"
#include "../../performance.h"
#include <retro_miscellaneous.h>
#include <gfx/scaler/scaler.h>
#include <stdlib.h>
Expand Down
8 changes: 4 additions & 4 deletions griffin/griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,16 @@ AUDIO RESAMPLER
CAMERA
============================================================ */
#if defined(ANDROID)
#include "../camera/android.c"
#include "../camera/drivers/android.c"
#elif defined(EMSCRIPTEN)
#include "../camera/rwebcam.c"
#include "../camera/drivers/rwebcam.c"
#endif

#ifdef HAVE_V4L2
#include "../camera/video4linux2.c"
#include "../camera/drivers/video4linux2.c"
#endif

#include "../camera/nullcamera.c"
#include "../camera/drivers/nullcamera.c"

/*============================================================
LOCATION
Expand Down

0 comments on commit 444adb6

Please sign in to comment.