abstraction library source file (Video Decoder driver).
More...
Functions |
FAPEXOPENRET_T | FAPEX_VIDEC_Open (FAPEXOPENARG1_T id, FAPEXOPENARG2_T flags, FAPEXOPENARG3_T argptr) |
| open method. This function is called with the systemcall "open".
|
FAPEXRELRET_T | FAPEX_VIDEC_Close (FAPEXRELARG1_T id) |
| release method. This function is called with the systemcall "close".
|
FAPEXIOCRET_T | FAPEX_VIDEC_Ioctl (FAPEXIOCARG1_T id, FAPEXIOCARG2_T cmd, FAPEXIOCARG3_T pArg) |
| ioctl method. This function is called with the systemcall "ioctl".
|
FAPEXMMPRET_T | FAPEX_VIDEC_Mmap (FAPEXMMPARG1_T start, FAPEXMMPARG2_T length, FAPEXMMPARG3_T prot, FAPEXMMPARG4_T flags, FAPEXMMPARG5_T id, FAPEXMMPARG6_T offset) |
| mmap method. This function is called with the systemcall "mmap".
|
FAPEXMUNMPRET_T | FAPEX_VIDEC_Munmap (FAPEXMMPARG1_T start, FAPEXMMPARG2_T length) |
| munmap method. This function is called with the systemcall "munmap".
|
Detailed Description
abstraction library source file (Video Decoder driver).
These function is executed in user space.
- Attention:
- This program is provided as is. You can redistribute it and/or modify it. Fujitsu Semiconductor Limited accepts no responsibility or liability for any errors or omissions.
Copyright (C) 2008-2010 Fujitsu Semiconductor Limited, All Rights Reserved.
Function Documentation
open method. This function is called with the systemcall "open".
- Parameters:
-
id | The device identifier. |
flags | This parameter indicate a open mode (read only/write only/read-write).
This implementation supports only read-write mode. |
argptr | argument pointer (FAPEX_VIDEC_OpenParamStrT)
If descriptor for this 'id' has already been opened, this 'argptr' will be invalid. |
- Return values:
-
>=0 | process OK, new file descriptor is returned. |
<0 | process fails, its value is set to errno. |
release method. This function is called with the systemcall "close".
- Parameters:
-
id | The identifier for this descriptor. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl method. This function is called with the systemcall "ioctl".
- Parameters:
-
id | The identifier for this descriptor. |
cmd | The ioctl command. |
pArg | The pointer to the argument of the ioctl command. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl command(
cmd) type:
- FAPEX_IOCCOM_VIDEC_SET_OUTPUT_DELAY
set the delay for video display.
Set value of delay in milliseconds to pArg.
For Live stream the output delay can be set dynamically. For PVR playback the output delay should be set before starting the video and only positive delay is allowed under PVR environment. The delay is not applicable in the trick modes.
- FAPEX_IOCCOM_VIDEC_SET_STREAMSEGMENTMODE
set the video stream segment mode.
Set video stream segment mode from pArg.
FAPEX_VIDEC_STREAM_SEGMENT_MODE_FULL specifies the stream segment is normal. FAPEX_VIDEC_STREAM_SEGMENT_MODE_1 specifies the stream segment is of 1seg type as in ISDB-T in japan and Brazil.
mmap method. This function is called with the systemcall "mmap".
This function supports accessing of the mapped area for decoded frame buffer.
The 'length' should be value returned by FAPEX_IOCCOM_VIDEC_GET_FRAME_BANK_SIZE command with FAPEX_VIDEC_Ioctl().
For accessing to frame buffer, you should use decodedWidth, decodedHeight, offset_y and offset_c of FAPEX_VIDEC_DecFrameInfoStrT.
This information of FAPEX_VIDEC_DecFrameInfoStrT is got by using FAPEX_IOCCOM_VIDEC_GET_DEC_FRAME_INFO command with FAPEX_VIDEC_Ioctl().
- Parameters:
-
start | The memory mapping start pointer. |
length | The memory mapping size. |
prot | The desired memory protection. |
flags | The mapping option. |
id | The identifier for this descriptor. |
offset | The memory mapping offset value. |
- Return values:
-
>0 | process OK, its value is the mapping address. |
<0 | process fails, its value is set to errno. |
munmap method. This function is called with the systemcall "munmap".
- Parameters:
-
start | The memory mapping start pointer. |
length | The memory mapping size. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |