1/* Copyright (c) Imagination Technologies Ltd.
2 *
3 * The contents of this file are subject to the MIT license as set out below.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 * THE SOFTWARE.
22 */
23
24#ifndef __HAL_PUBLIC_H
25#define __HAL_PUBLIC_H
26
27#define PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC
28
29#include "img_gralloc_public.h"
30
31#undef HAL_PIXEL_FORMAT_NV12
32
33#define HAL_PIXEL_FORMAT_UYVY         0x107
34#define HAL_PIXEL_FORMAT_INTEL_ZSL    0x109
35#define HAL_PIXEL_FORMAT_NV12         0x3231564E
36#define HAL_PIXEL_FORMAT_NV21         0x3132564E
37#define HAL_PIXEL_FORMAT_I420         0x30323449
38#define HAL_PIXEL_FORMAT_YUY2         0x32595559
39#define HAL_PIXEL_FORMAT_NV12_VED     0x7FA00E00
40#define HAL_PIXEL_FORMAT_NV12_VEDT    0x7FA00F00
41
42#define GRALLOC_MODULE_GET_BUFFER_CPU_ADDRESSES_IMG 108
43#define GRALLOC_MODULE_PUT_BUFFER_CPU_ADDRESSES_IMG 109
44
45#define GRALLOC_MODULE_GET_DISPLAY_DEVICE_IMG 1000
46#define GRALLOC_MODULE_GET_DISPLAY_STATUS_IMG 1001
47
48#endif /* __HAL_PUBLIC_H */
49