camera2_stream_ops结构参考
camera2_stream_ops结构参考
#include < camera2.h >
数据字段 | |
整数(* | dequeue_buffer )(常量结构camera2_stream_ops *w,buffer_handle_t **缓冲区) |
整数(* | enqueue_buffer )(常量结构camera2_stream_ops * w,int64_t时间戳,buffer_handle_t *缓冲区) |
整数(* | cancel_buffer )(const structcamera2_stream_ops *w,buffer_handle_t *buffer) |
整数(* | set_crop )(const structcamera2_stream_ops *w,int左,int顶部,int右,int底部) |
详细说明
输出图像流队列接口。在 allocate_stream() 中向 HAL 设备提供了一组这些方法,并用于与该流的 gralloc 缓冲区队列进行交互。在 allocate_stream 返回之前,它们可能不会被调用。
现场文档
int(* cancel_buffer)(const structcamera2_stream_ops *w, buffer_handle_t *buffer) |
int(* dequeue_buffer)(const structcamera2_stream_ops *w, buffer_handle_t **buffer) |
int(* enqueue_buffer)(const struct camera2_stream_ops *w, int64_t 时间戳, buffer_handle_t *buffer) |
int(* set_crop)(const structcamera2_stream_ops *w, int 左, int 上, int 右, int 下) |
该结构的文档是从以下文件生成的:
- 硬件/libhardware/include/hardware/camera2.h