webOS Userland
Native system APIs for webOS
lgnc_directvideo.h File Reference

DirectVideo API for playing video stream. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LGNC_VDEC_DATA_INFO_T
 Video information. More...
 

Typedefs

typedef enum LGNC_VDEC_3D_TYPE_T LGNC_VDEC_3D_TYPE_T
 
typedef enum LGNC_VDEC_FMT_T LGNC_VDEC_FMT_T
 

Enumerations

enum  LGNC_VDEC_FMT_T { LGNC_VDEC_FMT_MAX = 10 , LGNC_VDEC_FMT_H264 = 2 }
 Video format.
 
enum  LGNC_VDEC_3D_TYPE_T {
  LGNC_VDEC_3D_TYPE_LR_HALF = 2 , LGNC_VDEC_3D_TYPE_NONE = 0 , LGNC_VDEC_3D_TYPE_TB_HALF = 3 , LGNC_VDEC_3D_TYPE_2DTO3D = 1 ,
  LGNC_VDEC_3D_TYPE_MAX = 4
}
 Video 3D type. More...
 

Functions

int LGNC_DIRECTVIDEO_Close ()
 Close video playback. More...
 
int LGNC_DIRECTVIDEO_Open (const LGNC_VDEC_DATA_INFO_T *info)
 Open video playback. More...
 
int LGNC_DIRECTVIDEO_Play (const void *data, unsigned int size)
 Play video buffer. More...
 
int _LGNC_DIRECTVIDEO_SetDisplayWindow (int x, int y, int w, int h)
 Set video display window on the screen. More...
 
int _LGNC_DIRECTVIDEO_SetCustomDisplayWindow (int x, int y, int w, int h)
 Set video display window on the screen. More...
 

Detailed Description

DirectVideo API for playing video stream.

Enumeration Type Documentation

◆ LGNC_VDEC_3D_TYPE_T

Video 3D type.

Enumerator
LGNC_VDEC_3D_TYPE_LR_HALF 

Side by side.

LGNC_VDEC_3D_TYPE_TB_HALF 

Top and bottom.

Function Documentation

◆ _LGNC_DIRECTVIDEO_SetCustomDisplayWindow()

int _LGNC_DIRECTVIDEO_SetCustomDisplayWindow ( int  x,
int  y,
int  w,
int  h 
)

Set video display window on the screen.

Parameters
xX position of the video
yY position of the video
wWidth of the video
hHeight of the video
Returns
0 If succeeded
Since
webOS 1.4.0

◆ _LGNC_DIRECTVIDEO_SetDisplayWindow()

int _LGNC_DIRECTVIDEO_SetDisplayWindow ( int  x,
int  y,
int  w,
int  h 
)

Set video display window on the screen.

Parameters
xX position of the video
yY position of the video
wWidth of the video
hHeight of the video
Returns
0 If succeeded

◆ LGNC_DIRECTVIDEO_Close()

int LGNC_DIRECTVIDEO_Close ( )

Close video playback.

Returns
0 If succeeded

◆ LGNC_DIRECTVIDEO_Open()

int LGNC_DIRECTVIDEO_Open ( const LGNC_VDEC_DATA_INFO_T *  info)

Open video playback.

Parameters
infoVideo information
Returns
0 If succeeded

◆ LGNC_DIRECTVIDEO_Play()

int LGNC_DIRECTVIDEO_Play ( const void *  data,
unsigned int  size 
)

Play video buffer.

Parameters
dataVideo buffer
sizeSize of video buffer
Returns
0 If succeeded