ANativeWindow_Buffer

#include <native_window.h>

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

void * ANativeWindow_Buffer::bits

The actual bits.

format

int32_t ANativeWindow_Buffer::format

The format of the buffer. One of AHardwareBuffer_Format.

height

int32_t ANativeWindow_Buffer::height

The number of pixels that are shown vertically.

reserved

uint32_t ANativeWindow_Buffer::reserved[6]

Do not touch.

stride

int32_t ANativeWindow_Buffer::stride

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

This may be >= width.

width

int32_t ANativeWindow_Buffer::width

The number of pixels that are shown horizontally.