RK系列 Android NDK Camera2Api 图像采集

目前Android平台除了V4l2这一种图像采集方式还有Camera2api 这种Android ndk的图像采集方式,这种采集方式比V4l2好用

Camera2Reader.h

/*
 * Copyright 2015 Rockchip Electronics Co. LTD
 *
 * 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.
 */

#ifndef __CAMERA2_READER_H__
#define __CAMERA2_READER_H__
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <time.h&g

猜你喜欢

转载自blog.csdn.net/yinsui1839/article/details/128442093