summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra2013-09-04 11:23:25 -0500
committerSaurabh Bipin Chandra2013-09-05 11:09:16 -0500
commitbdc17c43679f649cd46fec22f9dafc1c13130acc (patch)
treebc0f50733e06299a476b96c47d77b27a8e402c64 /libdce.h
parent06f4c11b14926021f4286903074d5544f9f5ba34 (diff)
downloadhardware-ti-libdce-bdc17c43679f649cd46fec22f9dafc1c13130acc.tar.gz
hardware-ti-libdce-bdc17c43679f649cd46fec22f9dafc1c13130acc.tar.xz
hardware-ti-libdce-bdc17c43679f649cd46fec22f9dafc1c13130acc.zip
[LIBDCE] Add function descriptor in libdce header file
This patch adds function descriptors in the libdce.h. The xdc/std.h inclusion is shifted from libdce.c to libdce.h to remove the need of client application including xdc/std.h. Change-Id: I4b9e6f12643b130a2cf1d317c4fed595008c7812 Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com>
Diffstat (limited to 'libdce.h')
-rw-r--r--libdce.h34
1 files changed, 26 insertions, 8 deletions
diff --git a/libdce.h b/libdce.h
index b008e28..cffa006 100644
--- a/libdce.h
+++ b/libdce.h
@@ -33,7 +33,7 @@
33#ifndef __LIBDCE_H__ 33#ifndef __LIBDCE_H__
34#define __LIBDCE_H__ 34#define __LIBDCE_H__
35 35
36 36#include <xdc/std.h>
37#include <ti/sdo/ce/Engine.h> 37#include <ti/sdo/ce/Engine.h>
38#include <ti/sdo/ce/video3/viddec3.h> 38#include <ti/sdo/ce/video3/viddec3.h>
39#include <ti/sdo/ce/video2/videnc2.h> 39#include <ti/sdo/ce/video2/videnc2.h>
@@ -44,8 +44,7 @@
44#define xdc__ARGTOFXN 44#define xdc__ARGTOFXN
45#endif /* BUILDOS_LINUX */ 45#endif /* BUILDOS_LINUX */
46 46
47 47/********************************** DCE Error Types **********************************/
48/* DCE Error Types */
49typedef enum dce_error_status { 48typedef enum dce_error_status {
50 DCE_EOK = 0, 49 DCE_EOK = 0,
51 DCE_EXDM_FAIL = -1, 50 DCE_EXDM_FAIL = -1,
@@ -58,13 +57,22 @@ typedef enum dce_error_status {
58 DCE_ESEMAPHORE_FAIL = -8 57 DCE_ESEMAPHORE_FAIL = -8
59} dce_error_status; 58} dce_error_status;
60 59
61 60/***************************** Memory Allocation/Free APIs *****************************/
62/* other than the codec-engine API, you must use the following two functions 61/*=====================================================================================*/
63 * to allocate the data structures passed to codec-engine APIs (other than the 62/** dce_alloc : Allocate the Data structures passed to codec-engine APIs
64 * raw input/output buffers which should be passed as virtual addresses in 63 * except Input/Output buffers.
65 * TILER space 64 *
65 * @ param sz [in] : Size of memory to be allocated.
66 * @ return : Pointer to allocated memory.
66 */ 67 */
67void *dce_alloc(int sz); 68void *dce_alloc(int sz);
69
70/*=====================================================================================*/
71/** dce_free : Free the Data structures passed to codec-engine APIs
72 * except Input/Output buffers.
73 *
74 * @ param ptr [in] : Pointer to allocated memory.
75 */
68void dce_free(void *ptr); 76void dce_free(void *ptr);
69 77
70 78
@@ -106,8 +114,18 @@ int dce_buf_lock(int num, size_t *handle);
106int dce_buf_unlock(int num, size_t *handle); 114int dce_buf_unlock(int num, size_t *handle);
107 115
108/******************************* OMAPDRM Get/Set FD APIs *******************************/ 116/******************************* OMAPDRM Get/Set FD APIs *******************************/
117/*=====================================================================================*/
118/** dce_get_fd : Get OMAP DRM File Descriptor.
119 *
120 * @ return : OMAP DRM File Descriptor.
121 */
109int dce_get_fd(); 122int dce_get_fd();
110 123
124/*=====================================================================================*/
125/** dce_set_fd : Set OMAP DRM File Descriptor.
126 *
127 * @ param fd [in] : OMAP DRM File Descriptor.
128 */
111void dce_set_fd(int fd); 129void dce_set_fd(int fd);
112 130
113 131