ANativeWindow_Buffer

Struct that represents a windows buffer.

Summary

A pointer can be obtained using ANativeWindow_lock().

Public attributes

bits
void *
The actual bits.
format
int32_t
The format of the buffer. One of AHardwareBuffer_Format.
height
int32_t
The number of pixels that are shown vertically.
reserved[6]
uint32_t
Do not touch.
stride
int32_t
The number of pixels that a line in the buffer takes in memory.
width
int32_t
The number of pixels that are shown horizontally.

Public attributes

bits

Declared in android/native_window.h
void * ANativeWindow_Buffer::bits

The actual bits.

format

Declared in android/native_window.h
int32_t ANativeWindow_Buffer::format

The format of the buffer. One of AHardwareBuffer_Format.

height

Declared in android/native_window.h
int32_t ANativeWindow_Buffer::height

The number of pixels that are shown vertically.

reserved

Declared in android/native_window.h
uint32_t ANativeWindow_Buffer::reserved[6]

Do not touch.

stride

Declared in android/native_window.h
int32_t ANativeWindow_Buffer::stride

The number of pixels that a line in the buffer takes in memory.

This may be >= width.

width

Declared in android/native_window.h
int32_t ANativeWindow_Buffer::width

The number of pixels that are shown horizontally.