abstraction library source file (Video Output Encoder driver).
More...
Detailed Description
abstraction library source file (Video Output Encoder 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 identifier for all encoder (common descriptor). |
flags | This parameter indicate a open mode (read only/write only/read-write).
This implementation supports only read-write mode. |
argptr | argument pointer (value of VIENC system mode)
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 all encoder (common 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_START
start Video Encoder. (pArg is ignored)
When id is common descriptor, all Video Encoder on the ready state will start.
When id is sub descriptor for a Video Encoder on the ready state, only this Encoder will start.
- FAPEX_IOCCOM_STOP
stop Video Encoder. (pArg is ignored)
When id is common descriptor, all Video Encoder on the running state will stop.
When id is sub descriptor for a Video Encoder on the running state, only this Encoder will start.
- FAPEX_IOCCOM_VIENC_GET_WSSDATA
get WSS data.
Set pointer of variable data field (uint32_t) to pArg.
The wss data value will be set to this field.
The id should be sub descriptor for SD encoder.
- FAPEX_IOCCOM_VIENC_SET_WSSDATA
set WSS data.
Set value of wss data (uint32_t) to pArg.
The wss data value will be set.
The id should be sub descriptor for SD encoder.
- FAPEX_IOCCOM_VIENC_SET_CCOMPONENT
set component data.
Set value of component (uint32_t) to pArg.
FAPEX_VIENC_CCOMPONENT_UNKNOWN specifies an unknown colour component FAPEX_VIENC_CCOMPONENT_DAC_POWER_DOWN turns off the signal to the DACs of VE SD or VE HD and instead sends a constant 0V to the DACs FAPEX_VIENC_CCOMPONENT_DIGITAL_RGB specifies Digital RGB output of VE HD on Gpios. Mode valid for VE HD Only FAPEX_VIENC_CCOMPONENT_ANALOG_RGB specifies Analog RGB output of VE HD on Gpios. Mode valid for VE HD Only FAPEX_VIENC_CCOMPONENT_RGB Specifies Analog and digital RGB output on VE HD ONLY FAPEX_VIENC_CCOMPONENT_DIGITAL_YPrPb specifies Digital YPrPb output of VE HD on Gpios. Mode valid for VE HD Only FAPEX_VIENC_CCOMPONENT_ANALOG_YPrPb specifies Analog YPrPb output of VE HD on Gpios. Mode valid for VE HD Only FAPEX_VIENC_CCOMPONENT_YPrPb specifies Analog and digital YPrPb output on VE HD ONLY FAPEX_VIENC_CCOMPONENT_COLOURBAR specifies a standard COLOUR BAR. on VE SD only FAPEX_VIENC_CCOMPONENT_CVBS specifies only CVBS on VE SD ONLY FAPEX_VIENC_CCOMPONENT_YC specifies only CVBS on VE SD ONLY FAPEX_VIENC_CCOMPONENT_CVBS_YC specifies CVBS with YC output on VE SD ONLY for S Video
- FAPEX_IOCCOM_VIENC_SET_DAC
set dac configuration.
FAPEX_VIENC_DAC_ASSIGNMENT_012_HD_345_SD specifies DACs 012 for HD and DACs345 for SD analog encoder FAPEX_VIENC_DAC_ASSIGNMENT_012_SD_345_HD specifies DACs 012 for SD and DACs345 for HD analog encoder