#include <errno.h>
#include <pthread.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <camera/NdkCameraDevice.h>
#include <camera/NdkCameraManager.h>
#include <media/NdkImage.h>
#include <media/NdkImageReader.h>
#include "libavformat/avformat.h"
#include "libavformat/demux.h"
#include "libavformat/internal.h"
#include "libavutil/avstring.h"
#include "libavutil/display.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixfmt.h"
#include "libavutil/threadmessage.h"
#include "libavutil/time.h"
Go to the source code of this file.
|
static const char * | camera_status_string (camera_status_t val) |
|
static const char * | media_status_string (media_status_t val) |
|
static const char * | error_state_callback_string (int val) |
|
static void | camera_dev_disconnected (void *context, ACameraDevice *device) |
|
static void | camera_dev_error (void *context, ACameraDevice *device, int error) |
|
static int | open_camera (AVFormatContext *avctx) |
|
static void | get_sensor_orientation (AVFormatContext *avctx) |
|
static void | match_video_size (AVFormatContext *avctx) |
|
static void | match_framerate (AVFormatContext *avctx) |
|
static int | get_image_format (AVFormatContext *avctx, AImage *image) |
|
static void | image_available (void *context, AImageReader *reader) |
|
static int | create_image_reader (AVFormatContext *avctx) |
|
static void | capture_session_closed (void *context, ACameraCaptureSession *session) |
|
static void | capture_session_ready (void *context, ACameraCaptureSession *session) |
|
static void | capture_session_active (void *context, ACameraCaptureSession *session) |
|
static int | create_capture_session (AVFormatContext *avctx) |
|
static int | wait_for_image_format (AVFormatContext *avctx) |
|
static int | add_display_matrix (AVFormatContext *avctx, AVStream *st) |
|
static int | add_video_stream (AVFormatContext *avctx) |
|
static int | android_camera_read_close (AVFormatContext *avctx) |
|
static int | android_camera_read_header (AVFormatContext *avctx) |
|
static int | android_camera_read_packet (AVFormatContext *avctx, AVPacket *pkt) |
|
◆ IMAGE_FORMAT_ANDROID
#define IMAGE_FORMAT_ANDROID AIMAGE_FORMAT_YUV_420_888 |
◆ MAX_BUF_COUNT
◆ VIDEO_STREAM_INDEX
#define VIDEO_STREAM_INDEX 0 |
◆ VIDEO_TIMEBASE_ANDROID
#define VIDEO_TIMEBASE_ANDROID 1000000000 |
◆ RETURN_CASE
◆ RETURN_DEFAULT
◆ OFFSET
◆ DEC
◆ camera_status_string()
static const char* camera_status_string |
( |
camera_status_t |
val | ) |
|
|
static |
◆ media_status_string()
static const char* media_status_string |
( |
media_status_t |
val | ) |
|
|
static |
◆ error_state_callback_string()
static const char* error_state_callback_string |
( |
int |
val | ) |
|
|
static |
◆ camera_dev_disconnected()
static void camera_dev_disconnected |
( |
void * |
context, |
|
|
ACameraDevice * |
device |
|
) |
| |
|
static |
◆ camera_dev_error()
static void camera_dev_error |
( |
void * |
context, |
|
|
ACameraDevice * |
device, |
|
|
int |
error |
|
) |
| |
|
static |
◆ open_camera()
◆ get_sensor_orientation()
◆ match_video_size()
◆ match_framerate()
◆ get_image_format()
◆ image_available()
static void image_available |
( |
void * |
context, |
|
|
AImageReader * |
reader |
|
) |
| |
|
static |
◆ create_image_reader()
◆ capture_session_closed()
static void capture_session_closed |
( |
void * |
context, |
|
|
ACameraCaptureSession * |
session |
|
) |
| |
|
static |
◆ capture_session_ready()
static void capture_session_ready |
( |
void * |
context, |
|
|
ACameraCaptureSession * |
session |
|
) |
| |
|
static |
◆ capture_session_active()
static void capture_session_active |
( |
void * |
context, |
|
|
ACameraCaptureSession * |
session |
|
) |
| |
|
static |
◆ create_capture_session()
◆ wait_for_image_format()
◆ add_display_matrix()
◆ add_video_stream()
◆ android_camera_read_close()
◆ android_camera_read_header()
◆ android_camera_read_packet()
◆ options
◆ android_camera_class
Initial value:= {
.class_name = "android_camera indev",
}
Definition at line 857 of file android_camera.c.
◆ ff_android_camera_demuxer
Initial value:= {
.p.name = "android_camera",
}
Definition at line 865 of file android_camera.c.