2
* Copyright (C) 2013 Canonical Ltd
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
16
* Authored by: Jim Hodapp <jim.hodapp@canonical.com>
19
#ifndef SURFACE_TEXTURE_CLIENT_HYBRIS_H_
20
#define SURFACE_TEXTURE_CLIENT_HYBRIS_H_
28
#define FP_ATTRIB __attribute__((pcs("aapcs")))
37
// Taken from native_window.h
39
WINDOW_FORMAT_RGBA_8888 = 1,
40
WINDOW_FORMAT_RGBX_8888 = 2,
41
WINDOW_FORMAT_RGB_565 = 4,
44
typedef void* SurfaceTextureClientHybris;
46
//SurfaceTextureClientHybris surface_texture_client_get_instance();
47
SurfaceTextureClientHybris surface_texture_client_create(EGLNativeWindowType native_window);
48
void surface_texture_client_create_by_id(unsigned int texture_id);
49
void surface_texture_client_get_transformation_matrix(float *matrix) FP_ATTRIB;
50
void surface_texture_client_update_texture();
51
void surface_texture_client_destroy(SurfaceTextureClientHybris stc);
52
void surface_texture_client_ref(SurfaceTextureClientHybris stc);
53
void surface_texture_client_unref(SurfaceTextureClientHybris stc);
54
void surface_texture_client_set_surface_texture(SurfaceTextureClientHybris stc, EGLNativeWindowType native_window);
60
#endif // SURFACE_TEXTURE_CLIENT_HYBRIS_H_