Remove unneeded files
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
[device]
|
||||
make=Motorola
|
||||
model=Osprey
|
||||
|
||||
[rear]
|
||||
driver=imx214
|
||||
media-driver=qcom-camss
|
||||
capture-width=4096
|
||||
capture-height=2304
|
||||
capture-rate=30
|
||||
capture-fmt=RGGB10P
|
||||
preview-width=4096
|
||||
preview-height=2304
|
||||
preview-rate=30
|
||||
preview-fmt=RGGB10P
|
||||
rotate=270
|
||||
media-links=msm_csiphy0:1->msm_csid0:0,msm_csid0:1->msm_ispif0:0,msm_ispif0:1->msm_vfe0_rdi0:0
|
@@ -1,44 +0,0 @@
|
||||
[device]
|
||||
make=PINE64
|
||||
model=PinePhone
|
||||
|
||||
[rear]
|
||||
driver=ov5640
|
||||
media-driver=sun6i-csi
|
||||
capture-width=2592
|
||||
capture-height=1944
|
||||
capture-rate=15
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=720
|
||||
preview-rate=30
|
||||
preview-fmt=BGGR8
|
||||
rotate=270
|
||||
colormatrix=1.384,-0.3203,-0.0124,-0.2728,1.049,0.1556,-0.0506,0.2577,0.8050
|
||||
forwardmatrix=0.7331,0.1294,0.1018,0.3039,0.6698,0.0263,0.0002,0.0556,0.7693
|
||||
blacklevel=3
|
||||
whitelevel=255
|
||||
focallength=3.33
|
||||
cropfactor=10.81
|
||||
fnumber=3.0
|
||||
iso-min=100
|
||||
iso-max=64000
|
||||
flash-path=/sys/class/leds/white:flash
|
||||
|
||||
[front]
|
||||
driver=gc2145
|
||||
media-driver=sun6i-csi
|
||||
capture-width=1280
|
||||
capture-height=960
|
||||
capture-rate=60
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=960
|
||||
preview-rate=60
|
||||
preview-fmt=BGGR8
|
||||
rotate=90
|
||||
mirrored=true
|
||||
focallength=2.6
|
||||
cropfactor=12.7
|
||||
fnumber=2.8
|
||||
flash-display=true
|
@@ -1,44 +0,0 @@
|
||||
[device]
|
||||
make=PINE64
|
||||
model=PinePhone
|
||||
|
||||
[rear]
|
||||
driver=ov5640
|
||||
media-driver=sun6i-csi
|
||||
capture-width=2592
|
||||
capture-height=1944
|
||||
capture-rate=15
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=720
|
||||
preview-rate=30
|
||||
preview-fmt=BGGR8
|
||||
rotate=270
|
||||
colormatrix=1.384,-0.3203,-0.0124,-0.2728,1.049,0.1556,-0.0506,0.2577,0.8050
|
||||
forwardmatrix=0.7331,0.1294,0.1018,0.3039,0.6698,0.0263,0.0002,0.0556,0.7693
|
||||
blacklevel=3
|
||||
whitelevel=255
|
||||
focallength=3.33
|
||||
cropfactor=10.81
|
||||
fnumber=3.0
|
||||
iso-min=100
|
||||
iso-max=64000
|
||||
flash-path=/sys/class/leds/white:flash
|
||||
|
||||
[front]
|
||||
driver=gc2145
|
||||
media-driver=sun6i-csi
|
||||
capture-width=1280
|
||||
capture-height=960
|
||||
capture-rate=60
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=960
|
||||
preview-rate=60
|
||||
preview-fmt=BGGR8
|
||||
rotate=90
|
||||
mirrored=true
|
||||
focallength=2.6
|
||||
cropfactor=12.7
|
||||
fnumber=2.8
|
||||
flash-display=true
|
@@ -1,45 +0,0 @@
|
||||
[device]
|
||||
make=PINE64
|
||||
model=PinePhone
|
||||
|
||||
[rear]
|
||||
driver=ov5640
|
||||
media-driver=sun6i-csi
|
||||
capture-width=2592
|
||||
capture-height=1944
|
||||
capture-rate=15
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=720
|
||||
preview-rate=30
|
||||
preview-fmt=BGGR8
|
||||
rotate=270
|
||||
mirrored=false
|
||||
colormatrix=1.384,-0.3203,-0.0124,-0.2728,1.049,0.1556,-0.0506,0.2577,0.8050
|
||||
forwardmatrix=0.7331,0.1294,0.1018,0.3039,0.6698,0.0263,0.0002,0.0556,0.7693
|
||||
blacklevel=3
|
||||
whitelevel=255
|
||||
focallength=3.33
|
||||
cropfactor=10.81
|
||||
fnumber=3.0
|
||||
iso-min=100
|
||||
iso-max=64000
|
||||
flash-path=/sys/class/leds/white:flash
|
||||
|
||||
[front]
|
||||
driver=gc2145
|
||||
media-driver=sun6i-csi
|
||||
capture-width=1280
|
||||
capture-height=960
|
||||
capture-rate=60
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=960
|
||||
preview-rate=60
|
||||
preview-fmt=BGGR8
|
||||
rotate=90
|
||||
mirrored=true
|
||||
focallength=2.6
|
||||
cropfactor=12.7
|
||||
fnumber=2.8
|
||||
flash-display=true
|
@@ -1,42 +0,0 @@
|
||||
[device]
|
||||
make=PINE64
|
||||
model=PinePhone
|
||||
|
||||
[rear]
|
||||
driver=ov5640
|
||||
media-driver=sun6i-csi
|
||||
capture-width=2592
|
||||
capture-height=1944
|
||||
capture-rate=10
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=720
|
||||
preview-rate=20
|
||||
preview-fmt=BGGR8
|
||||
rotate=270
|
||||
colormatrix=1.384,-0.3203,-0.0124,-0.2728,1.049,0.1556,-0.0506,0.2577,0.8050
|
||||
forwardmatrix=0.7331,0.1294,0.1018,0.3039,0.6698,0.0263,0.0002,0.0556,0.7693
|
||||
blacklevel=3
|
||||
whitelevel=255
|
||||
focallength=3.33
|
||||
cropfactor=10.81
|
||||
fnumber=3.0
|
||||
iso-min=100
|
||||
iso-max=64000
|
||||
|
||||
[front]
|
||||
driver=gc2145
|
||||
media-driver=sun6i-csi
|
||||
capture-width=1280
|
||||
capture-height=960
|
||||
capture-rate=30
|
||||
capture-fmt=BGGR8
|
||||
preview-width=1280
|
||||
preview-height=960
|
||||
preview-rate=30
|
||||
preview-fmt=BGGR8
|
||||
rotate=90
|
||||
mirrored=true
|
||||
focallength=2.6
|
||||
cropfactor=12.7
|
||||
fnumber=2.8
|
@@ -1,17 +0,0 @@
|
||||
[device]
|
||||
make=Xiaomi
|
||||
model=Mi Note 2
|
||||
|
||||
[rear]
|
||||
driver=imx318
|
||||
media-driver=qcom-camss
|
||||
capture-width=3840
|
||||
capture-height=2160
|
||||
capture-rate=30
|
||||
capture-fmt=RGGB10P
|
||||
preview-width=3840
|
||||
preview-height=2160
|
||||
preview-rate=30
|
||||
preview-fmt=RGGB10P
|
||||
rotate=90
|
||||
media-links=imx318 3-001a:0->msm_csiphy0:0,msm_csiphy0:1->msm_csid0:0,msm_csid0:1->msm_ispif0:0,msm_ispif0:1->msm_vfe0_rdi0:0
|
@@ -1,3 +0,0 @@
|
||||
add_library(megapixels SHARED libmegapixels/findconfig.c ../include/libmegapixels.h)
|
||||
set_target_properties(megapixels PROPERTIES VERSION 1)
|
||||
set_target_properties(megapixels PROPERTIES SOVERSION 1)
|
@@ -1,60 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef SYSCONFDIR
|
||||
#define SYSCONFDIR "/etc"
|
||||
#endif
|
||||
#ifndef DATADIR
|
||||
#define DATADIR "/usr/share"
|
||||
#endif
|
||||
|
||||
static int
|
||||
find_device_by_model(char *conffile, char *model)
|
||||
{
|
||||
// Check config/%model.conf in the current working directory
|
||||
sprintf(conffile, "config/%s.conf", model);
|
||||
if (access(conffile, F_OK) != -1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Check user overridden /etc/megapixels/config/%model.conf
|
||||
sprintf(conffile, "%s/megapixels/config/%s.conf", SYSCONFDIR, model);
|
||||
if (access(conffile, F_OK) != -1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Check packaged /usr/share/megapixels/config/%model.conf
|
||||
sprintf(conffile, "%s/megapixels/config/%s.conf", DATADIR, model);
|
||||
if (access(conffile, F_OK) != -1) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
libmegapixels_find_config(char *configfile)
|
||||
{
|
||||
char model[512];
|
||||
FILE *fp;
|
||||
|
||||
if (access("/proc/device-tree/compatible", F_OK) == -1) {
|
||||
return -1;
|
||||
}
|
||||
fp = fopen("/proc/device-tree/compatible", "r");
|
||||
char *modelptr = model;
|
||||
while (1) {
|
||||
int c = fgetc(fp);
|
||||
if (c == EOF) {
|
||||
*(modelptr) = '\0';
|
||||
return find_device_by_model(configfile, model);
|
||||
}
|
||||
*(modelptr++) = (char)c;
|
||||
if (c == 0) {
|
||||
if (find_device_by_model(configfile, model)) {
|
||||
return 0;
|
||||
}
|
||||
modelptr = model;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
@@ -1,24 +0,0 @@
|
||||
libmegapixels_sources = [
|
||||
'findconfig.c',
|
||||
]
|
||||
|
||||
|
||||
# We use libtool-version numbers because it's easier to understand.
|
||||
# Before making a release, the libruntime_so_*
|
||||
# numbers should be modified. The components are of the form C:R:A.
|
||||
# a) If binary compatibility has been broken (eg removed or changed interfaces)
|
||||
# change to C+1:0:0.
|
||||
# b) If interfaces have been changed or added, but binary compatibility has
|
||||
# been preserved, change to C+1:0:A+1
|
||||
# c) If the interface is the same as the previous version, change to C:R+1:A
|
||||
libmegapixels_lt_c=1
|
||||
libmegapixels_lt_r=0
|
||||
libmegapixels_lt_a=0
|
||||
|
||||
libmegapixels_so_version = '@0@.@1@.@2@'.format((libmegapixels_lt_c - libmegapixels_lt_a),
|
||||
libmegapixels_lt_a,
|
||||
libmegapixels_lt_r)
|
||||
|
||||
libmegapixels = shared_library('libmegapixels', libmegapixels_sources,
|
||||
version:libmegapixels_so_version,
|
||||
install: true)
|
Reference in New Issue
Block a user