Skip to content

how to get the file descriptor of the memory object? #6

@blueardour

Description

@blueardour

I emloyed:
private_handle_t * gralloc_handle = reinterpret_cast<private_handle_t*>(const_cast<native_handle*>(graphicbuffer->getNativeBuffer()->handle)); int fd = gralloc_handle->fd;
to get the file descriptor

But it seemed to be wrong and always returned 0x00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions