]> git.sesse.net Git - vlc/blob - modules/codec/omxil/omxil_core.h
iomx: Support building for honeycomb with ANDROID_API=13 as well
[vlc] / modules / codec / omxil / omxil_core.h
1 /*****************************************************************************
2  * omxil.c: Video decoder module making use of OpenMAX IL components.
3  *****************************************************************************
4  * Copyright (C) 2010 VLC authors and VideoLAN
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #include "OMX_Core.h"
25
26 #include <vlc_common.h>
27
28 OMX_ERRORTYPE (*pf_init) (void);
29 OMX_ERRORTYPE (*pf_deinit) (void);
30 OMX_ERRORTYPE (*pf_get_handle) (OMX_HANDLETYPE *, OMX_STRING,
31                                 OMX_PTR, OMX_CALLBACKTYPE *);
32 OMX_ERRORTYPE (*pf_free_handle) (OMX_HANDLETYPE);
33 OMX_ERRORTYPE (*pf_component_enum)(OMX_STRING, OMX_U32, OMX_U32);
34 OMX_ERRORTYPE (*pf_get_roles_of_component)(OMX_STRING, OMX_U32 *, OMX_U8 **);
35
36 /* Extra IOMX android functions. Can be NULL if we don't link with libiomx */
37 OMX_ERRORTYPE (*pf_enable_graphic_buffers)(OMX_HANDLETYPE, OMX_U32, OMX_BOOL);
38 OMX_ERRORTYPE (*pf_get_graphic_buffer_usage)(OMX_HANDLETYPE, OMX_U32, OMX_U32*);
39
40 /* OMXHWBuffer functions */
41 int (*pf_omx_hwbuffer_connect) (void *);
42 int (*pf_omx_hwbuffer_disconnect) (void *);
43 int (*pf_omx_hwbuffer_get_hal_format) (const char *, int *);
44 int (*pf_omx_hwbuffer_setup) (void *, int, int, int, int );
45 int (*pf_omx_hwbuffer_get_min_undequeued) (void *, unsigned int *);
46 int (*pf_omx_hwbuffer_set_buffer_count) (void *, unsigned int );
47 int (*pf_omx_hwbuffer_setcrop) (void *, int, int, int, int);
48 int (*pf_omx_hwbuffer_dequeue) (void *, void **);
49 int (*pf_omx_hwbuffer_lock) (void *, void *);
50 int (*pf_omx_hwbuffer_queue) (void *, void *);
51 int (*pf_omx_hwbuffer_cancel) (void *, void *);
52
53 int InitOmxCore(vlc_object_t *p_this);
54 void DeinitOmxCore(void);
55
56 #define MAX_COMPONENTS_LIST_SIZE 32
57 int CreateComponentsList(vlc_object_t *p_this, const char *psz_role,
58                          char ppsz_components[MAX_COMPONENTS_LIST_SIZE][OMX_MAX_STRINGNAME_SIZE]);
59