Stay organized with collections
Save and categorize content based on your preferences.
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
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]
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[],null,["# ANativeWindow_Buffer Struct Reference\n\nANativeWindow_Buffer\n====================\n\nStruct that represents a windows buffer.\n\nSummary\n-------\n\nA pointer can be obtained using [ANativeWindow_lock()](/ndk/reference/group/a-native-window#group___a_native_window_1ga0b0e3b7d442dee83e1a1b42e5b0caee6).\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| [bits](#struct_a_native_window___buffer_1a1f40a1f617cdef1e7aaa553289e6d8aa) | `void *` The actual bits. |\n| [format](#struct_a_native_window___buffer_1a1e4a110717f1a12db698a225d3ec466b) | `int32_t` The format of the buffer. One of AHardwareBuffer_Format. |\n| [height](#struct_a_native_window___buffer_1a3823b6b1ade65660cc0047e6e5189864) | `int32_t` The number of pixels that are shown vertically. |\n| [reserved](#struct_a_native_window___buffer_1a3baf090d30f64e15b6ed02e6ff607bde)`[6]` | `uint32_t` Do not touch. |\n| [stride](#struct_a_native_window___buffer_1a4e3cb9ba8a51a3ffd0e63262d2e7a9c4) | `int32_t` The number of *pixels* that a line in the buffer takes in memory. |\n| [width](#struct_a_native_window___buffer_1a0d003f83b16f22560f1a4b2caa38753b) | `int32_t` The number of pixels that are shown horizontally. |\n\nPublic attributes\n-----------------\n\n### bits\n\nDeclared in `android/native_window.h` \n\n```scdoc\nvoid * ANativeWindow_Buffer::bits\n``` \nThe actual bits. \n\n### format\n\nDeclared in `android/native_window.h` \n\n```scdoc\nint32_t ANativeWindow_Buffer::format\n``` \nThe format of the buffer. One of AHardwareBuffer_Format. \n\n### height\n\nDeclared in `android/native_window.h` \n\n```scdoc\nint32_t ANativeWindow_Buffer::height\n``` \nThe number of pixels that are shown vertically. \n\n### reserved\n\nDeclared in `android/native_window.h` \n\n```scdoc\nuint32_t ANativeWindow_Buffer::reserved[6]\n``` \nDo not touch. \n\n### stride\n\nDeclared in `android/native_window.h` \n\n```scdoc\nint32_t ANativeWindow_Buffer::stride\n``` \nThe number of *pixels* that a line in the buffer takes in memory.\n\nThis may be \\\u003e= width. \n\n### width\n\nDeclared in `android/native_window.h` \n\n```scdoc\nint32_t ANativeWindow_Buffer::width\n``` \nThe number of pixels that are shown horizontally."]]