自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
preview_stream_ops 结构参考
#include <
camera.h
>
|
int(*
|
dequeue_buffer
)(struct
preview_stream_ops
*w, buffer_handle_t **buffer, int *stride)
|
|
int(*
|
enqueue_buffer
)(struct
preview_stream_ops
*w, buffer_handle_t *buffer)
|
|
int(*
|
cancel_buffer
)(struct
preview_stream_ops
*w, buffer_handle_t *buffer)
|
|
int(*
|
set_buffer_count
)(struct
preview_stream_ops
*w, int count)
|
|
int(*
|
set_buffers_geometry
)(struct
preview_stream_ops
*pw, int w, int h, int format)
|
|
int(*
|
set_crop
)(struct
preview_stream_ops
*w, int left, int top, int right, int bottom)
|
|
int(*
|
set_usage
)(struct
preview_stream_ops
*w, int usage)
|
|
int(*
|
set_swap_interval
)(struct
preview_stream_ops
*w, int interval)
|
|
int(*
|
get_min_undequeued_buffer_count
)(const struct
preview_stream_ops
*w, int *count)
|
|
int(*
|
lock_buffer
)(struct
preview_stream_ops
*w, buffer_handle_t *buffer)
|
|
int(*
|
set_timestamp
)(struct
preview_stream_ops
*w, int64_t timestamp)
|
|
int(* dequeue_buffer)(struct
preview_stream_ops
*w, buffer_handle_t **buffer, int *stride)
|
此结构体的文档是根据以下文件生成的:
-
hardware/libhardware/include/hardware/
camera.h
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[null,null,["最后更新时间 (UTC):2025-03-26。"],[],[]]