~ianchou821/ubuntu/trusty/libhybris/bug-1259444

« back to all changes in this revision

Viewing changes to .pc/0030-compat-media-also-support-decoding-with-playbin.patch/hybris/include/hybris/media/surface_texture_client_hybris.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-09-30 16:08:45 UTC
  • Revision ID: package-import@ubuntu.com-20130930160845-gqt7tgyc6aooiu91
Tags: 0.1.0+git20130606+c5d897a-0ubuntu30
* 0030-compat-media-also-support-decoding-with-playbin.patch:
  - Refreshing patch adding another method to ask when the client is ready
    for rendering

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013 Canonical Ltd
 
3
 *
 
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
 
7
 *
 
8
 *      http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 *
 
16
 * Authored by: Jim Hodapp <jim.hodapp@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef SURFACE_TEXTURE_CLIENT_HYBRIS_H_
 
20
#define SURFACE_TEXTURE_CLIENT_HYBRIS_H_
 
21
 
 
22
#include <stdint.h>
 
23
#include <unistd.h>
 
24
 
 
25
#include <EGL/egl.h>
 
26
 
 
27
#ifdef __ARM_PCS_VFP
 
28
#define FP_ATTRIB __attribute__((pcs("aapcs")))
 
29
#else
 
30
#define FP_ATTRIB
 
31
#endif
 
32
 
 
33
#ifdef __cplusplus
 
34
extern "C" {
 
35
#endif
 
36
 
 
37
    // Taken from native_window.h
 
38
    enum {
 
39
        WINDOW_FORMAT_RGBA_8888     = 1,
 
40
        WINDOW_FORMAT_RGBX_8888     = 2,
 
41
        WINDOW_FORMAT_RGB_565       = 4,
 
42
    };
 
43
 
 
44
    typedef void* SurfaceTextureClientHybris;
 
45
 
 
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);
 
55
 
 
56
#ifdef __cplusplus
 
57
}
 
58
#endif
 
59
 
 
60
#endif // SURFACE_TEXTURE_CLIENT_HYBRIS_H_