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

#ifndef __HAL_PUBLIC_H
#define __HAL_PUBLIC_H

#define PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC

#include "img_gralloc_public.h"

#undef HAL_PIXEL_FORMAT_NV12

#define HAL_PIXEL_FORMAT_UYVY         0x107
#define HAL_PIXEL_FORMAT_INTEL_ZSL    0x109
#define HAL_PIXEL_FORMAT_NV12         0x3231564E
#define HAL_PIXEL_FORMAT_NV21         0x3132564E
#define HAL_PIXEL_FORMAT_I420         0x30323449
#define HAL_PIXEL_FORMAT_YUY2         0x32595559
#define HAL_PIXEL_FORMAT_NV12_VED     0x7FA00E00
#define HAL_PIXEL_FORMAT_NV12_VEDT    0x7FA00F00

#define GRALLOC_MODULE_GET_BUFFER_CPU_ADDRESSES_IMG 108
#define GRALLOC_MODULE_PUT_BUFFER_CPU_ADDRESSES_IMG 109

#define GRALLOC_MODULE_GET_DISPLAY_DEVICE_IMG 1000
#define GRALLOC_MODULE_GET_DISPLAY_STATUS_IMG 1001

#endif /* __HAL_PUBLIC_H */