OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef VENDOR_GRALLOCDRM_H |
| 6 #define VENDOR_GRALLOCDRM_H |
| 7 |
| 8 #include <sys/cdefs.h> |
| 9 |
| 10 __BEGIN_DECLS |
| 11 |
| 12 // As defined by the android-x86 implementation of gralloc_drm. |
| 13 |
| 14 // pixel format definitions |
| 15 enum { |
| 16 HAL_PIXEL_FORMAT_DRM_NV12 = 0x102, |
| 17 }; |
| 18 |
| 19 |
| 20 // used with the 'perform' method of gralloc_module_t |
| 21 enum { |
| 22 GRALLOC_MODULE_PERFORM_GET_DRM_FD = 0x80000002, |
| 23 GRALLOC_MODULE_PERFORM_GET_DRM_MAGIC = 0x80000003, |
| 24 GRALLOC_MODULE_PERFORM_AUTH_DRM_MAGIC = 0x80000004, |
| 25 GRALLOC_MODULE_PERFORM_ENTER_VT = 0x80000005, |
| 26 GRALLOC_MODULE_PERFORM_LEAVE_VT = 0x80000006, |
| 27 }; |
| 28 |
| 29 __END_DECLS |
| 30 |
| 31 #endif /* VENDOR_GRALLOCDRM_H */ |
OLD | NEW |