Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LongChair/b97cf74cf66d72c4fdb518bee12663df to your computer and use it in GitHub Desktop.
Save LongChair/b97cf74cf66d72c4fdb518bee12663df to your computer and use it in GitHub Desktop.
typedef struct AVDRMLayerDescriptor {
/**
* Format of the layer (DRM_FORMAT_*).
*
* Note that this can be a multiple-plane format such as NV12:
* if so, this structure is only describes one plane of the
* image.
*/
uint32_t format;
/**
* Index of the object containing this layer in the objects
* array of the enclosing frame descriptor.
*/
int object_index;
/**
* Planes offsets within that layer.
*/
ptrdiff_t offsets[AV_NUM_DATA_POINTERS];
/**
* Pitches (linesize) of this layer.
*/
ptrdiff_t pitches[AV_NUM_DATA_POINTERS];
} AVDRMLayerDescriptor;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment