webOS Userland
Native system APIs for webOS
dile_vdec_direct.h
Go to the documentation of this file.
1 /******************************************************************************
2  * TV LABORATORY, LG ELECTRONICS INC., SEOUL, KOREA
3  * Copyright(c) 2013 by LG Electronics Inc.
4  *
5  * All rights reserved. No part of this work may be reproduced, stored in a
6  * retrieval system, or transmitted by any means without prior written
7  * permission of LG Electronics Inc.
8  *****************************************************************************/
9 
21 /******************************************************************************
22  Header File Guarder
23 ******************************************************************************/
24 #ifndef __DILE_VDEC_DIRECT_H__
25 #define __DILE_VDEC_DIRECT_H__
26 
27 /******************************************************************************
28  Control Constants
29 ******************************************************************************/
30 
31 /******************************************************************************
32  File Inclusions
33 ******************************************************************************/
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
40 /******************************************************************************
41  Constant Definitions
42 ******************************************************************************/
43 
44 /******************************************************************************
45  Macro Definitions
46 ******************************************************************************/
47 
48 /******************************************************************************
49  Type Definitions
50 ******************************************************************************/
51 
52 #ifndef DILE_STATUS_T
53 
54 typedef enum{
55  DILE_OK = 0,
56  DILE_NOT_OK = -1,
57 } _DILE_STATUS_T;
58 
59 #define DILE_STATUS_T _DILE_STATUS_T
60 
61 #endif
62 
67 typedef enum
68 {
69  DILE_VDEC_DIRECT_3D_TYPE_NONE, // 2D
70  DILE_VDEC_DIRECT_3D_TYPE_SIDEBYSIDE,
71  DILE_VDEC_DIRECT_3D_TYPE_TOPANDBOTTOM,
72 
73  DILE_VDEC_DIRECT_3D_TYPE_MAX,
75 
80 typedef enum
81 {
82  DILE_VDEC_DIRECT_SCAN_TYPE_PROGRESSIVE,
83  DILE_VDEC_DIRECT_SCAN_TYPE_INTERLACED,
85 
90 typedef struct
91 {
92  int width;
93  int height;
95  int frameRate;
96  int pixelX;
97  int pixelY;
99 
100 /******************************************************************************
101  Function Declaration
102 ******************************************************************************/
109 DILE_STATUS_T DILE_VDEC_DIRECT_SetDEId(int deid);
110 
121 DILE_STATUS_T DILE_VDEC_DIRECT_Open(unsigned int fourcc, int width, int height, DILE_VDEC_DIRECT_3D_TYPE_T trid_type, int videoIndex);
122 
130 DILE_STATUS_T DILE_VDEC_DIRECT_Play(void *data, int size);
131 
140 DILE_STATUS_T DILE_VDEC_DIRECT_PlayWithCallback(void *data, int size, unsigned long long buffID);
141 
148 DILE_STATUS_T DILE_VDEC_DIRECT_SetCallback(void(*callback)(unsigned long long buffID));
149 
155 DILE_STATUS_T DILE_VDEC_DIRECT_Stop(void);
156 
162 DILE_STATUS_T DILE_VDEC_DIRECT_Close(void);
163 
171 
172 #ifdef __cplusplus
173 }
174 #endif
175 
176 #endif /* __DILE_VDEC_DIRECT_H__ */
DILE_STATUS_T DILE_VDEC_DIRECT_GetVideoInfo(DILE_VDEC_DIRECT_SRC_INFO_T *pInfo)
DILE_VDEC_DIRECT_3D_TYPE_T
Definition: dile_vdec_direct.h:68
DILE_VDEC_DIRECT_SCAN_TYPE_T
Definition: dile_vdec_direct.h:81
DILE_STATUS_T DILE_VDEC_DIRECT_PlayWithCallback(void *data, int size, unsigned long long buffID)
DILE_STATUS_T DILE_VDEC_DIRECT_SetCallback(void(*callback)(unsigned long long buffID))
DILE_STATUS_T DILE_VDEC_DIRECT_Play(void *data, int size)
DILE_STATUS_T DILE_VDEC_DIRECT_Close(void)
DILE_STATUS_T DILE_VDEC_DIRECT_SetDEId(int deid)
DILE_STATUS_T DILE_VDEC_DIRECT_Stop(void)
DILE_STATUS_T DILE_VDEC_DIRECT_Open(unsigned int fourcc, int width, int height, DILE_VDEC_DIRECT_3D_TYPE_T trid_type, int videoIndex)
Definition: dile_vdec_direct.h:91