android camera support
Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
parent
9a51c0b753
commit
4a204587b4
3 changed files with 60 additions and 11 deletions
|
@ -18,11 +18,11 @@ key_camera_exif_model = PRODUCT_BOARD
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
; 1 for single camera, 2 for double camera
|
; 1 for single camera, 2 for double camera
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
number_of_camera = 2
|
number_of_camera = 1
|
||||||
|
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
; CAMERA_FACING_BACK
|
; CAMERA_FACING_BACK
|
||||||
; gc2035
|
; ov5640
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
camera_id = 0
|
camera_id = 0
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ use_builtin_isp = 0
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
; camera orientation (0, 90, 180, 270)
|
; camera orientation (0, 90, 180, 270)
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
camera_orientation = 90
|
camera_orientation = 180
|
||||||
|
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
; driver device name
|
; driver device name
|
||||||
|
@ -55,12 +55,12 @@ camera_device = /dev/video0
|
||||||
device_id = 0
|
device_id = 0
|
||||||
|
|
||||||
used_preview_size = 1
|
used_preview_size = 1
|
||||||
key_support_preview_size = 800x600,640x480,320x240,176x144
|
key_support_preview_size = 1920x1080,1280x720,800x600,640x480,320x240,176x144
|
||||||
key_default_preview_size = 800x600
|
key_default_preview_size = 800x600
|
||||||
|
|
||||||
used_picture_size = 1
|
used_picture_size = 1
|
||||||
key_support_picture_size = 1600x1200,1280x720,800x600,640x480,320x240
|
key_support_picture_size = 2592x1936,2048x1536,1600x1200,1920x1080,1280x720,800x600,640x480,320x240
|
||||||
key_default_picture_size = 1600x1200
|
key_default_picture_size = 2592x1936
|
||||||
|
|
||||||
used_flash_mode = 0
|
used_flash_mode = 0
|
||||||
key_support_flash_mode = on,off,auto
|
key_support_flash_mode = on,off,auto
|
||||||
|
|
|
@ -95,6 +95,30 @@
|
||||||
channels="1" />
|
channels="1" />
|
||||||
</EncoderProfile>
|
</EncoderProfile>
|
||||||
|
|
||||||
|
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
|
||||||
|
<Video codec="h264"
|
||||||
|
bitRate="10000000"
|
||||||
|
width="1280"
|
||||||
|
height="720"
|
||||||
|
frameRate="30" />
|
||||||
|
<Audio codec="aac"
|
||||||
|
bitRate="128000"
|
||||||
|
sampleRate="44100"
|
||||||
|
channels="1" />
|
||||||
|
</EncoderProfile>
|
||||||
|
|
||||||
|
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
|
||||||
|
<Video codec="h264"
|
||||||
|
bitRate="10000000"
|
||||||
|
width="1920"
|
||||||
|
height="1080"
|
||||||
|
frameRate="30" />
|
||||||
|
<Audio codec="aac"
|
||||||
|
bitRate="128000"
|
||||||
|
sampleRate="44100"
|
||||||
|
channels="1" />
|
||||||
|
</EncoderProfile>
|
||||||
|
|
||||||
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
|
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
|
||||||
<Video codec="h264"
|
<Video codec="h264"
|
||||||
bitRate="1500000"
|
bitRate="1500000"
|
||||||
|
@ -108,6 +132,32 @@
|
||||||
channels="1" />
|
channels="1" />
|
||||||
</EncoderProfile>
|
</EncoderProfile>
|
||||||
|
|
||||||
|
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
|
||||||
|
<Video codec="h264"
|
||||||
|
bitRate="10000000"
|
||||||
|
width="1280"
|
||||||
|
height="720"
|
||||||
|
frameRate="30" />
|
||||||
|
<!-- audio setting is ignored -->
|
||||||
|
<Audio codec="aac"
|
||||||
|
bitRate="128000"
|
||||||
|
sampleRate="44100"
|
||||||
|
channels="1" />
|
||||||
|
</EncoderProfile>
|
||||||
|
|
||||||
|
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
|
||||||
|
<Video codec="h264"
|
||||||
|
bitRate="10000000"
|
||||||
|
width="1920"
|
||||||
|
height="1080"
|
||||||
|
frameRate="30" />
|
||||||
|
<!-- audio setting is ignored -->
|
||||||
|
<Audio codec="aac"
|
||||||
|
bitRate="128000"
|
||||||
|
sampleRate="44100"
|
||||||
|
channels="1" />
|
||||||
|
</EncoderProfile>
|
||||||
|
|
||||||
|
|
||||||
<ImageEncoding quality="90" />
|
<ImageEncoding quality="90" />
|
||||||
<ImageEncoding quality="80" />
|
<ImageEncoding quality="80" />
|
||||||
|
|
|
@ -15,7 +15,7 @@ on boot
|
||||||
#insmod gsensor module
|
#insmod gsensor module
|
||||||
#insmod /vendor/modules/bma250.ko
|
#insmod /vendor/modules/bma250.ko
|
||||||
#tp
|
#tp
|
||||||
chown system system /sys/devices/platform/soc/twi0/i2c-0/0-0040/input/input3/runtime_suspend
|
chown system system /sys/devices/platform/soc/twi0/i2c-0/0-0038/input/input3/runtime_suspend
|
||||||
|
|
||||||
### csi module
|
### csi module
|
||||||
insmod /vendor/modules/videobuf2-core.ko
|
insmod /vendor/modules/videobuf2-core.ko
|
||||||
|
@ -23,8 +23,7 @@ on boot
|
||||||
insmod /vendor/modules/videobuf2-v4l2.ko
|
insmod /vendor/modules/videobuf2-v4l2.ko
|
||||||
insmod /vendor/modules/videobuf2-dma-contig.ko
|
insmod /vendor/modules/videobuf2-dma-contig.ko
|
||||||
insmod /vendor/modules/vfe_io.ko
|
insmod /vendor/modules/vfe_io.ko
|
||||||
insmod /vendor/modules/gc2145.ko
|
insmod /vendor/modules/ov5640.ko
|
||||||
insmod /vendor/modules/gc0312.ko
|
|
||||||
insmod /vendor/modules/vfe_v4l2.ko
|
insmod /vendor/modules/vfe_v4l2.ko
|
||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue