Mir

Merge lp:~alan-griffiths/mir/fix-MIR_INPUT_USE_ANDROID_TYPES-build into lp:~mir-team/mir/trunk

Proposed by Alan Griffiths
Status: Merged
Approved by: Alexandros Frantzis
Approved revision: no longer in the source branch.
Merged at revision: 462
Proposed branch: lp:~alan-griffiths/mir/fix-MIR_INPUT_USE_ANDROID_TYPES-build
Merge into: lp:~mir-team/mir/trunk
Diff against target: 129 lines (+0/-123)
1 file modified
3rd_party/android-deps/system/graphics.h (+0/-123)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-MIR_INPUT_USE_ANDROID_TYPES-build
Reviewer Review Type Date Requested Status
Alexandros Frantzis (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+151711@code.launchpad.net

Commit message

3rd_party: Fix compile error with MIR_INPUT_USE_ANDROID_TYPES on

Description of the change

3rd_party: Fix compile error with MIR_INPUT_USE_ANDROID_TYPES on

Deduplicates an android header and uses the one with corrected syntax

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alexandros Frantzis (afrantzis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file '3rd_party/android-deps/system/graphics.h'
2--- 3rd_party/android-deps/system/graphics.h 2013-01-08 17:44:16 +0000
3+++ 3rd_party/android-deps/system/graphics.h 1970-01-01 00:00:00 +0000
4@@ -1,123 +0,0 @@
5-/*
6- * Copyright (C) 2011 The Android Open Source Project
7- *
8- * Licensed under the Apache License, Version 2.0 (the "License");
9- * you may not use this file except in compliance with the License.
10- * You may obtain a copy of the License at
11- *
12- * http://www.apache.org/licenses/LICENSE-2.0
13- *
14- * Unless required by applicable law or agreed to in writing, software
15- * distributed under the License is distributed on an "AS IS" BASIS,
16- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17- * See the License for the specific language governing permissions and
18- * limitations under the License.
19- */
20-
21-#ifndef SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H
22-#define SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H
23-
24-#ifdef __cplusplus
25-extern "C" {
26-#endif
27-
28-/*
29- * If the HAL needs to create service threads to handle graphics related
30- * tasks, these threads need to run at HAL_PRIORITY_URGENT_DISPLAY priority
31- * if they can block the main rendering thread in any way.
32- *
33- * the priority of the current thread can be set with:
34- *
35- * #include <sys/resource.h>
36- * setpriority(PRIO_PROCESS, 0, HAL_PRIORITY_URGENT_DISPLAY);
37- *
38- */
39-
40-#define HAL_PRIORITY_URGENT_DISPLAY (-8)
41-
42-/**
43- * pixel format definitions
44- */
45-
46-enum {
47- HAL_PIXEL_FORMAT_RGBA_8888 = 1,
48- HAL_PIXEL_FORMAT_RGBX_8888 = 2,
49- HAL_PIXEL_FORMAT_RGB_888 = 3,
50- HAL_PIXEL_FORMAT_RGB_565 = 4,
51- HAL_PIXEL_FORMAT_BGRA_8888 = 5,
52- HAL_PIXEL_FORMAT_RGBA_5551 = 6,
53- HAL_PIXEL_FORMAT_RGBA_4444 = 7,
54-
55- /* 0x8 - 0xFF range unavailable */
56-
57- /*
58- * 0x100 - 0x1FF
59- *
60- * This range is reserved for pixel formats that are specific to the HAL
61- * implementation. Implementations can use any value in this range to
62- * communicate video pixel formats between their HAL modules. These formats
63- * must not have an alpha channel. Additionally, an EGLimage created from a
64- * gralloc buffer of one of these formats must be supported for use with the
65- * GL_OES_EGL_image_external OpenGL ES extension.
66- */
67-
68- /*
69- * Android YUV format:
70- *
71- * This format is exposed outside of the HAL to software decoders and
72- * applications. EGLImageKHR must support it in conjunction with the
73- * OES_EGL_image_external extension.
74- *
75- * YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed
76- * by (W/2) x (H/2) Cr and Cb planes.
77- *
78- * This format assumes
79- * - an even width
80- * - an even height
81- * - a horizontal stride multiple of 16 pixels
82- * - a vertical stride equal to the height
83- *
84- * y_size = stride * height
85- * c_size = ALIGN(stride/2, 16) * height/2
86- * size = y_size + c_size * 2
87- * cr_offset = y_size
88- * cb_offset = y_size + c_size
89- *
90- */
91- HAL_PIXEL_FORMAT_YV12 = 0x32315659, // YCrCb 4:2:0 Planar
92-
93-
94-
95- /* Legacy formats (deprecated), used by ImageFormat.java */
96- HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16
97- HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21
98- HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, // YUY2
99-};
100-
101-
102-/**
103- * Transformation definitions
104- *
105- * IMPORTANT NOTE:
106- * HAL_TRANSFORM_ROT_90 is applied CLOCKWISE and AFTER HAL_TRANSFORM_FLIP_{H|V}.
107- *
108- */
109-
110-enum {
111- /* flip source image horizontally (around the vertical axis) */
112- HAL_TRANSFORM_FLIP_H = 0x01,
113- /* flip source image vertically (around the horizontal axis)*/
114- HAL_TRANSFORM_FLIP_V = 0x02,
115- /* rotate source image 90 degrees clockwise */
116- HAL_TRANSFORM_ROT_90 = 0x04,
117- /* rotate source image 180 degrees */
118- HAL_TRANSFORM_ROT_180 = 0x03,
119- /* rotate source image 270 degrees clockwise */
120- HAL_TRANSFORM_ROT_270 = 0x07,
121-};
122-
123-#ifdef __cplusplus
124-}
125-#endif
126-
127-#endif /* SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H */
128
129=== renamed file '3rd_party/android-input/android/system/core/include/system/graphics.h' => '3rd_party/android-deps/system/graphics.h'

Subscribers

People subscribed via source and target branches