Home
SH7268/SH7269 Group Digital Video Decoder Driver User`s Manual
Contents
1. Recommended Value NTSC 3 58 Member Name Initial Value NTSC 4 43 PAL 4 43 Bouta SECAM Accmode 0 0 0 Accmaxgain VDEC_ACC_MAXGAIN_6 VDEC_ACC_MAXGAIN_6 VDEC_ACC_MAXGAIN_6 Acclevel 292u 220u 230u Chromasubgain VDEC CHR SUBGAIN 1 VDEC CHR SUBGAIN 1 VDEC CHR SUBGAIN 1 Chromamaingain 256u 210u 210u Accresponse tu tu tu Accprecis 20u 8u 8u R01AN0779EJ0100 Rev 1 00 Page 52 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group 4 1 5 Digital Video Decoder Driver User s Manual Setting for VDEC_DigitalClamp Table 22 Recommended Value for the Structure vdec PdstICntrClamp Member Name Initial Value Recommended Value Dcpresponse 5u 0 Depstart 16u 16u Dcpend 16u 16u Dcpwidth 54u 27u PedestalClamp CenterClamp Note For the settings of PedestalClamp and CenterClamp see Table 23 and Table 24 Table 23 Recommended Value for the Structure vdec_PedestalClamp Member Name Initial Value Recommended Value Dcpmode_Y tu tu Dcpcheck 0 0 Dcppos_Y 162u 162u Blanklevel_Y 0 984u 40 Clp_Hold_On_Y VDEC_ON VDEC_OFF Note The recommended value is 40 but it is necessary to be set in 10 bit 2 s complement form Therefore it is set to 984 0x03D8 Table 24 Recommended Value for the Structure vdec_CenterClamp Member Name Initial Value Recommended Value Dcpmode_C 0 0 Dcp
2. Member Name Output Description _UWORD in Clamp level setting mode Cb Cr signal Dcpmode_C e 0 Manual clamp level setting e 1 Auto clamp level setting _UWORD in Digital clamp pulse horizontal start position Cb Cr signal Dcppos_C 27MHz clock cycles 0x0000 0x00FF _UWORD in Clamp offset level Cb signal Blanklevel_Cb 0x0000 0x003F Set the subtraction value R01AN0779EJ0100 Rev 1 00 Page 35 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2s complement _UWORD in Clamp offset level Cr signal Blanklevel_Cr 0x0000 0x003F Set the subtraction value 2s complement vdec_OnOff in Clamp data hold processing ON OFF Cb Clp_Hold_On_Cb e VDEC_OFF e VDEC_ON vdec_OnOff in Clamp data hold processing ON OFF Cr Clp_Hold_On_Cr e VDEC_OFF e VDEC_ON Members of the structure vdec_NoiseDet are shown below typedef struct vdec_Acfinput Acfinput _UWORD Acflagtime _UWORD Acffilter vdec_NoiseDet Type Input j Voa Name Gunt Description vdec Acfinput in Video signal for autocorrelation function Acfinput e VDEC VDSIG ATCRR Y Y signal e VDEC VDSIG ATCRR CB Cb signal e VDEC VDSIG ATCRR CR Cr signal _UWORD in Delay time for autocorrelation function calculation 27MHz Acilagtime clock cycles 0x0000 0x001F _UWORD in Smoothing parameter of autocorrelation function data Acffilter 0x0000 0x0003 R01A
3. Parameters e in const vdec SyncSeparation Sync separation parameter SyncSeparation Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined VDEC ERR PARAM RANGE Parameter error Out of range VDEC ERR PARAM INVALID Parameter error Invalid parameter Description In this function the operations are performed as below e Noise reduction LPF parameters are set e Auto level control sync slicer parameters are set e Horizontal AFC parameters are set e Vertical count down parameters are set e AGC PGA parameters are set e Peak limiter control parameters are set The setting process for the sync separation is performed in this function When the AGC is turned off programmable gain amp PGA is set to the manual mode Before the PGA settings are reflected it will take a period of time equal to 1 Vsync period time at the most When the AGC is turned off peak limiter is not operated though the setting process is performed RO1AN0779EJ0100 Rev 1 00 Page 13 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output vdec_SyncSeparation in Sync separation parameter SyncSeparation NULL should not be specified Members of the structure vdec_SyncSeparation are shown below typedef struct vdec_NoiseRdLPF NoiseRdLPF vde
4. SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Members of the structure vdec ChromaDec are shown below typedef struct vdec_ColorSys Colorsys UWORD Fscmode vdec_Lock Fsclock _UWORD Noburst UWOR UWORD Issecam UWORD Ispal R R UWO Isntsc _UWORD Locklevel L vdec ChromaDec vdec_ChromaSubGain Accsubgain Accmaingain Type Input aa Name ai id vdec ColorSys out Color system detection result Colorsys e VDEC CSYS NTSC NTSC e VDEC CSYS PAL PAL e VDEC CSYS SECAM SECAM e VDEC CSYS NON Undetectable _UWORD out Color sub carrier frequency detection result Fscmode e 0 3 58MHz s 1 4 43MHz vdec_Lock out Burst lock PLL lock state detection result Fsclock e VDEC_UNLOCK Unlocked e VDEC_LOCK Locked _ UWORD out Color burst detection result Noburst e O Color burst present e 1 No color burst present vdec ChromaSubGain out Current ACC gain value sub Accsubgain e VDEC CHR SUBGAIN 1 1 time e VDEC CHR SUBGAIN 2 2 times e VDEC CHR SUBGAIN 4 4 times e VDEC CHR SUBGAIN 8 8 times _UWORD out Current ACC gain value main Accmaingain 0x0000 0x01FF The value 256 corresponds to 1 time _UWORD out SECAM detection result Issecam e 0 Not SECAM signal e 1 SECAM signal _UWORD out PAL detection result Ispal e O Not PAL signal e 1 PAL signal _UWORD out NTSC detection result Isntsc e 0 Not NTSC signal e
5. 12 ieee 0x1068 0x1068 104 0x109C 0x109C 156 0x1040 0x1040 64 0x0078 0x0078 120 0x00D0 0x00D0 208 0x0018 0x0018 24 0x13F0 1008 0x002C 0x0020 44 0x07B8 1976 0x0014 0x0014 20 0x17E8 2024 TOE E SE NA FO NA F8 0x1080 0x1080 128 0x1B30 2864 Ox100C 0x1000 12 0x0548 1 0x0084 0x0084 132 0x0560 1376 0x0008 0x0008 200 0x18C0 2240 0x1438 0x1438 1080 OXOAFO OxOAFO 2800 Ox1CEC Ox1CEC 3308 0x065C 0x065C 1628 e 0x05A4 Ox05A4 1444 Ox1CEC Ox1CEC 3308 0x085C 0x085C 2140 0x0178 0x0178 376 0x1568 0x1568 1384 RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 7tENESAS Page 49 of 58 SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Table 17 Recommended Value for the Structure vdec_OverRange Member Name Initial Value Recommended Value Radj O Levelo 1023u 992u Radj U Level0 0 64u Radj O Levelt 1023u 960u Radj U Level 0 48u Radj O Level 1023u 928u Radj U Level2 0 32u Test Moni 0 0 Radj Mix K Fix 0 0 Ucmp Sw VDEC OFF VDEC ON Demp Sw VDEC OFF VDEC ON Hwide Sw VDEC ON VDEC ON R01AN0779EJ0100 Rev 1 00 Page 50 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 4 1 4 Setting for VDEC_ChromaDec Table 18 Recommended Value for the Structure vdec_ColorSysDet Member Init
6. _UWORD Bgpcheck _UWORD Bgpwidth _UWORD Bgpstart vdec_Bco Type Input a Member Name Sanit Description vdec_BstLckRange in Burst lock PLL lock range Lockrange e VDEC_BST_LCKRNG_400HZ 400 Hz e VDEC_BST_LCKRNG_800HZ 800 Hz e VDEC_BST_LCKRNG_1200HZ 1200 Hz e VDEC_BST_LCKRNG_1600HZ 1600 Hz _UWORD in Burst lock PLL loop gain Loopgain 0x0000 0x0003 _UWORD in Level for burst lock PLL to re search free run frequency R01AN0779EJ0100 Rev 1 00 Page 30 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Locklimit 0x0000 0x0003 vdec_OnOff in Burst lock PLL free run oscillation mode ON OFF Bcofreerun e VDEC OFF VDEC ON _UWORD in Burst gate pulse position check Bgpcheck e 0 Not checked e 1 Checked _UWORD in Burst gate pulse width 27MHz clock cycles Bgpwidth 0x0000 0x007F _UWORD in Burst gate pulse start position 27MHz clock cycles Bgpstart 0x0000 0x00FF Members of the structure vdec_ColorKiller are shown below typedef struct _UWORD Killeroffset vdec OnOff Killermode _UWORD Killerlevel vdec_ColorKiller Type Input E vea Name oil Description _UWORD in Color killer offset Killeroffset 0x0000 0x000F Killerlevel Killeroffset is the level to turn off the color killer vdec_OnOff in Forced color killer mode ON OFF Killermode e VDEC OFF Auto detection e VDE
7. void in Pointer to the user defined function quit_func _ UDWORD If 0 is not specified user defined function will be called with an argument specified by user defined number user num If necessary user defined function must be implemented by the user Syntax void Quit_Func UDWORD User_Num Parameters e in UDWORD User defined User_Num number Return e void Values Description Processing implemented by the user is performed _UDWORD in User defined number user_num This parameter is used as an argument to the user defined function This parameter is ignored when pointer to the user defined function quit_func is set to 0 R01AN0779EJ0100 Rev 1 00 Page 10 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 3 VDEC Input Syntax include vdec api h vdec ErrorCode VDEC Input const vdec InputSelection Input Parameters e in const vdec InputSelection Input Input selection parameter Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined VDEC ERR PARAM RANGE Parameter error Out of range Description In this function the operations are performed as below e The specified parameters for active image period are set The active image period parameters set up in this function are applied only to the Digital Video Decoder module These parameters do not correspond to the display size of the i
8. 1 NTSC signal _UWORD out Low S N signal detection result by burst lock PLL Locklevel 0x0000 0x00FF R01AN0779EJ0100 Rev 1 00 Page 42 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Members of the structure vdec DigitalClamp are shown below typedef struct _UWORD Clamplevel_Y _UWORD Clamplevel_Cb _UWORD Clamplevel_Cr _UWORD Acfstrength vdec O DigitalClamp Type Input ar Member Name ai Descr pron _UWORD out Digital clamp subtraction value Y signal Clamplevel_Y 0x0000 0x03FF 2s complement _UWORD out Digital clamp subtraction value Cb signal Clamplevel_Cb 0x0000 0x003F 2s complement _UWORD out Digital clamp subtraction value Cr signal Clamplevel_Cr 0x0000 0x003F 2s complement _UWORD out Noise autocorrelation strength at digital clamp pulse position Acfstrength normal pedestal position 0x0000 OxFFFF R01AN0779EJ0100 Rev 1 00 Page 43 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 3 User defined Functions Driver calls VDEC_Initialize and VDEC_Terminate allow execution of user defined functions Examples of the user defined function are shown below 3 1 Example of User defined Function within VDEC Initialize 1 FERRARA RAR 2 Function Name Init VDEC CallBack 3 brief 4 param in _UDWORD mode 5 retval void 6 FE
9. BU Hafcmode 2u 2u 2u Hafemin 642u 592u 630u Phdet_Fix 0 0 0 Phdet_Div VDEC PHDET DIV 1 32 VDEC PHDET DIV 1 32 VDEC PHDET DIV 1 32 R01AN0779EJ0100 Rev 1 00 Apr 18 2013 ENESAS Page 46 of 58 SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Table 12 Recommended Value for the Structure vdec_VcountDown Recommended Value Member o NTSC 4 43 Name Initial Value NTSC 3 58 PAL 4 43 PAL M PAL N SECAM Vedfreerun VDEC OFF VDEC OFF VDEC OFF Noved50 VDEC_ON VDEC_OFF VDEC_ON Noved60 VDEC_ON VDEC_ON VDEC_OFF Vcddefault VDEC VCNT FRQ AUTO VDEC VCNT FRO 59 94HZ VDEC VCNT FRQ 50HZ Vedwindow 20u 30u 30u Vcdof set 10u 15u 15u Table 13 Recommended Value for the Structure vdec_Agc Recommended Value PAL 4 43 Member Name Initial Value NTSC 3 58 PAL M NTSC 4 43 PAL N SECAM Agcmode VDEC_OFF VDEC_ON VDEC_ON Doreduce 0 0 0 Noreduce 0 0 0 Agcresponse 5u 4u 4u Agclevel 236u 230u 242u Agcprecis 10u 10u 10u Pga gain 0 0 0 Table 14 Recommended Value for the Structure vdec PeakLimCtrl Member Name Initial Value Recommended Value R01AN0779EJ0100 Rev 1 00 Apr 18 2013 Peaklevel VDEC PEAKLV LIM OFF VDEC PEAKLV 992 Peakattack 2u 2u Peakrelease 0 3u Peakratio VDEC_PEAKRATIO_50 VDEC_PEAKRATIO_50 Maxpeaksamples 0 20u Page 47 of 58 7tENESAS SH7268 SH7269 Group Digital
10. N SECAM Srcleft 316 256 256 Srctop 20 16 19 Srcheight 232 241 288 Srewidth 1280 1428 1412 7tENESAS Page 45 of 58 SH7268 SH7269 Group 4 1 2 Setting for VDEC_SyncSep Digital Video Decoder Driver User s Manual Table 9 Recommended Value for the Structure vdec_NoiseRdLPF Member Name Initial Value Recommended Value Lpfvsync VDEC_LPF_VSYNC_0_54 VDEC_LPF_VSYNC_0_54 Lpfhsync VDEC LPF HSYNC 1 34 VDEC LPF HSYNC 0 94 Table 10 Recommended Value for the Structure vdec_AtLvCtrlSyncSlicer Member Name Initial Value Recommended Value Velocityshift H VDEC VELOCITY SHIFT 1 VDEC VELOCITY SHIFT 4 Slicermode H VDEC SLICE MODE AUTO 50 VDEC SLICE MODE AUTO 50 Slicermode V VDEC SLICE MODE AUTO 50 VDEC SLICE MODE AUTO 50 Syncmaxduty H 15u 15u Syncminduty_H 10u 10u Ssclipsel VDEC CLIP LV 1023 VDEC CLIP LV 1023 Csyncslice_H 146u 146u Syncmaxduty_V 15u 15u Syncminduty_V 10u 9u Vsyncdelay VDEC OFF VDEC OFF Vsyncslice 1u 10u Csyncslice_V 146u 146u Table 11 Recommended Value for the Structure vdec_HorizontalAfc Recommended Value Member Nise Name Initial Value NTSC 3 58 PAL 4 43 PAL M PAL N SECAM Hafegain 6u 12u 12u Hafcfreerun VDEC_OFF VDEC_OFF VDEC_OFF Hafctyp 692u 692u 704u Hafcstart 0 0 0 Nox2Hosc 0 tu tu Dox2Hosc 0 0 0 Hafcmax 742u 792u 785u Hafcend BU BU
11. OxO3FF Approx 2 0 times RO1AN0779EJ0100 Rev 1 00 Page 38 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 9 VDEC_QueryVDEC Syntax include vdec api h vdec ErrorCode VDEC_QueryVDEC vdec Queries param Parameters e out vdec_Queries param Pointer to the result of the query Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined Description In this function the parameters shown below are retrieved from the VDEC read registers e Sync separation parameters e AGC parameters e Chroma decoding parameters e Digital clamp parameters RO1AN0779EJ0100 Rev 1 00 Page 39 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Arguments Settings Type Input Description Parameter Name Output vdec_Queries out Pointer to the result of the query param NULL should not be specified Members of the structure vdec_Queries are shown below typedef struct vdec_Q Sync q_Sync vdec_Q Agc q_Agc vdec ChromaDec q_ChromaDec vdec_Q DigitalClamp q_DigitalClamp vdec_Queries Type Input er Member Name opu pescHpiion vdec_Q_Sync out Pointer to the memory where the sync separation parameter q_Sync is stored If it is unnecessary NULL can be set vdec O Agc out Pointer to the memory where the AGC paramet
12. Unlocked e VDEC LOCK Locked vdec FvMode Fvmode out Vertical countdown oscillation mode e VDEC FVMODE 50HZ 50Hz e VDEC FVMODE 60HZ 60Hz vdec InterDet out Interlace detection result Interlaced VDEC PROGRESSIVE Progressive e VDEC INTERLACE Interlace _UWORD out Vertical cycle measurement result 0 1ms Fvcount 0 255 _UDWORD out Horizontal AFC oscillation cycle 1 64 of 27MHz clock cycle Fhcount 0x00000 0x1FFFF _UWORD out Sync amplitude detection result during VBI period Isreduced e 0 Amplitude is larger than that in image active period e 1 Amplitude is equal to that in image active period _UWORD out Sync pulse amplitude detection result Syncdepth 0x0000 Ox03FF Members of the structure vdec_Q_Agc are shown below typedef struct _UWORD Highsamples _UWORD Peaksamples _UWORD Agcconverge _UWORD Agcgain vdec O Agc Type Input Member Name Output Description _UWORD out Number of pixels which have larger luminance value than Highsamples peak luminance limited by peak limiter 1024pixels 0x0000 0x00FF _UWORD out Number of overflowing pixels 1024pixels Peaksamples 0x0000 0x00FF _UWORD out AGC convergence detection result Agcconverge e O Not converged e 1 Converged _UWORD out Current AGC gain value Agcgain 0x0000 0x00FF The value 64 corresponds to x1 RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 41 of 58 tENESAS
13. VDEC LPF VSYNC 0 27 0 27 MHz e VDEC LPF VSYNC 0 23 0 23 MHz R01AN0779EJ0100 Rev 1 00 Page 14 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual vdec LPFHsync Lpfhsync LPF cutoff frequency before horizontal sync separation e VDEC_LPF_HSYNC_NONE None e VDEC LPF HSYNC 2 15 2 15 MHz e VDEC LPF HSYNC 1 88 1 88 MHz e VDEC LPF HSYNC 1 34 1 34 MHz e VDEC LPF HSYNC 1 07 1 07 MHz e VDEC LPF HSYNC 0 94 0 94 MHz e VDEC LPF HSYNC 0 67 0 67 MHz e VDEC LPF HSYNC 0 54 0 54 MHz Members of the structure vdec AtLvCtrl typedef struct SyncSlicer are shown below vdec_VelocityShift Velocityshift_H vdec_SliceMode Slicermode_H vdec_SliceMode Slicermode_V UWORD Syncmaxduty_H _UWORD Syncminduty_H vdec_ClipLv Ssclipsel _UWORD Csyncslice_H UWORD Syncmaxduty_V _UWORD Syncminduty_V vdec_OnOff Vsyncdelay _UWORD Vsyncslice _UWORD Csyncslice_V L vdec AtLvCtrlSyncSlicer U U L E U Type Member Name Input Output Description vdec_VelocityShift Velocityshift_H in Reference level operation speed control for composite sync separation VDEC_VELOCITY_SHIFT_1 x1 VDEC_VELOCITY_SHIFT_2 x2 VDEC_VELOCITY_SHIFT_4 x 4 VDEC_VELOCITY_SHIFT_8 x 8 VDEC_VELOCITY_SHIFT_16 x 16 VDEC_VELOCITY_SHIFT_32 x 32 VDEC_VELOCITY_SHIFT_64 x 64 VDEC_VELOCITY_SHIFT_128 x 128 VDEC_VELOCITY_SHIFT_25
14. Y C separation parameter YcSeparation NULL should not be specified Members of the structure vdec_YcSeparation are shown below typedef struct vdec_YcSepCtrl vdec_ChrFil vdec_ChrFil vdec_ChrFilT vdec_ChrFil TAP TAP AP TAP YcSepCtrl Wa Wb Na Nb vdec_OverRang vdec_YcSeparation OverRange Type Input s Member Name aii icici sc vdec YcSepCirl in Y C separation control parameter YcSepCtrl Settings will be left unchanged if NULL is specified vdec_ChrFilTAP in Chroma filter TAP coefficient parameter for Y C separation Wa Two dimensional cascade broadband 3 58 4 43 SECAM DR TAKE OFF filter TAP coefficient Settings will be left unchanged if NULL is specified vdec_ChrFilTAP in Chroma filter TAP coefficient parameter for Y C separation Wb Two dimensional cascade broadband SECAM DB filter TAP coefficient Settings will be left unchanged if NULL is specified vdec_ChrFilTAP in Chroma filter TAP coefficient parameter for Y C separation Na Two dimensional cascade narrowband 3 58 4 43 SECAM DR filter TAP coefficient Settings will be left unchanged if NULL is specified vdec_ChrFilTAP in Chroma filter TAP coefficient parameter for Y C separation Nb Two dimensional cascade narrowband SECAM DB filter TAP coefficient Settings will be left unchanged if NULL is specified vdec_OverRange in Over range control parameter OverRange Settings will be left uncha
15. _UWORD in Maximum oscillation frequency of horizontal AFC 27MHz Hafcmax clock cycles 0x0000 Ox03FF _UWORD in End line of horizontal AFC normal operation VBI process RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 17 of 58 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Hafcend start line 0x0000 0x000F UWORD Hafcmode Horizontal AFC VBI period operating mode Loop gain control for low S N and horizontal AFC control during VBI period e 0 Loop gain is fixed and phase comparison is stopped during VBI period e 1 Loop gain is fixed and loop gain is reduced during VBI period e 2 Loop gain is automatically controlled and phase comparison is stopped during VBI period e 3 Loop gain is automatically controlled and loop gain is reduced during VBI period _UWORD Hafemin Min oscillation freguency of horizontal AFC 27MHz clock cycles 0x0000 0x03FF _UWORD Phdet_Fix Forcible or LOWGAIN control 0 LOWGAIN determination result used 1 Forcibly controlled adjusted with Phdet_Div vdec_PhDetDiv Phdet_Div in Phase comparator feedback adjust for low sync signal lock stability VDEC_PHDET_DIV_1_1 1 1 VDEC_PHDET_DIV_1_2 1 2 VDEC_PHDET_DIV_1_4 1 4 VDEC PHDET DIV 1 8 1 8 VDEC PHDET DIV 1 16 1 16 VDEC PHDET DIV 1 32 1 32 Members of the structure vdec_VcountDown are shown below typedef struct vdec_OnOff Vcdfreerun vdec_OnOff Novcd
16. described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges 7 Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or systems manufactured by you 8 Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics prod
17. is set to 1 The value 0x0100 corresponds to 1 time _UWORD in ACC response speed Accresponse 0x0000 0x0003 _UWORD in ACC gain adjustment accuracy Accprecis 0x0000 0x003F Members of the structure vdec_TintRy are shown below typedef struct _UWORD Tintsub _UWORD Tintmain vdec_TintRy Type Input Ee Yaa Name a pescripuon _UWORD in Fine adjustment of R Y demodulation axis 360 1024 Tintsub degrees 0x0000 0x003F 2s complement This parameter is valid only for NTSC PAL _UWORD in Hue adjustment level 360 1024 degrees Tintmain 0x0000 0x03FF 2s complement This parameter is valid only for NTSC PAL R01AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 32 of 58 7tENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 7 VDEC_DigitalClamp Syntax include vdec api h vdec ErrorCode VDEC_DigitalClamp const vdec DigitalClamp DigitalClamp Parameters e in const vdec DigitalClamp Digital clamp parameter DigitalClamp Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined VDEC ERR PARAM RANGE Parameter error Out of range VDEC ERR PARAM INVALID Parameter error Invalid parameter Description In this function the operations are performed as below e Pedestal clamp parameters are set e Center clamp parameters are set e Noise detection parameters are set RO
18. 0 8235 7679 Renesas Electronics Shanghai Co Ltd re l Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited l Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong el 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux Innovation Centre Singapore 339949 el 65 6213 0200 Fax 65 6213 0300 Renesas Electronics Malaysia Sdn Bhd l l Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 2013 Renesas Electronics Corporation All rights reserved Colophon 2 2
19. 1AN0779EJ0100 Rev 1 00 Page 33 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output vdec_DigitalClamp in Digital clamp parameter DigitalClamp NULL should not be specified Members of the structure vdec DigitalClamp are shown below typedef struct vdec PdstiCntrClamp PdstlCntrClamp vdec_NoiseDet NoiseDet L vdec_DigitalClamp Type Input si Member Name Obu Description vdec_PdstlCntrClamp in Pedestal center clamp parameter PdstlICntrClamp Settings will be left unchanged if NULL is specified vdec_NoiseDet in Noise detection parameter NoiseDet Settings will be left unchanged if NULL is specified Members of the structure vdec_Pdst typedef struct _UWORD Dcpresponse _UWORD Dcpstart _UWORD Dcpend _UWORD Dcpwidth ICntrClamp are shown below vdec_PedestalClamp PedestalClamp vdec_CenterClamp CenterClamp vdec_PdstlCntrClamp Type Input ad Member Name G Deseripiion _UWORD in Digital clamp response speed Dcpresponse 0x0000 0x0007 _UWORD in Digital clamp start line lines Dcpstart 0x0000 0x003F _UWORD in Digital clamp end line lines Dcpend 0x0000 0x003F _UWORD in Digital clamp pulse width 27MHz clock cycles Depwidth 0x0000 0x007F vdec PedestalClamp in Pedestal clamp paramet
20. 50 vdec_OnOff Novcd60 vdec VCntDwFreg Vcddefault _UWORD Vcdwindow _UWORD Vcdoffset vdec_VcountDown r i Type Input HT Memba Name ad Description vdec_OnOff in Vertical countdown free run oscillation mode ON OFF Vedfreerun e VDEC OFF e VDEC ON vdec OnOff in Vertical countdown 50 Hz oscillation mode Novcd50 e VDEC_OFF e VDEC_ON vdec OnOff in Vertical countdown 60 Hz 59 94Hz oscillation mode Novcd60 e VDEC_OFF e VDEC_ON vdec_VCntDwFreq in Vertical countdown center oscillation frequency Vcddefault e VDEC VCNT FRQ AUTO Auto detection R01AN0779EJ0100 Rev 1 00 Page 18 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual e VDEC VCNT FRQ 50HZ 50 00 Hz e VDEC VCNT FRQ 59 94HZ 59 94 Hz e VDEC VCNT ERO 60HZ 60 00 Hz _UWORD in Vertical countdown sync area 0 1ms Vedwindow 0x0000 0x003F _UWORD in Vertical countdown minimum oscillation frequency Vcdoffset 0 1ms 0x0000 0x001F Members of the structure vdec Agc are shown below typedef struct vdec OnOff Agcmode _UWORD Doreduce _UWORD Noreduce _UWORD Agcresponse _UWORD Agclevel _UWORD Agcprecis _UWORD Pga_gain vdec_Agc Type Input nee Memb e Name ad Description vdec_OnOff Agcmode in A D converter AGC ON OFF control amp PGA switch e VDEC_OFF AGC OFF PGA manual e VDEC_ON AGC ON automatic _UWORD Doreduce in Manu
21. 6 x256 vdec SliceMode Slicermode H Auto slice level setting for composite sync separator circuit for horizontal sync signal VDEC SLICE MODE MANULAL Manual setting VDEC SLICE MODE AUTO 25 25 of sync depth Auto VDEC SLICE MODE AUTO 50 50 of sync depth Auto VDEC SLICE MODE AUTO 75 75 of sync depth Auto vdec SliceMode Slicermode V Auto slice level setting for composite sync separation circuit for vertical sync signal VDEC SLICE MODE MANULAL Manual setting VDEC SLICE MODE AUTO 25 RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 15 of 58 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 25 of sync depth Auto e VDEC SLICE MODE AUTO 50 50 of sync depth Auto e VDEC SLICE MODE AUTO 75 75 of sync depth Auto _UWORD Syncmaxduty_H Max ratio of horizontal cycle to horizontal sync signal pulse width for horizontal sync separation 0x0000 0x003F This parameter is valid only when auto slice level setting is active Slicemode_H is not set to VDEC_SLICE_MODE_MANUAL _UWORD Syncminduty H Min ratio of horizontal cycle to horizontal sync signal pulse width for horizontal sync separation 0x0000 0x003F This parameter is valid only when auto slice level setting is active Slicemode_H is not set to VDEC_SLICE_MODE_MANUAL vdec_ClipLv Ssclipsel Clipping level e VDEC_CLIP_LV_512 512 e VDEC_
22. A AK I I AR AA AA 7 void Init VDEC CallBack _UDWORD mode 8 9 standby control register 10 STBCR10 10 b7 Q MSTP107 O Video Decoder enable 11 CPG STBCRIO BYTE amp 0x80u 12 3 Example of User defined Function within VDEC_Terminate BORK KKK KK KR KKK KKK I kok k k kk AK KK RK RK I OK 2 1 2 Function Name Quit VDEC CallBack 3 brief 4 5 6 7 8 param in UDWORD mode retval void Fe KK I Kk k kok k kok k K AAA void Quit VDEC CallBack UDWORD mode 9 standby control register 10 STBCR10 10 b7 1 MSTP107 Video Decoder disable 11 CPG STBCR10 BYTE 0x80u 12 R01AN0779EJ0100 Rev 1 00 Page 44 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group 4 Example Usage 4 1 Recommended Setting The recommended values and initial values set in the structures as the argument parameter of the API function are stated below If recommended values of all members in the structures are equal to initial values recommended values are not stated In this section initial value indicates the value immediately after a power on reset 4 1 1 Setting for VDEC_Input Table 8 Recommended Value for the Structure vdec_InputSelection Digital Video Decoder Driver User s Manual RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Recommended Value NTSC 4 43 Member Name Initial Value NTSC 3 58 PAL 4 43 PAL M PAL
23. C ON Killer mode is forcedly ON _UWORD in Color killer operation start point Killerlevel 0x0000 0x003F This parameter controls the level to make the killer ON Members of the structure vdec_AccCtr1 are shown below typedef struct _UWORD Accmode vdec_AccMaxGain Accmaxgain _UWORD Acclevel vdec_ChromaSubGain Chromasubgain UWORD Chromamaingain UWORD Accresponse _UWORD Accprecis L vdec AccCtrl Type Input tet Mumber Name a Description _UWORD in ACC operating mode Accmode e O Auto gain e 1 Manual gain vdec AccMaxGain in Maximum ACC gain R01AN0779EJ0100 Rev 1 00 Page 31 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Accmaxgain e VDEC ACC MAXGAIN 6 6 times e VDEC ACC MAXGAIN 8 8times e VDEC ACC MAXGAIN 12 12 times e VDEC ACC MAXGAIN 16 16 times This parameter is valid only when Accmode is set to 0 _UWORD Acclevel in ACC reference color burst amplitude 0x0000 0x01FF This parameter is valid only when Accmode is set to 0 vdec_ChromaSubGain Chromasubgain _UWORD Chromamaingain in Chroma manual gain sub e VDEC CHR SUBGAIN 1 1 time e VDEC CHR SUBGAIN 2 2 times e VDEC CHR SUBGAIN 4 4 times e VDEC CHR SUBGAIN 8 8 times This parameter is valid only when Accmode is set to 1 in Chroma manual gain main 0x0000 0x01FF This parameter is valid only when Accmode
24. CLIP_LV_546 546 e VDEC_CLIP_LV_580 580 e VDEC_CLIP_LV_614 614 e VDEC_CLIP_LV_648 648 e VDEC_CLIP_LV_682 682 e VDEC_CLIP_LV_716 716 e VDEC_CLIP_LV_750 750 e VDEC_CLIP_LV_785 785 e VDEC_CLIP_LV_819 819 e VDEC_CLIP_LV_853 853 e VDEC_CLIP_LV_887 887 e VDEC_CLIP_LV_921 921 e VDEC_CLIP_LV_955 955 e VDEC_CLIP_LV_989 989 e VDEC_CLIP_LV_1023 1023 _UWORD Csyncslice_H Slice level for composite sync signal separation for horizontal sync signal 0x0000 0x03FF This parameter is valid only when manual slice level setting is active Slicemode_H is set to VDEC_SLICE_MODE_MANUAL _UWORD Syncmaxduty_V Max ratio of horizontal cycle to horizontal sync signal pulse width for vertical sync separation 0x0000 0x003F This parameter is valid only when auto slice level setting is active Slicemode V is not set to VDEC_SLICE_MODE_MANUAL _UWORD Syncminduty_V Min ratio of horizontal cycle to horizontal sync signal pulse width for vertical sync separation 0x0000 0x003F This parameter is valid only when auto slice level setting is active Slicemode V is not set to VDEC_SLICE_MODE_MANUAL vdec_OnOff Vsyncdelay Delays the separated vertical sync signal for 1 4 horizontal cycle RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 16 of 58 7tENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual e VDEC OFF Disable 1 4fH delay e VDEC ON Enable 1 4fH delay Th
25. D 3 Parameter error Invalid parameter was specified VDEC ERR OTHERS 4 Error Others R01AN0779EJ0100 Rev 1 00 Page 5 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 API Function A list of VDEC driver calls is shown in Table 7 Table 7 VDEC Driver Calls Driver Call Function VDEC Initialize Video decoder driver initialization VDEC Terminate Video decoder driver termination VDEC Input Video decoder driver input VDEC_SyncSep Video decoder driver sync separation VDEC_YcSep Video decoder driver y c separation VDEC_ChromaDec Video decoder driver chroma decoding VDEC_DigitalClamp Video decoder driver digital clamp VDEC Output Video decoder driver output VDEC QueryVDEC Querying Video decoder parameter values R01AN0779EJ0100 Rev 1 00 Page 6 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 1 VDEC Initialize Syntax include vdec api h vdec ErrorCode VDEC Initialize vdec VinPin Adc vinsel void init func UDWORD _UDWORD user num Parameters e inlvdec VinPin Adc vinsel Input pin control e in void init func UDWORD Pointer to the user defined function e in UDWORD user num User defined number Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM INVALID Parameter error Invalid parameter Description In this function the operations are performed a
26. ILMODE CASCADE CASCADE BYPASS CASCADE VDEC FILSEL Fil2 Narrow 2D 17TAP VDEC FILSEL 17TAP R01AN0779EJ0100 Rev 1 00 Page 48 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual The recommended values of the chroma filter TAP coefficient parameter for Y C separation are shown below The recommended values for the filter TAP coefficient parameters vary depending on the settings in Fil2_Mode_2D and Fil2 Narrow 2D In case of PAL format the recommended value of Fil2 Mode 2Dis EC FILMODE BYPASS see Table 15 so it is unnecessary to set the chroma filter TAP coefficient parameter for VD Y C separation In case of NTSC format the recommended values are equal to the initial values Table 16 Recommended Value for the Structure vdec_ChrFilTAP Note Values in the parentheses are presented in decimal form Recommended Value Initial PAL 4 43 aaas Value iac ag PALM SECAM PAL N 0x0018 0x0018 24 0x1014 20 0x002C 0x0020 44 0x0018 24 0x0014 0x0014 20 s 0x0040 64 x1034 x1034 52 E x0028 4 sk T i an Es WA FO WA F8 0x1080 0x1080 128 OXTOAS 164 0x100C 0x1000 12 0x1054 84 0x0084 0x0084 132 S 0x006C 108 0x0008 0x0008 200 0x00D8 216 0x100C 0x100C 12 0x0028 0x0028 40 0x003C E 0x003C 60 0x000C 0x000C
27. N0779EJ0100 Rev 1 00 Page 36 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 8 VDEC_Output Syntax include vdec api h vdec ErrorCode VDEC Output const vdec_OutAdj OutAdj Parameters e inlconst vdec_OutAdj OutAdj Output adjustment parameter Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined VDEC ERR PARAM RANGE Parameter error Out of range Description In this function the operations are performed as below e Signal output gain parameters are set RO1AN0779EJ0100 Rev 1 00 Page 37 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output vdec_OutAdj in Output adjustment parameter OutAdj NULL should not be specified Members of the structure vdec OutAdj are shown below typedef struct _UWORD Y_Gain2 _UWORD Cb_Gain2 _UWORD Cr_Gain2 L vdec_OutAdj Type Input Pee Yaa Name G Description _UWORD in Y signal gain coefficient Y_Gain2 0x0000 Ox03FF O O times 0x0200 1 0 time OxO3FF Approx 2 0 times _UWORD in Cb signal gain coefficient Cb_Gain2 0x0000 Ox03FF O O times 0x0200 1 0 time OxO3FF Approx 2 0 times _UWORD in Cr signal gain coefficient Cr_Gain2 0x0000 Ox03FF O O times 0x0200 1 0 time
28. OnOff Nosecam _UWORD Lumadelay vdec OnOff Chromalpf vdec_DemodMode Demodmode vdec_ColorSysDet Type Input Member Name Output pescrprion vdec_ColorSys in Default color system Defaultsys e VDEC CSYS NTSC NTSC e VDEC CSYS PAL PAL R01AN0779EJ0100 Rev 1 00 Page 29 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual e VDEC CSYS SECAM SECAM e VDEC CSYS NON Not specified vdec OnOff in NTSC M detection control Nontsc358 e VDEC OFF VDEC ON vdec_OnOff in NTSC 4 43 detection control Nontsc443 e VDEC_OFF e VDEC ON vdec_OnOff in PAL M detection control Nopalm e VDEC_OFF e VDEC_ON vdec_OnOff in PAL N detection control Nopaln e VDEC_OFF e VDEC_ON vdec_OnOff in PAL B G H I D detection control Nopal443 e VDEC_OFF e VDEC_ON vdec_OnOff in SECAM detection control Nosecam e VDEC_OFF e VDEC_ON _UWORD in Luminance signal delay adjustment Lumadelay 0x0010 16 0x0000 0 0x000F 15 Set a value by the 2s complement vdec OnOff in LPF for demodulated chroma Chromalpf e VDEC OFF Not used e VDEC ON Used vdec DemodMode in Averaging processing for pre demodulated line Demodmode e VDEC DEMMD NO No processing VDEC DEMMD PAL For PAL Members of the structure vdec Bco are shown below typedef struct vdec BstLckRange Lockrange _UWORD Loopgain _UWORD Locklimit vdec_OnOff Bcofreerun
29. RENESAS OO aPPLcaTonnorE SH7268 SH7269 Group RO1ANO779EJ0100 ev 1 Digital Video Decoder Driver User s Manual Apr 18 2013 Introduction This document explains the usage of SH7268 SH7269 Digital Video Decoder hereafter referred to as VDEC Driver Target Device SH7268 SH7269 Contents b E V em P R R P PO 2 28 AR a EUR DARE ARS RARE ENE RR REAR NERI ANE NERDS A NR NR 5 3 User defined Functions sse 44 4 Example USage ss asa casadas pras a a eta a a aides ae oe eater DA tia 45 R01AN0779EJ0100 Rev 1 00 Page 1 of 58 Apr 18 2013 ENESAS ENESAS APPLICATION NOTE 1 Overview 1 1 Environment This program was developed and tested in the following environments e CPU SH7269 e Development Environment HEW SuperH RISC engine microcomputer software integrated development environment Version 4 09 00 007 Renesas SuperH RISC engine Standard Toolchain Version 9 4 1 0 e SH C C Compiler Version 9 04 01 e SH Assembler Version 7 01 02 e SH C C Standard Library Generator Version 3 00 03 e Optimizing Linkage Editor Version 10 01 00 e Evaluation Board SH7269 CPU board Part number ROK572690C000BR SH7269 VDC4 board Part number ROK572690B000BR 1 2 Features The following table lists the features supported by this driver program Table 1 Digital Video Decoder Driver Functions Item Function Input video signal e Video Signal Composite video signal CVBS e A D convertor for video sign
30. Video Decoder Driver User s Manual 4 1 3 Setting for VDEC_YcSep Table 15 Recommended Value for the Structure vdec YcSepCtrl Recommended Value Member Name Initial Value NTSC 3 58 m NTSC 4 43 PAL M SECAM PAL N K15 2u 2u 2u 2u K13 8u 8u 8u 8u K11 4u 4u Su 4u K16 Su 3u 4u 3u K14 16u 16u 63u 16u K12 tu 8u 2u tu K22A 64u 32u 32u 32u K21A 6u 6u 10u 10u K22B 16u 8u 15u 15u K21B 6u 6u 10u 6u K23B 6u 6u 3u 3u K23A Su 3u 3u 3u K24 bu bu 8u 8u VDEC FILSEL Hbpf Narrow 17TAP VDEC FILSEL BYPASS VDEC FILSEL Hvbpf Narrow 17TAP VDEC FILSEL BYPASS VDEC BPFSEL Hbpf1 9Tap On 17TAP VDEC BPFSEL 17TAP VDEC BPFSEL Hvbpfi 9Tap On 17TAP VDEC BPFSEL 17TAP VDEC BPFSEL Hfil Tap Sel 17TAP VDEC BPFSEL 17TAP Det2 On VDEC ON VDEC ON VDEC OFF VDEC ON Hsel Mix Y VDEC FILMIX VDEC FILMIX VDEC FILMIX VDEC FILMIX s RATIO 0 RATIO 75 RATIO 0 RATIO 75 Vsel Mix Y VDEC FILMIX VDEC FILMIX VDEC FILMIX VDEC FILMIX ais RATIO 0 RATIO 75 RATIO 0 RATIO 75 Hvsel Mix Y VDEC FILMIX VDEC FILMIX VDEC FILMIX VDEC FILMIX see RATIO 0 RATIO 0 RATIO 0 RATIO 0 VY Level Su 0 0 0 Det Mix C VDEC FILMIX VDEC FILMIX VDEC FILMIX VDEC FILMIX Rk RATIO 0 RATIO 0 RATIO 0 RATIO 0 Det Mix Y VDEC FILMIX VDEC FILMIX VDEC FILMIX VDEC FILMIX n m RATIO 75 RATIO 25 RATIO 0 RATIO 0 Fil2 Mode 2D VDEC FILMODE VDEC FILMODE VDEC FILMODE VDEC F
31. ader file including IO definitions 1 4 Program Size and Section Program size and section used by this driver are shown below Table 4 Program Size and Section Renesas SuperH RISC engine Standard Toolchain 9 4 1 0 Speed amp size optimization enabled Type Section name Size byte Description ROM P_VDEC 2 5K 4 2K Program area C_VDEC 0 Constant area D VDEC O Initialized data area RAM B VDEC O Uninitialized data area Note Program size does not include Input Video Buffer size Values in the parentheses are program size when parameter checking is defined 1 5 Compilation Switches This driver has compilation switches in vdec_user h 1 5 1 Parameter Checking When _VDEC_PARAMETER_CHECK is defined the driver checks the arguments of driver functions Arguments are checked and error codes are returned if there are errors For error codes see 2 2 Error and 2 3 API Function RO1AN0779EJ0100 Rev 1 00 Page 3 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 1 6 Restriction 1 6 1 Reserved Word To separate from the other program the prefix VWDEC is appended to the API names variable names and other symbols in this driver Therefore the names started with VDEC in both uppercase and lowercase letters should not be used in the other program 1 6 2 Dependency The video decoder output signal which is the result of the deco
32. al control of sync signal amplitude detection during VBI period e 0 Sets sync amplitude to AGC standard value e 1 Sets AGC gain to 3 4 times the normal gain value _UWORD Noreduce in Control of sync signal amplitude detection during VBI period e 0 Detects sync amplitude e 1 Does not detect sync amplitude _UWORD Agcresponse in AGC response speed 0x0000 0x0007 _UWORD Agclevel in Sync signal reference amplitude 0x0000 0x01FF _UWORD Agcprecis in AGC gain adjustment accuracy 0x0000 0x003F _UWORD Pga_gain in PGA gain 0x0000 0 8Vpp 0x001F 1 6Vpp This parameter is valid when Agcmode is set to VDEC_OFF Members of the structure vdec PeakLimCtrl are shown below RO1AN0779EJ0100 Rev 1 00 Page 19 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group typedef s vdec_ truct PeakLevel Peaklevel _UWOR _UWOR vdec_ _UWOR D Peakattack D Peakrelease PeakRatio Peakratio D Maxpeaksamples vdec_PeakLimCtrl Digital Video Decoder Driver User s Manual Type Input gs Member Name nul pesesipton vdec PeakLevel in Peak luminance value to operate peak limiter video signal Peaklevel level e VDEC_PEAKLV_LIM_OFF Limiter OFF e VDEC_PEAKLV_1008 1008 LSB e VDEC_PEAKLV_992 992 LSB e VDEC_PEAKLV_960 960 LSB Peak limiter is not operated if AGC is OFF _UWORD in Response speed with peak limiter gain decreased Peakattack 0x0000 0x0003 _UWORD in Re
33. al input VIN1 and VIN2 pin input selection Programmable gain amplifier PGA Sync separation e Noise reduction LPF e Auto level control sync slicer e Horizontal auto frequency control AFC e Vertical count down e Interlace detection e Auto gain control AGC peak limiter control Burst controlled oscillator BCO e Color sub carrier reproduction e Color system detection Y C separation e NTSC 2D PAL 2D SECAM 1D Chroma decoding e Supporting NTSC PAL and SECAM e Color killer e Auto color control ACC e TINT correction R Y axis correction Digital clamp e Pedestal clamp Y e Center clamp Cb Cr e Noise detection Output adjustment e Contrast and color adjustment RO1AN0779EJ0100 Rev 1 00 Page 2 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 1 3 File Configuration The file configuration of this driver is shown below Table 2 File Configuration File Name Description vdec_api c Source file for VDEC driver functions vdec_api h Header file including the prototype declarations for the VDEC driver calls and definitions of constants vdec_para c Source file checking arguments vdec_user h Header file for compilation option This driver requires external header files as below Table 3 External File Dependencies File Name Description typedefine h Header file including the typedef declarations for the basic types iodefine h He
34. andwidth switch Hfil_Tap_Sel signal e VDEC_BPFSEL_17TAP 17 TAP e VDEC BPFSEL 9TAP 9 TAP vdec OnOff in Two dimensional filter mixing select Det2 On After passing the correlation detection filter signals are mixed or not e VDEC OFF Not mixed e VDEC ON Mixed vdec FilMixRatio Hsel Mix Y Mixing ratio of signal after passing horizontal filter to signal after passing former stage horizontal filter Mixing ratio of signal after passing former stage horizontal filter can be specified as follows e VDEC FILMIX RATIO 0 0 e VDEC FILMIX RATIO 12 5 12 5 e VDEC FILMIX RATIO 25 25 e VDEC FILMIX RATIO 37 5 37 5 e VDEC FILMIX RATIO 50 50 e VDEC FILMIX RATIO 62 5 62 5 e VDEC FILMIX RATIO 75 75 e VDEC FILMIX RATIO 87 5 87 5 e VDEC FILMIX RATIO 100 100 vdec FilMixRatio Vsel Mix Y Mixing ratio of signal after passing vertical filter to signal after passing former stage horizontal vertical filter Mixing ratio of signal after passing former stage horizontal vertical filter can be specified as follows e VDEC FILMIX RATIO 0 0 e VDEC FILMIX RATIO 12 5 12 5 e VDEC FILMIX RATIO 25 25 e VDEC FILMIX RATIO 37 5 37 5 e VDEC FILMIX RATIO 50 50 e VDEC FILMIX RATIO 62 5 62 5 e VDEC FILMIX RATIO 75 75 e VDEC FILMIX RATIO 87 5 87 5 e VDEC FILMIX RATIO 100 100 vdec FilMixRatio Hvsel Mix Y Mixing ratio of signal after passing horizontal verti
35. as been specified Prohibition of Access to Reserved Addresses Access to reserved addresses is prohibited The reserved addresses are provided for the possible future expansion of functions Do not access these addresses the correct operation of LSI is not guaranteed if they are accessed Clock Signals After applying a reset only release the reset line after the operating clock signal has become stable When switching the clock signal during program execution wait until the target clock signal has stabilized When the clock signal is generated with an external resonator or from an external oscillator during a reset ensure that the reset line is only released after full stabilization of the clock signal Moreover when switching to a clock signal produced with an external resonator or by an external oscillator while program execution is in progress wait until the target clock signal is stable Differences between Products Before changing from one product to another i e to one with a different type number confirm that the change will not lead to problems The characteristics of MPU MCU in the same group but having different type numbers may differ because of the differences in internal memory capacity and layout pattern When changing to products of different type numbers implement a system evaluation test for each of the products Notice 1 Descriptions of circuits software and other related informatio
36. c AtLvCtrlSyncSlicer AtLvCtrlSyncSlicer vdec HorizontalAfc HorizontalAfc vdec VcountDown VcountDown vdec Agc Agc vdec PeakLimCtrl PeakLimCtrl vdec SyncSeparation Type Input a ubar Name ad Description vdec_NoiseRdLPF in Noise reduction LPF parameter NoiseRdLPF Settings will be left unchanged if NULL is specified vdec_AtLvCtrlSyncSlicer in Auto level control sync slicer parameter AtLvCtrlSyncSlicer Settings will be left unchanged if NULL is specified vdec_HorizontalAfc in Horizontal AFC parameter HorizontalAfc Settings will be left unchanged if NULL is specified vdec VcountDown in Vertical count down parameter VcountDown Settings will be left unchanged if NULL is specified vdec_Agc in AGC PGA parameter Agc Settings will be left unchanged if NULL is specified vdec PeakLimCtrl in Peak limiter control parameter PeakLimCtrl Settings will be left unchanged if NULL is specified Members of the structure vdec NoiseRdLPF are shown below typedef struct vdec_LPFVsync Lpfvsync vdec_LPFHsync Lpfhsync vdec_NoiseRdLPF Type Input EE Momber Name oi Description vdec_LPFVsync in LPF cutoff frequency before vertical sync separation Lpfvsync e VDEC LPF VSYNC NONE None e VDEC LPF VSYNC 0 94 0 94 MHz e VDEC LPF VSYNC 0 67 0 67 MHz e VDEC LPF VSYNC 0 54 0 54 MHz e VDEC LPF VSYNC 0 47 0 47 MHz e VDEC LPF VSYNC 0 34 0 34 MHz e
37. cal filter to signal after passing former stage horizontal vertical filter Mixing ratio of signal after passing former stage horizontal vertical filter can be specified as follows e VDEC FILMIX RATIO 0 0 e VDEC FILMIX RATIO 12 5 12 5 e VDEC FILMIX RATIO 25 25 e VDEC FILMIX RATIO 37 5 37 5 e VDEC FILMIX RATIO 50 50 R01AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 24 of 58 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual e VDEC_FILMIX_RATIO_62_5 62 5 e VDEC_FILMIX_RATIO_75 75 e VDEC_FILMIX_RATIO_87_5 87 5 e VDEC_FILMIX_RATIO_100 100 _UWORD in Vertical luminance detection level for correlation detection VY Level filter 0x0000 0x01FF vdec FilMixRatio in Mixing ratio of C signal after passing horizontal vertical Det2 Mix C adaptive filter to signal after passing correlation detection filter Mixing ratio of signal after passing correlation detection filter can be specified as follows e VDEC FILMIX RATIO 0 0 e VDEC FILMIX RATIO 12 5 12 5 e VDEC FILMIX RATIO 25 25 e VDEC FILMIX RATIO 37 5 37 5 e VDEC FILMIX RATIO 50 50 e VDEC FILMIX RATIO 62 5 62 5 e VDEC FILMIX RATIO 75 75 e VDEC FILMIX RATIO 87 5 87 5 e VDEC FILMIX RATIO 100 100 vdec FilMixRatio in Mixing ratio of C signal for Y generation after passing Det2 Mix Y horizontal vertical adaptive filter to signal after passing correlation detection f
38. cument may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics 12 Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics RENESAS SALES OFFICES Renesas Electronics Corporation http www renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2880 Scott Boulevard Santa Clara CA 95050 2554 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario L3Y 9C3 Canada Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 651 700 Fax 44 1628 651 804 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 Dusseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 P R China Tel 86 10 8235 1155 Fax 86 1
39. ding is processed as an input signal to the Video Display Controller 4 VDC4 When the video decoder output signal is recorded in the memory and or is displayed on the LCD VDC4 driver is required For VDC4 driver refer to the Video Display Controller 4 Driver User s Manual RO1AN0778EJ R01AN0779EJ0100 Rev 1 00 Page 4 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 API 2 1 Common Definition 2 1 1 Typedef In this driver data types in Table 5 are used These declarations are defined in typedefine h see 1 3 File Configuration Table 5 Typedef Declarations Typedef Type _SBYTE signed char _UBYTE unsigned char _ SWORD signed short _UWORD unsigned short _ SINT signed int _UINT unsigned int _SDWORD signed long _UDWORD unsigned long _SQWORD signed long long _UQWORD unsigned long long 2 1 2 Definition of Enumeration Constants The vdec_OnOff enumeration defines ON and OFF typedef enum VDEC OFF 0 VDEC ON 1 L vdec OnOff Enum Value Description VDEC OFF 0 OFF VDEC_ON 1 ON 2 2 Error API function calls returns an error code The error codes are shown in Table 6 Table 6 Error Code List Error Value Description VDEC_ERR_NONE 0 Normal end VDEC_ERR_PARAM_RANGE 1 Parameter error Specified value was out of range VDEC ERR PARAM UNDEF 2 Parameter error Null should not be specified VDEC ERR PARAM INVALI
40. er PedestalClamp Settings will be left unchanged if NULL is specified vdec CenterClamp in Center clamp parameter CenterClamp Settings will be left unchanged if NULL is specified R01AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 34 of 58 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Members of the structure vdec_PedestalClamp are shown below typedef struct _UWORD Dcpmode Y _UWORD Dcpcheck _UWORD Dcppos_Y E _UWORD Blanklevel Y vdec_OnOff Clp Hold On Y vdec PedestalClamp F Type Input ae Member Name a Pescription _UWORD in Clamp level setting mode Y signal Dcpmode_Y e 0 Manual clamp level setting e 1 Auto clamp level setting _UWORD in Digital clamp pulse position check Dcpcheck e 0 Not checked e 1 Checked _UWORD in Digital clamp pulse horizontal start position Y signal Dcppos_Y 27MHz clock cycles 0x0000 0x00FF _UWORD in Clamp offset level Y signal Blanklevel_Y 0x0000 0x03FF Set the subtraction value 2s complement vdec OnOff in Clamp data hold processing ON OFF Y Clp Hold On Y e VDEC OFF e VDEC ON Members of the structure vdec_CenterClamp are shown below typedef struct _UWORD Dcpmode C _UWORD Dcppos C UWORD Blanklevel UWORD Blanklevel r Cb Cr vdec_OnOff Clp Hold On Cb vdec OnOff Clp Hold On Cr vdec CenterClamp Type Input
41. er is stored Age If it is unnecessary NULL can be set vdec Q ChromaDec out Pointer to the memory where the chroma decoding q ChromaDec parameter is stored If it is unnecessary NULL can be set vdec Q DigitalClamp out Pointer to the memory where the digital clamp parameter is a DigitalClamp stored If it is unnecessary NULL can be set Members of the structure vdec Sync are shown below typedef struct vdec_Lock Fhlock _UWORD Isnoisy vdec_FhMode Fhmode _UWORD Nosignal vdec_Lock Fvlock vdec_FvMode Fvmode vdec_InterDet Interlaced _UWORD Fvcount _UDWORD Fhcount _UWORD Isreduced _UWORD Syncdepth L vdec O Sync Type Input zl Member Name Output Description vdec_Lock out Horizontal AFC lock detection result Fhlock e VDEC_UNLOCK Unlocked R01AN0779EJ0100 Rev 1 00 Page 40 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual e VDEC LOCK Locked _UWORD out Detection result of low S N signal by sync separation Isnoisy e 0 Not low S N signal e 1 Low S N signal vdec_FhMode out Speed detection result Fhmode e VDEC FHMODE Normal speed 525i 625i etc e VDEC_FHMODE P Multiplied speed 525p 625p etc _UWORD out No signal detection result Nosignal e 0 Vertical sync signal detected e 1 No vertical sync signal detected vdec_Lock out Vertical countdown lock detection result Fvlock e VDEC_UNLOCK
42. ial Recommended Value Name Value NTSC 3 58 NTSC 4 43 PAL 4 43 PAL M PAL N SECAM VDEC VDEC Defaultsys CSYS VDEC CSYS NTSC VDEC CSYS PAL CSYS NTSC SECAM Nontsc358 VDEC ON VDEC ON VDEC OFF VDEC OFF VDEC OFF VDEC OFF VDEC OFF Nontsc443 VDEC ON VDEC_OFF VDEC ON VDEC_OFF VDEC_OFF VDEC_OFF VDEC_OFF Nopalm VDEC ON VDEC OFF VDEC OFF VDEC OFF VDEC ON VDEC OFF VDEC OFF Nopaln VDEC ON VDEC OFF VDEC OFF VDEC OFF VDEC OFF VDEC ON VDEC OFF Nopal443 VDEC_ON VDEC_OFF VDEC_OFF VDEC_ON VDEC_OFF VDEC_OFF VDEC_OFF Nosecam VDEC_ON VDEC_OFF VDEC_OFF VDEC_OFF VDEC_OFF VDEC_OFF VDEC_ON Lumadelay 0 0 Chromalpf VDEC_OFF VDEC_OFF VDEC_ Demodmode DEMMD VDEC DEMMD PAL PAL Table 19 Recommended Value for the Structure vdec Bco Page 51 of 58 Member Name Initial Value Recommended Value Lockrange VDEC BST LCKRNG 800HZ VDEC BST LCKRNG 800HZ Loopgain tu 3u Locklimit 2u tu Bcofreerun VDEC OFF VDEC OFF Bgpcheck 0 0 Bgpwidth 36u 54u Bgpstart 130u 110u Table 20 Recommended Value for the Structure vdec ColorKiller Member Name Initial Value Recommended Value Killeroffset 8u 5u Killermode VDEC_OFF VDEC_OFF Killerlevel 9u 4u R01AN0779EJ0100 Rev 1 00 7tENESAS Apr 18 2013 SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Table 21 Recommended Value for the Structure vdec_AccCirl
43. ilter Mixing ratio of signal after passing correlation detection filter can be specified as follows e VDEC FILMIX RATIO 0 0 e VDEC FILMIX RATIO 12 5 12 5 e VDEC FILMIX RATIO 25 25 e VDEC FILMIX RATIO 37 5 37 5 e VDEC FILMIX RATIO 50 50 e VDEC FILMIX RATIO 62 5 62 5 e VDEC FILMIX RATIO 75 75 e VDEC FILMIX RATIO 87 5 87 5 e VDEC FILMIX RATIO 100 100 vdec FilterModeSel in Two dimensional cascade TAKE OFF filter mode select Fil2 Mode 2D e VDEC FILMODE BYPASS Bypass e VDEC_FILMODE_CASCADE Cascade filter e VDEC FILMODE TAKEOFF TAKE OFF filter vdec FilterSel in Two dimensional cascade filter select Fil2 Narrow 2D e VDEC FILSEL BYPASS Bypass e VDEC FILSEL 17TAP 17 TAP Note For details about two dimensional Y C separation filter select coefficient refer to SH7268 Group SH7269 Group User s Manual Hardware RO1UH0048EJ Members of the structure vdec_ChrFilTAP are shown below The value VDEC_CHRFIL_TAPCOE_NUMis 9 typedef struct _UWORD Fil2 2D F VDEC CHRFIL TAPCOE NUM vdec_ChrFilTAP Type Input Description R01AN0779EJ0100 Rev 1 00 Page 25 of 58 Apr 18 2013 SENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Member Name Output _UWORD Fil2_2D_F VDEC_CHRFIL_TAPCOE_NUM in Chroma filter TAP coefficient for Y C separation Sign MSB absolute value 0 4095 0
44. l parameters are set e TINT R Y axis correction parameters are set RO1AN0779EJ0100 Rev 1 00 Page 28 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Arguments Settings Type Input Description Parameter Name Output vdec_ChromaDec in Chroma decoding parameter ChromaDec NULL should not be specified Members of the structure vdec_ChromaDec are shown below typedef struct vdec_ColorSysDet ColorSysDet vdec_Bco Bco vdec_ColorKiller ColorKiller vdec_AccCtrl AccCtrl vdec_TintRy TintRy vdec_ChromaDec Type Input Member Name Output Description vdec_ColorSysDet in Color system detection parameter ColorSysDet Settings will be left unchanged if NULL is specified vdec Bco in BCO parameter Bco Settings will be left unchanged if NULL is specified vdec ColorKiller in Color killer parameter ColorKiller Settings will be left unchanged if NULL is specified vdec AccCtrl in ACC control parameter AccCtrl Settings will be left unchanged if NULL is specified vdec TintRy in TINT R Y axis correction parameter TintRy Settings will be left unchanged if NULL is specified Members of the structure vdec_ColorSysDet are shown below typedef struct vdec_ColorSys Defaultsys vdec OnOff Nontsc358 vdec_OnOff Nontsc443 vdec OnOff Nopalm vdec OnOff Nopaln vdec_OnOff Nopal443 vdec_
45. lmost normal e 6 Fixed to level 2 almost over the range e 7 Fixed to level 3 completely over the range vdec OnOff in Over range detection enable Ucmp Sw e VDEC OFF Disables over range detection e VDEC ON Enables over range detection vdec OnOff in Under range detection enable R01AN0779EJ0100 Rev 1 00 Page 26 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual Dcmp_Sw e VDEC_OFF Disables under range detection e VDEC ON Enables under range detection vdec OnOff in Horizontal enlargement of over under range level Hwide Sw e VDEC OFF Does not provide horizontal enlargement e VDEC ON Provides horizontal enlargement R01AN0779EJ0100 Rev 1 00 Page 27 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 6 VDEC_ChromaDec Syntax include vdec api h vdec ErrorCode VDEC ChromaDec const vdec ChromaDec ChromaDec Parameters e in const vdec ChromaDec Chroma decoding parameter ChromaDec Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined VDEC ERR PARAM RANGE Parameter error Out of range VDEC ERR PARAM INVALID Parameter error Invalid parameter Description In this function the operations are performed as below e Color system detection parameters are set e BCO parameters are set e Color killer parameters are set e ACC contro
46. n in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information 2 Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein 3 Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others 4 You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration modification copy or otherwise misappropriation of Renesas Electr
47. nged if NULL is specified Members of the structure vdec YcSepCtrl are shown below typedef struct _UWORD K15 _UWORD K13 _UWORD K11 _UWORD K16 _UWORD K14 _UWORD K12 Ne mo Ne Ne Ne me RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 22 of 58 7tENESAS SH7268 SH7269 Group _UWORD K22A _UWORD K21A _UWORD K22B _UWORD K21B _UWORD K23B _UWORD K23A _UWORD K24 vdec_FilterSel Hbpf_Narrow vdec_FilterSel Hvbpf_Narrow vdec BpfSel Hbpfl 9Tap On vdec BpfSel Hvbpfl 9Tap On vdec BpfSel Hfil Tap Sel vdec OnOff Det2 On vdec FilMixRatio Hsel Mix Y vdec FilMixRatio Vsel Mix Y vdec FilMixRatio Hvsel Mix Y _UWORD V Y Level vdec FilMixRatio Det2 Mix C vdec FilMixRatio Det2 Mix Y vdec FilterModeSel Fil2 Mode 2D vdec FilterSel Fil2 Narrow 2D vdec_YcSepCtrl Digital Video Decoder Driver User s Manual Type Input a nai Yaa Name oil Description _UWORD in Two dimensional Y C separation filter select coefficient K15 0x0000 0x000F _UWORD in Two dimensional Y C separation filter select coefficient K13 0x0000 0x003F _UWORD in Two dimensional Y C separation filter select coefficient K11 0x0000 0x003F _UWORD in Two dimensional Y C separation filter select coefficient K16 0x0000 0x000F _UWORD in Two dimensional Y C separation filter select coefficient K14 0x0000 0
48. nput video To set the display size of the input video Video Display Controller 4 module should be used Before the settings are reflected it will take a period of time equal to 1 Vsync period time at the most RO1AN0779EJ0100 Rev 1 00 Page 11 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output vdec_InputSelection in Input selection parameter Input Active image period parameter of input video signal NULL should not be specified Members of the structure vdec_InputSelection are shown below typedef struct _UWORD Srcleft _UWORD Srctop _UWORD Srcheight _UWORD Srcwidth vdec_InputSelection Type Input Ss Member Name crit Description _UWORD in Left end of input video signal capturing area 27MHz Srcleft clock cycles 0x0000 0x01FF _UWORD in Top end of input video signal capturing area lines Srctop 0x0000 0x003F _UWORD in Height of input video signal capturing area lines Srcheight 0x0000 0x03FF _UWORD in Width of input video signal capturing area 27MHz clock Srewidth cycles 0x0000 0x07FF R01AN0779EJ0100 Rev 1 00 Page 12 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 4 VDEC_SyncSep Syntax include vdec api h vdec ErrorCode VDEC SyncSep const vdec SyncSeparation SyncSeparation
49. ns of the manual If the descriptions under General Precautions in the Handling of MPU MCU Products and in the body of the manual differ from each other the description in the body of the manual takes precedence 1 Handling of Unused Pins Handle unused pins in accord with the directions given under Handling of Unused Pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of LSI an associated shoot through current flows internally and malfunctions occur due to the false recognition of the pin state as an input signal become possible Unused pins should be handled as described under Handling of Unused Pins in the manual Processing at Power on The state of the product is undefined at the moment when power is supplied The states of internal circuits in the LSI are indeterminate and the states of register settings and pins are undefined at the moment when power is supplied In a finished product where the reset signal is applied to the external reset pin the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed In a similar way the states of pins in a product that is reset by an on chip power on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting h
50. onics product 5 Renesas Electronics products are classified according to the following two quality grades Standard and High Quality The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots etc High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems and safety equipment etc Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to human life or bodily injury artificial life support devices or systems surgical implantations etc or may cause serious property damages nuclear reactor control systems military equipment etc You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application for which it is not intended Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics 6 You should use the Renesas Electronics products
51. parameter is used as an argument to the user defined function This parameter is ignored when pointer to the user defined function init_func is set to 0 R01AN0779EJ0100 Rev 1 00 Page 8 of 58 Apr 18 2013 RENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 2 VDEC_Terminate Syntax include vdec api h vdec ErrorCode VDEC_Terminate void quit_func _ UDWORD _UDWORD user num Parameters e in void quit func UDWORD Pointer to the user defined function e in UDWORD user num User defined number Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end Description In this function the operations are performed as below e The specified user defined function is executed After VDEC driver termination user defined function specified by quit func is called For information about the process of user defined function see 3 2 It is not always necessary to specify the user defined function pointer If user defined function is not specified the operation stated below may be performed after this VDEC driver termination e Halt the clock supply to the VDEC e Set the environment specific parameters e g related to input video image RO1AN0779EJ0100 Rev 1 00 Page 9 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output
52. pos_C 27u 54u Blanklevel Cb 0 0 Blanklevel_ Cr 0 0 Clp_Hold_On_Cb VDEC_ON VDEC_OFF Clp_Hold_On_Cr VDEC_ON VDEC_OFF Table 25 Recommended Value for the Structure vdec_NoiseDet Page 53 of 58 Member Name Initial Value Recommended Value Acfinput VDEC_VDSIG_ATCRR_Y VDEC_VDSIG_ATCRR_Y Acflagtime 0 0 Acffilter 0 3u R01AN0779EJ0100 Rev 1 00 Apr 18 2013 RENESAS SH7268 SH7269 Group 4 1 6 Setting for VDEC_Output Digital Video Decoder Driver User s Manual Table 26 Recommended Value for the Structure vdec_OutAdj Member Name Initial Value Recommended Value Y Gain2 512u 816u Cb Gain2 512u 663u Cr Gain2 512u 663u RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 7tENESAS Page 54 of 58 SH7268 SH7269 Group Website and Support Renesas Electronics Website http www renesas com Inquiries http www renesas com inquiry All trademarks and registered trademarks are the property of their respective owners RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Digital Video Decoder Driver User s Manual ENESAS Page 55 of 58 Revision Record Description Rev Date Page Summary 1 00 Apr 18 2013 First edition issued A 1 General Precautions in the Handling of MPU MCU Products The following usage notes are applicable to all MPU MCU products from Renesas For detailed usage notes on the products covered by this manual refer to the relevant sectio
53. reshold for vertical sync separation 0x0000 0x001F Slice level for composite sync signal separation for vertical _UWORD in Vsyncslice _UWORD in Csyncslice_V sync signal 0x0000 0x03FF This parameter is valid only when manual slice level setting is active Slicemode_V is set to VDEC_SLICE_MODE_MANUAL Members of the structure vdec_HorizontalAfc are shown below typedef struct _UWORD Hafcgain vdec_OnOff Hafcfreerun _UWORD Hafctyp _UWORD Hafcstart _UWORD Nox2Hosc _UWORD Dox2Hosc _UWORD Hafcmax _UWORD Hafcend _UWORD Hafcmode _UWORD Hafcmin _UWORD Phdet_Fix vdec_PhDetDiv Phdet_Div vdec HorizontalAfc Type Input j Member Name ai pescnpupn _UWORD in Horizontal AFC loop gain Hafcgain 0x0000 0x000F vdec_OnOff in Horizontal AFC free run oscillation mode ON OFF Hafcfreerun e VDEC_OFF e VDEC_ON _UWORD in Horizontal AFC center oscillation frequency 27MHz clock Hafctyp cycles 0x0000 Ox03FF _UWORD in Start line of horizontal AFC normal operation VBI process Hafcstart end line 0x0000 0x000F _UWORD in Disable of horizontal AFC double speed detection Nox2Hosc e 0 Auto control e 1 Double speed oscillation disabled _UWORD in Horizontal AFC forced double speed oscillation Dox2Hosc e 0 Auto control e 1 Forced double speed oscillation In the NTSC PAL and SECAM formats this parameter should always be set to 0
54. s below e The specified user defined function is executed e The pin for inputting composite video signals is selected Before VDEC driver initialization user defined function specified by init_func is called For information about the process of user defined function see 3 1 It is not always necessary to specify the user defined function pointer If user defined function is not specified the operation stated below should be performed before this VDEC driver initialization e Supply the clock to the VDEC e Set the environment specific parameters e g related to input video image RO1AN0779EJ0100 Rev 1 00 Page 7 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output vdec_VinPin Adc_vinsel in Input pin control Composite video signal CVBS input pin e VDEC_VIN_1 VINT input e VDEC_VIN_2 VIN2 input void in Pointer to the user defined function init_func _ UDWORD If 0 is not specified user defined function will be called with an argument specified by user defined number user num If necessary user defined function must be implemented by the user Syntax void Init_Func UDWORD User Num Parameters e in UDWORD User defined User Num number Return e void Values Description Processing implemented by the user is performed _UDWORD in User defined number user_num This
55. sponse speed with peak limiter gain increased Peakrelease 0x0000 0x0003 vdec_PeakRatio in Maximum compression rate of peak limiter Peakratio e VDEC PEAKRATIO 50 Compressed up to 50 e VDEC PEAKRATIO 25 Compressed up to 25 e VDEC PEAKRATIO 12 5 Compressed up to 12 5 e VDEC PEAKRATIO 0 Compressed up to 0 _UWORD in Allowable number of overflowing pixels 1024 pixels Maxpeaksamples 0x0000 0x00FF RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 20 of 58 7tENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual 2 3 5 VDEC_YcSep Syntax include vdec api h vdec ErrorCode VDEC YcSep const vdec YcSeparation YcSeparation Parameters e in const vdec YcSeparation Y C separation parameter YcSeparation Return e vdec ErrorCode Error code Values VDEC ERR NONE Normal end VDEC ERR PARAM UNDEF Parameter error Undefined VDEC ERR PARAM RANGE Parameter error Out of range VDEC ERR PARAM INVALID Parameter error Invalid parameter Description In this function the operations are performed as below e Y C separation control parameters are set e Chroma filter TAP coefficient parameters for Y C separation are set e Over range control parameters are set RO1AN0779EJ0100 Rev 1 00 Page 21 of 58 Apr 18 2013 ENESAS SH7268 SH7269 Group Arguments Settings Digital Video Decoder Driver User s Manual Type Input Description Parameter Name Output vdec_YcSeparation in
56. uct Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations 9 Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations You should not use Renesas Electronics products or technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction When exporting the Renesas Electronics products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations 10 It is the responsibility of the buyer or distributor of Renesas Electronics products who distributes disposes of or otherwise places the product with a third party to notify such third party in advance of the contents and conditions set forth in this document Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products 11 This do
57. x0000 OxOFFF 0 4095 0x1000 Ox1FFF 0 4095 Members of the structure vdec OverRange are shown below typedef struct UWOR UWOR UWOR _UWOR UWOR UWOR UWOR UWOR D D D D D D D D M NFR rR OO vdec_OnOff Ucmp_Sw vdec OnOff Dcmp_Sw vdec_OnOff Hwide_Sw vdec_OverRange Ne Ne Ne Ne Ne as Radj O Level Radj U Level Radj O Level Radj U Level Radj O Level Radj U Level Test Moni Radj Mix K Fix Type Input fiber Name ai giaialnad _UWORD in A D over threshold level between levels 0 and 1 Radj O Level0 0x0000 0x03FF _UWORD in A D under threshold level between levels 2 and 3 Radj U Level0 0x0000 0x03FF _UWORD in A D over threshold level between levels 1 and 2 Radj_O Levelt 0x0000 0x03FF _UWORD in A D under threshold level between levels 2 and 1 Radj_U_Level1 0x0000 0x03FF _UWORD in A D over threshold level between levels 2 and 3 Radj O Level 0x0000 0x03FF _UWORD in A D under threshold level between levels 1 and 0 Radj_U_Level2 0x0000 0x03FF _UWORD in Test mode Test_Moni e 0 3 Normal operation e 4 Level O partis output as black e 5 Level 1 part is output as black e 6 Level 2 part is output as black e 7 Level 3 part is output as black _UWORD in Forced range over under mode Radj_Mix_K_Fix e 0 3 Auto detection e 4 Level O normal state e 5 Fixedto level 1 a
58. x003F _UWORD in Two dimensional Y C separation filter select coefficient K12 0x0000 0x003F _UWORD in Two dimensional Y C separation filter select coefficient K22A 0x0000 0x00FF _UWORD in Two dimensional Y C separation filter select coefficient K21A 0x0000 0x003F _UWORD in Two dimensional Y C separation filter select coefficient K22B 0x0000 0x00FF _UWORD in Two dimensional Y C separation filter select coefficient K21B 0x0000 0x003F _UWORD in Two dimensional Y C separation filter select coefficient K23B 0x0000 0x000F _UWORD in Two dimensional Y C separation filter select coefficient K23A 0x0000 0x000F _UWORD in Two dimensional Y C separation filter select coefficient K24 0x0000 0x001F vdec_FilterSel in Latter stage horizontal BPF select Hbpf_Narrow e VDEC FILSEL BYPASS Bypass e VDEC FILSEL 17TAP 17 TAP RO1AN0779EJ0100 Rev 1 00 Apr 18 2013 Page 23 of 58 ENESAS SH7268 SH7269 Group Digital Video Decoder Driver User s Manual vdec FilterSel Hvbpf Narrow Latter stage horizontal vertical BPF select e VDEC FILSEL BYPASS Bypass e VDEC FILSEL 17TAP 17 TAP vdec_BpfSel Hbpf1_9Tap_On Former stage horizontal BPF select e VDEC_BPFSEL_17TAP 17 TAP e VDEC_BPFSEL_9TAP 9 TAP vdec_BpfSel Hvbpf1_9Tap_ On Former stage horizontal vertical BPF select e VDEC_BPFSEL_17TAP 17 TAP e VDEC_BPFSEL_9TAP 9 TAP vdec_BpfSel in Horizontal filter and horizontal vertical filter b
Download Pdf Manuals
Related Search
Related Contents
Englisch Euro-Pro K5345 User's Manual to the Users` Guide for the Challenge 20/20 Portal Valsi [Generadores] Fingerprint Identification Proximity Reader NARRATEUR, BEFFATORE, NÉCROMANCIEN : LES AVATARS DE Manual Técnico. - Iniciativas Murcia - AURA Technology Limited Bedienungsanleitung (Deutsch) betriebsanleitung Copyright © All rights reserved.
Failed to retrieve file