-
大小: 9.1MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-10-07
- 语言: Java
- 标签: Snapdragon Camera 骁龙相机
资源简介
Android 8.0 系统自带 高通骁龙相机 SnapdragonCamera
代码片段和文件信息
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
*
*/
#include
#include
#include
#include
#include
#include
#include “mosaic/AlignFeatures.h“
#include “mosaic/Blend.h“
#include “mosaic/Mosaic.h“
#include “mosaic/Log.h“
#define LOG_TAG “FEATURE_MOS_JNI“
#ifdef __cplusplus
extern “C“ {
#endif
#include “mosaic_renderer_jni.h“
char buffer[1024];
const int MAX_frameS = 100;
static double mTx;
int tWidth[NR];
int tHeight[NR];
ImageType tImage[NR][MAX_frameS];// = {{ImageUtils::IMAGE_TYPE_NOIMAGE}}; // YVU24 format image
Mosaic *mosaic[NR] = {NULLNULL};
ImageType resultYVU = ImageUtils::IMAGE_TYPE_NOIMAGE;
ImageType resultBGR = ImageUtils::IMAGE_TYPE_NOIMAGE;
float gTRS[11]; // 9 elements of the transformation 1 for frame-number 1 for alignment error code.
// Variables to keep track of the mosaic computation progress for both LR & HR.
float gProgress[NR];
// Variables to be able to cancel the mosaic computation when the GUI says so.
bool gCancelComputation[NR];
int c;
int width=0 height=0;
int mosaicWidth=0 mosaicHeight=0;
//int blendingType = Blend::BLEND_TYPE_FULL;
//int blendingType = Blend::BLEND_TYPE_CYLPAN;
int blendingType = Blend::BLEND_TYPE_HORZ;
int stripType = Blend::STRIP_TYPE_THIN;
bool high_res = false;
bool quarter_res[NR] = {falsefalse};
float thresh_still[NR] = {5.0f0.0f};
/* return current time in milliseconds*/
#ifndef now_ms
static double
now_ms(void)
{
//struct timespec res;
struct timeval res;
//clock_gettime(CLOCK_REALTIME &res);
gettimeofday(&res NULL);
return 1000.0*res.tv_sec + (double)res.tv_usec/1e3;
}
#endif
static int frame_number_HR = 0;
static int frame_number_LR = 0;
int Init(int mID int nmax)
{
double t0 t1 time_c;
if(mosaic[mID]!=NULL)
{
delete mosaic[mID];
mosaic[mID] = NULL;
}
mosaic[mID] = new Mosaic();
t0 = now_ms();
// When processing higher than 720x480 video process low-res at
// quarter resolution
if(tWidth[LR]>180)
quarter_res[LR] = true;
// Check for initialization and if not initialize
if (!mosaic[mID]->isInitialized())
{
mosaic[mID]->initialize(blendingType stripType tWidth[mID] tHeight[mID]
nmax quarter_res[mID] thresh_still[mID]);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
-rw-r--r-- 3484 2018-04-25 23:23 version.mk
-rw-r--r-- 563 2018-04-25 23:23 project.properties
-rw-r--r-- 781 2018-04-25 23:23 proguard-project.txt
-rwxr-xr-x 1774 2018-04-25 23:23 proguard.flags
-rw-r--r-- 2228 2018-04-25 23:23 CleanSpec.mk
-rwxr-xr-x 9337 2018-04-25 23:23 AndroidManifest.xm
-rw-r--r-- 1472 2018-04-25 23:23 Android.mk
-rw-r--r-- 6059 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\BeautificationFilter.java
-rw-r--r-- 12001 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\BestpictureFilter.java
-rw-r--r-- 5492 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\BlurbusterFilter.java
-rwxr-xr-x 10582 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\ChromaflashFilter.java
-rw-r--r-- 3607 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\ImageFilter.java
-rw-r--r-- 5875 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\OptizoomFilter.java
-rw-r--r-- 6787 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\SharpshooterFilter.java
-rw-r--r-- 6823 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\StillmoreFilter.java
-rw-r--r-- 10307 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\TrackingFocusfr
-rw-r--r-- 12600 2018-04-25 23:23 src\com\android\camera\imageprocessor\filter\UbifocusFilter.java
-rw-r--r-- 1639 2018-04-25 23:23 src\com\android\camera\app\AppManagerFactory.java
-rw-r--r-- 1717 2018-04-25 23:23 src\com\android\camera\app\CameraApp.java
-rw-r--r-- 4716 2018-04-25 23:23 src\com\android\camera\app\OrientationManager.java
-rw-r--r-- 5767 2018-04-25 23:23 src\com\android\camera\app\PlaceholderManager.java
-rw-r--r-- 13402 2018-04-25 23:23 src\com\android\camera\crop\BoundedRect.java
-rw-r--r-- 26920 2018-04-25 23:23 src\com\android\camera\crop\CropActivity.java
-rw-r--r-- 7693 2018-04-25 23:23 src\com\android\camera\crop\CropDrawingUtils.java
-rw-r--r-- 3784 2018-04-25 23:23 src\com\android\camera\crop\CropExtras.java
-rw-r--r-- 9120 2018-04-25 23:23 src\com\android\camera\crop\CropMath.java
-rw-r--r-- 11035 2018-04-25 23:23 src\com\android\camera\crop\Cropob
-rw-r--r-- 12869 2018-04-25 23:23 src\com\android\camera\crop\CropView.java
-rw-r--r-- 5881 2018-04-25 23:23 src\com\android\camera\crop\GeometryMathUtils.java
-rw-r--r-- 15917 2018-04-25 23:23 src\com\android\camera\crop\ImageLoader.java
............此处省略1687个文件信息
- 上一篇:jap+sturs教材管理系统
- 下一篇:javaee图书管理系统85116
相关资源
- Android下使用Camera硬件拍照Demo
- android Camera 系统,自定义相机
- CameraRemoteAPIbeta_SDK_2.40.zip
- spydroid-ipcamera-master.zip
- android Camera源码可用
- Android 自定义相机Camera2 apk
- android 自定义相机,Camera和camera2.Tex
- Android Camera开发一之基础知识
- Android原生Camera2完成预览和拍照
- android studio 调用相机拍照,选择相册
- Android 自定义相机Camera2
- Android系统相机
- OpencvCamera
- dahua_camera.rar
- MyCamera2OpenglesRecord2
- android高效添加水印
- android wifi网络摄像头源代码
- spydroid-ipcamera 实现Android视频实时上传
- android 拍照(调用照相机)
- spydroid-ipcamera最新版源码
- Android camera API Demo
- Android仿微信拍摄、录制视频,以及视
- Android-Camera2api实现点击拍照长按录制
- Android-CameraKit将一个最难的CameraAndro
- Android自定义相机227222
- OV8865 (sensor)camera驱动
- Android调用Camera实现拍照--github地址
- Android USB 摄像头 Camera
- android 自定义相机拍照
- 调用摄像头拍摄一段视频并上传到服
评论
共有 条评论