This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368 1080P@30 frame rate performance

Hi, I am using DVSDK 4_02_00_06 and start with h264enc 2_20_00_01 but updated to 2_30_00_06 because the performance not reach 30fps.

CPU_freq=432MHZ

DDR_freq=340MHZ

I am using the example file attached and tested under four circunstance:


*************Case 1: #define CAPTURE_OFF  FALSE    #define DISPLAY_OFF  FALSE*******************************
Frame 0: Read time: 661us      [1] Encode: 40807us   PromTime: 40807  File write time: 11073us      Total: 52594us
Frame 1: Read time: 33511us  [2] Encode: 35115us   PromTime: 37961  File write time: 2392us      Total: 123609us
Frame 2: Read time: 29018us  [3] Encode: 35055us   PromTime: 36992  File write time: 5457us      Total: 193153us
Frame 3: Read time: 25908us  [4] Encode: 35626us   PromTime: 36650  File write time: 4800us      Total: 259473us
Frame 4: Read time: 26248us  [5] Encode: 35771us   PromTime: 36474  File write time: 3686us      Total: 325187us
Frame 5: Read time: 27189us  [6] Encode: 35714us   PromTime: 36348  File write time: 4072us      Total: 392168us
Frame 6: Read time: 26871us  [7] Encode: 35374us   PromTime: 36208  File write time: 4281us      Total: 458687us
Frame 7: Read time: 27006us  [8] Encode: 35426us   PromTime: 36111  File write time: 2752us      Total: 523865us
Frame 8: Read time: 28491us  [9] Encode: 35141us   PromTime: 36003  File write time: 3859us      Total: 591352us
Frame 9: Read time: 27653us  [10] Encode: 34630us PromTime: 35865  File write time: 1631us      Total: 655281us

*************Case 2: #define CAPTURE_OFF  TRUE    #define DISPLAY_OFF  FALSE*******************************
Frame 0: Read time: 110707us [1] Encode: 34972us  PromTime: 34972  File write time: 3037us      Total: 148762us
Frame 1: Read time: 32280us   [2] Encode: 29684us   PromTime: 32328  File write time: 491us      Total: 211208us
Frame 2: Read time: 3153us     [3] Encode: 29416us   PromTime: 31357  File write time: 800us      Total: 244592us
Frame 3: Read time: 3079us     [4] Encode: 29407us   PromTime: 30869  File write time: 168us      Total: 277217us
Frame 4: Read time: 3785us     [5] Encode: 29424us   PromTime: 30580  File write time: 112us      Total: 310536us
Frame 5: Read time: 3780us     [6] Encode: 29449us   PromTime: 30392  File write time: 98us      Total: 343865us
Frame 6: Read time: 3793us     [7] Encode: 29435us   PromTime: 30255  File write time: 79us      Total: 377167us
Frame 7: Read time: 3821us     [8] Encode: 29435us   PromTime: 30152  File write time: 92us      Total: 410518us
Frame 8: Read time: 3792us     [9] Encode: 29447us   PromTime: 30074  File write time: 90us      Total: 443849us
Frame 9: Read time: 3804us     [10] Encode: 29406us   PromTime: 30007  File write time: 87us      Total: 477142us

*************Case 3: #define CAPTURE_OFF  TRUE    #define DISPLAY_OFF  TRUE*******************************
Frame 0: Read time: 106895us [1] Encode: 35005us  PromTime: 35005  File write time: 7927us      Total: 149871us
Frame 1: Read time: 324us        [2] Encode: 29511us   PromTime: 32258  File write time: 964us      Total: 180666us
Frame 2: Read time: 339us        [3] Encode: 29254us   PromTime: 31256  File write time: 151us      Total: 210391us
Frame 3: Read time: 292us        [4] Encode: 29240us   PromTime: 30752  File write time: 103us      Total: 240025us
Frame 4: Read time: 312us        [5] Encode: 29222us   PromTime: 30446  File write time: 93us      Total: 269650us
Frame 5: Read time: 313us        [6] Encode: 29243us   PromTime: 30245  File write time: 75us      Total: 299282us
Frame 6: Read time: 311us        [7] Encode: 29240us   PromTime: 30102  File write time: 71us      Total: 328904us
Frame 7: Read time: 312us        [8] Encode: 29243us   PromTime: 29994  File write time: 72us      Total: 358531us
Frame 8: Read time: 313us        [9] Encode: 29238us   PromTime: 29910  File write time: 69us      Total: 388150us
Frame 9: Read time: 312us        [10] Encode: 29214us   PromTime: 29841  File write time: 85us      Total: 417762us

*************Case 4: #define CAPTURE_OFF  FALSE    #define DISPLAY_OFF  TRUE********************************
Frame 0: Read time: 410us      [1] Encode: 40685us   PromTime: 40685  File write time: 7571us      Total: 48725us
Frame 1: Read time: 583us      [2] Encode: 33312us   PromTime: 36998  File write time: 2094us      Total: 84718us
Frame 2: Read time: 5656us    [3] Encode: 32693us   PromTime: 35563  File write time: 3447us      Total: 126499us
Frame 3: Read time: 505us      [4] Encode: 32280us   PromTime: 34742  File write time: 2391us      Total: 161674us
Frame 4: Read time: 496us      [5] Encode: 32260us   PromTime: 34246  File write time: 2045us      Total: 196480us
Frame 5: Read time: 485us      [6] Encode: 32123us   PromTime: 33892  File write time: 2246us      Total: 231335us
Frame 6: Read time: 484us      [7] Encode: 32108us   PromTime: 33637  File write time: 2151us      Total: 266083us
Frame 7: Read time: 492us      [8] Encode: 32162us   PromTime: 33452  File write time: 1891us      Total: 300613us
Frame 8: Read time: 596us      [9] Encode: 32222us   PromTime: 33316  File write time: 1925us      Total: 335360us
Frame 9: Read time: 483us     [10] Encode: 32193us   PromTime: 33203  File write time: 2141us      Total: 370176us

as you can see the encoder time when capture and preview are off is ~30ms, when only use preview then encoder time is the same, but when i add the capture the encoder time is ~35ms.

I already made :
1)       DDR timing: The value of the below registers can affect the performance of the system.  Hence, it is advised to review the value of these registers and should be kept at the most optimized value. There is no specific recommended value, as the value will change depending on the DDR used in the product. For details please refer to : http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sprufi2&fileType=pdf


DDR->SDTIMR
DDR->SDTIMR2
DDR->SDBCR
DDR->SDRCR

2)       MASTER Priority: The master priority registers needs to be modified as below. For details, please refer to http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sprufg5a&fileType=pdf for details on meaning of this register.

MSTPRI0 : 0x1c4003C = 0x440022

3)       Resizer registers: Optimized settings for DDR access of resizer. For details, please refer to http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sprufg8c&fileType=pdf for details on meaning of this register.

0x01C7:0420h (DMA_RZA SDRAM Request Minimum Interval for RZA) = 0x40
0x01C7:0424h (DMA_RZB SDRAM Request Minimum Interval for RZB) = 0x40

The question is, can i do something to improve performance or i just reach the best time?

  • 1080P 720P
    0x01C7:1000 ISIF Image Sensor Interface 000h SYNCEN Synchronization Enable 0x00000001 0x00000001
    004h MODESET Mode Setup 0x00001000 0x00001000
    008h HDW HD pulse width 0x00000000 0x00000000
    00Ch VDW VD pulse width 0x00000000 0x00000000
    010h PPLN Pixels per line 0x00000000 0x00000000
    014h LPFR Lines per frame 0x00000000 0x00000000
    018h SPH Start pixel horizontal 0x00000000 0x00000000
    01Ch LNH Number of pixels in line 0x000004FF 0x000004FF
    020h SLV0 Start line vertical - field 0 0x00000001 0x00000001
    024h SLV1 Start line vertical - field 1 0x00000001 0x00000001
    028h LNV Number of lines vertical 0x000002CF 0x000002CF
    02Ch CULH Culling - horizontal 0x0000FFFF 0x0000FFFF
    030h CULV Culling - vertical 0x000000FF 0x000000FF
    034h HSIZE Horizontal size 0x00000050 0x00000050
    038h SDOFST SDRAM Line Offset 0x00000000 0x00000000
    03Ch CADU SDRAM Address - high 0x00000000 0x00000000
    040h CADL SDRAM Address - low 0x00000000 0x00000000
    04Ch CCOLP CCD Color Pattern 0x00000000 0x00000000
    050h CRGAIN CCD Gain Adjustment - R/Ye 0x00000200 0x00000200
    054h CGRGAIN CCD Gain Adjustment - Gr/Cy 0x00000200 0x00000200
    058h CGBGAIN CCD Gain Adjustment - Gb/G 0x00000200 0x00000200
    05Ch CBGAIN CCD Gain Adjustment - B/Mg 0x00000200 0x00000200
    060h COFSTA CCD Offset Adjustment 0x00000000 0x00000000
    064h FLSHCFG0 FLSHCFG0 0x00000000 0x00000000
    068h FLSHCFG1 FLSHCFG1 0x00000000 0x00000000
    06Ch FLSHCFG2 FLSHCFG2 0x00000000 0x00000000
    070h VDINT0 VD Interrupt #0 0x000002CF 0x000002CF
    074h VDINT1 VD Interrupt #1 0x00000169 0x00000169
    078h VDINT2 VD Interrupt #2 0x00000000 0x00000000
    080h CGAMMAWD Gamma Correction settings 0x00000000 0x00000000
    084h REC656IF CCIR 656 Control 0x00000003 0x00000003
    088h CCDCFG CCD Configuration 0x00000800 0x00000800
    08Ch DFCCTL Defect Correction - Control 0x00000000 0x00000000
    090h VDFSATLV Defect Correction - Vertical Saturation Level 0x00000000 0x00000000
    094h DFCMEMCTL Defect Correction - Memory Control 0x00000000 0x00000000
    098h DFCMEM0 Defect Correction - Set V Position 0x00000000 0x00000000
    09Ch DFCMEM1 Defect Correction - Set H Position 0x00000000 0x00000000
    0A0h DFCMEM2 Defect Correction - Set SUB1 0x00000000 0x00000000
    0A4h DFCMEM3 Defect Correction - Set SUB2 0x00000000 0x00000000
    0A8h DFCMEM4 Defect Correction - Set SUB3 0x00000000 0x00000000
    0ACh CLAMPCFG Black Clamp configuration 0x00000000 0x00000000
    0B0h CLDCOFST DC offset for Black Clamp 0x00000000 0x00000000
    0B4h CLSV Black Clamp Start position 0x00000000 0x00000000
    0B8h CLHWIN0 Horizontal Black Clamp configuration 0x00000000 0x00000000
    0BCh CLHWIN1 Horizontal Black Clamp configuration 0x00000000 0x00000000
    0C0h CLHWIN2 Horizontal Black Clamp configuration 0x00000000 0x00000000
    0C4h CLVRV Vertical Black Clamp configuration 0x00000000 0x00000000
    0C8h CLVWIN0 Vertical Black Clamp configuration 0x00000000 0x00000000
    0CCh CLVWIN1 Vertical Black Clamp configuration 0x00000000 0x00000000
    0D0h CLVWIN2 Vertical Black Clamp configuration 0x00000000 0x00000000
    0D4h CLVWIN3 Vertical Black Clamp configuration 0x00000000 0x00000000
    11Ch FMTSPH CCD Formatter - Start pixel horizontal 0x00000000 0x00000000
    120h FMTLNH CCD Formatter - number of pixels 0x00000000 0x00000000
    124h FMTSLV CCD Formatter - start line vertical 0x00000000 0x00000000
    128h FMTLNV CCD Formatter - number of lines 0x00000000 0x00000000
    12Ch FMTRLEN CCD Formatter - Read out line length 0x00000000 0x00000000
    130h FMTHCNT CCD Formatter - HD cycles 0x00000000 0x00000000
    1A4h CSCCTL Color Space Converter Enable 0x00000000 0x00000000
    1A8h CSCM0 Color Space Converter - Coefficients #0 0x00000000 0x00000000
    1ACh CSCM1 Color Space Converter - Coefficients #1 0x00000000 0x00000000
    1B0h CSCM2 Color Space Converter - Coefficients #2 0x00000000 0x00000000
    1B4h CSCM3 Color Space Converter - Coefficients #3 0x00000000 0x00000000
    1B8h CSCM4 Color Space Converter - Coefficients #4 0x00000000 0x00000000
    1BCh CSCM5 Color Space Converter - Coefficients #5 0x00000000 0x00000000
    1C0h CSCM6 Color Space Converter - Coefficients #6 0x00000000 0x00000000
    1C4h CSCM7 Color Space Converter - Coefficients #7 0x00000000 0x00000000
    0x01C7:1200 IPIPEIF Image Pipe Interface 00h ENABLE IPIPE I/F Enable 0x00000000 0x00000000
    04h CFG1 IPIPE I/F Configuration 1 0x00002000 0x00002000
    08h PPLN IPIPE I/F Interval of HD / Start pixel in HD 0x00000000 0x00000000
    0Ch LPFR IPIPE I/F Interval of VD / Start line in VD 0x00000000 0x00000000
    10h HNUM IPIPE I/F Number of valid pixels per line 0x00000000 0x00000000
    14h VNUM IPIPE I/F Number of valid lines per frame 0x00000000 0x00000000
    18h IPIPE I/F Memory address (upper) 0x00000000 0x00000000
    1Ch ADDRL IPIPE I/F Memory address (lower) 0x00000000 0x00000000
    20h ADOFS IPIPE I/F Address offset of each line 0x00000000 0x00000000
    24h RSZ IPIPE I/F Horizontal resizing parameter 0x00000010 0x00000010
    28h GAIN IPIPE I/F Gain parameter 0x00000200 0x00000200
    2Ch DPCM IPIPE I/F DPCM configuration 0x00000000 0x00000000
    30h CFG2 IPIPE I/F Configuration 2 0x00000008 0x00000008
    34h INIRSZ IPIPE I/F Initial position of resize 0x00000000 0x00000000
    38h OCLIP IPIPE I/F Output clipping value 0x00000FFF 0x00000FFF
    3Ch DTUDF IPIPE I/F Data underflow error status 0x00000000 0x00000000
    40h CLKDIV IPIPE I/F Clock rate configuration 0x00000001 0x00000001
    44h DPC1 IPIPE I/F Defect pixel correction 0x00000000 0x00000000
    48h DPC2 IPIPE I/F Defect pixel correction 0x00000000 0x00000000
    54h RSZ3A IPIPE I/F Horizontal resizing parameter for H3A 0x00000010 0x00000010
    58h INIRSZ3A IPIPE I/F Initial position of resize for H3A 0x00000000 0x00000000
    0x01C7:0800 IPIPE Image Pipe 000h SRC_EN IPIPE Enable 0x00000001 0x00000001
    004h SRC_MODE One Shot Mode 0x00000000 0x00000000
    008h SRC_FMT Input/Output Data Paths 0x00000003 0x00000003
    00Ch SRC_COL Color Pattern 0x000000E4 0x000000E4
    010h SRC_VPS Vertical Start Position 0x0000001F 0x0000001E
    014h SRC_VSZ Vertical Processing Size 0x000002CF 0x000002CF
    018h SRC_HPS Horizontal Start Position 0x00000000 0x00000000
    01Ch SRC_HSZ Horizontal Processing Size 0x000004FF 0x000004FF
    024h DMA_STA Status Flags (Reserved) 0x00000000 0x00000000
    028h GCK_MMR MMR Gated Clock Control 0x00000001 0x00000001
    02Ch GCK_PIX PCLK Gated Clock Control 0x0000000E 0x0000000E
    030h Reserved Reserved 0x00000000 0x00000000
    034h DPC_LUT_EN LUTDPC (=LUT Defect Pixel Correction): Enable 0x00000000 0x00000000
    038h DPC_LUT_SEL LUTDPC: Processing Mode Selection 0x00000000 0x00000000
    03Ch DPC_LUT_ADR LUTDPC: Start Address in LUT 0x00000000 0x00000000
    040h DPC_LUT_SIZ LUTDPC: Number of available entries in LUT 0x00000000 0x00000000
    1D0h WB2_OFT_R WB2 (=White Balance): Offset 0x00000000 0x00000000
    1D4h WB2_OFT_GR WB2: Offset 0x00000000 0x00000000
    1D8h WB2_OFT_GB WB2: Offset 0x00000000 0x00000000
    1DCh WB2_OFT_B WB2: Offset 0x00000000 0x00000000
    1E0h WB2_WGN_R WB2: Gain 0x00000200 0x00000200
    1E4h WB2_WGN_GR WB2: Gain 0x00000200 0x00000200
    1E8h WB2_WGN_GB WB2: Gain 0x00000200 0x00000200
    1ECh WB2_WGN_B WB2: Gain 0x00000200 0x00000200
    22Ch RGB1_MUL_RR RGB1 (=1st RGB2RGB conv): Matrix Coefficient 0x00000100 0x00000100
    230h RGB1_MUL_GR RGB1: Matrix Coefficient 0x00000000 0x00000000
    234h RGB1_MUL_BR RGB1: Matrix Coefficient 0x00000000 0x00000000
    238h RGB1_MUL_RG RGB1: Matrix Coefficient 0x00000000 0x00000000
    23Ch RGB1_MUL_GG RGB1: Matrix Coefficient 0x00000100 0x00000100
    240h RGB1_MUL_BG RGB1: Matrix Coefficient 0x00000000 0x00000000
    244h RGB1_MUL_RB RGB1: Matrix Coefficient 0x00000000 0x00000000
    248h RGB1_MUL_GB RGB1: Matrix Coefficient 0x00000000 0x00000000
    24Ch RGB1_MUL_BB RGB1: Matrix Coefficient 0x00000100 0x00000100
    250h RGB1_OFT_OR RGB1: Offset 0x00000000 0x00000000
    254h RGB1_OFT_OG RGB1: Offset 0x00000000 0x00000000
    258h RGB1_OFT_OB RGB1: Offset 0x00000000 0x00000000
    25Ch GMM_CFG Gamma Correction Configuration 0x00000067 0x00000067
    294h YUV_ADJ YUV (RGB2YCbCr conv): Luminance Adjustment (Contrast and Brightness) 0x00000010 0x00000010
    298h YUV_MUL_RY YUV: Matrix Coefficient 0x0000004D 0x0000004D
    29Ch YUV_MUL_GY YUV: Matrix Coefficient 0x00000096 0x00000096
    2A0h YUV_MUL_BY YUV: Matrix Coefficient 0x0000001D 0x0000001D
    2A4h YUV_MUL_RCB YUV: Matrix Coefficient 0x00000FD5 0x00000FD5
    2A8h YUV_MUL_GCB YUV: Matrix Coefficient 0x00000FAB 0x00000FAB
    2ACh YUV_MUL_BCB YUV: Matrix Coefficient 0x00000080 0x00000080
    2B0h YUV_MUL_RCR YUV: Matrix Coefficient 0x00000080 0x00000080
    2B4h YUV_MUL_GCR YUV: Matrix Coefficient 0x00000F95 0x00000F95
    2B8h YUV_MUL_BCR YUV: Matrix Coefficient 0x00000FEB 0x00000FEB
    2BCh YUV_OFT_Y YUV: Offset 0x00000000 0x00000000
    2C0h YUV_OFT_CB YUV: Offset 0x00000080 0x00000080
    2C4h YUV_OFT_CR YUV: Offset 0x00000080 0x00000080
    2C8h YUV_PHS Chrominance Position (for 422 Down Sampler) 0x00000000 0x00000000
    2D4h YEE_EN YEE (=Edge Enhancer): Enable 0x00000000 0x00000000
    2D8h YEE_TYP YEE: Method Selection 0x00000000 0x00000000
    2DCh YEE_SHF YEE: HPF Shift Length 0x00000000 0x00000000
    2E0h YEE_MUL_00 YEE: HPF Coefficient 0x00000000 0x00000000
    2E4h YEE_MUL_01 YEE: HPF Coefficient 0x00000000 0x00000000
    2E8h YEE_MUL_02 YEE: HPF Coefficient 0x00000000 0x00000000
    2ECh YEE_MUL_10 YEE: HPF Coefficient 0x00000000 0x00000000
    2F0h YEE_MUL_11 YEE: HPF Coefficient 0x00000000 0x00000000
    2F4h YEE_MUL_12 YEE: HPF Coefficient 0x00000000 0x00000000
    2F8h YEE_MUL_20 YEE: HPF Coefficient 0x00000000 0x00000000
    2FCh YEE_MUL_21 YEE: HPF Coefficient 0x00000000 0x00000000
    300h YEE_MUL_22 YEE: HPF Coefficient 0x00000000 0x00000000
    304h YEE_THR YEE: Lower Threshold before Referring to LUT 0x00000000 0x00000000
    308h YEE_E_GAN YEE: Edge Sharpener Gain 0x00000000 0x00000000
    30Ch YEE_E_THR_1 YEE: Edge Sharpener HP Value Lower Threshold 0x00000000 0x00000000
    310h YEE_E_THR_2 YEE: Edge Sharpener HP Value Upper Limit 0x00000000 0x00000000
    314h YEE_G_GAN YEE: Edge Sharpener Gain on Gradient 0x00000000 0x00000000
    318h YEE_G_OFT YEE: Edge Sharpener Offset on Gradient 0x00000000 0x00000000
    380h BOX_EN BOX (=Boxcar) Enable 0x00000000 0x00000000
    384h BOX_MODE BOX: One Shot Mode 0x00000000 0x00000000
    388h BOX_TYP BOX: Block Size (16x16 or 8x8) 0x00000000 0x00000000
    38Ch BOX_SHF BOX: Down Shift Value of Input 0x00000000 0x00000000
    390h BOX_SDR_SAD_H BOX: SDRAM Address MSB 0x00000000 0x00000000
    394h BOX_SDR_SAD_L BOX: SDRAM Address LSB 0x00000000 0x00000000
    398h Reserved Reserved 0x00000000 0x00000000
    39Ch HST_EN HST (=Histogram): Enable 0x00000000 0x00000000
    3A0h HST_MODE HST: One Shot Mode 0x00000000 0x00000000
    3A4h HST_SEL HST: Source Select 0x00000000 0x00000000
    3A8h HST_PARA HST: Parameters Select 0x00000000 0x00000000
    3ACh HST_0_VPS HST: Vertical Start Position 0x00000000 0x00000000
    3B0h HST_0_VSZ HST: Vertical Size 0x00000001 0x00000001
    3B4h HST_0_HPS HST: Horizontal Start Position 0x00000000 0x00000000
    3B8h HST_0_HSZ HST: Horizontal Size 0x00000001 0x00000001
    3BCh HST_1_VPS HST: Vertical Start Position 0x00000000 0x00000000
    3C0h HST_1_VSZ HST: Vertical Size 0x00000001 0x00000001
    3C4h HST_1_HPS HST: Horizontal Start Position 0x00000000 0x00000000
    3C8h HST_1_HSZ HST: Horizontal Size 0x00000001 0x00000001
    3CCh HST_2_VPS HST: Vertical Start Position 0x00000000 0x00000000
    3D0h HST_2_VSZ HST: Vertical Size 0x00000001 0x00000001
    3D4h HST_2_HPS HST: Horizontal Start Position 0x00000000 0x00000000
    3D8h HST_2_HSZ HST: Horizontal Size 0x00000001 0x00000001
    3DCh HST_3_VPS HST: Vertical Start Position 0x00000000 0x00000000
    3E0h HST_3_VSZ HST: Vertical Size 0x00000001 0x00000001
    3E4h HST_3_HPS HST: Horizontal Start Position 0x00000000 0x00000000
    3E8h HST_3_HSZ HST: Horizontal Size 0x00000001 0x00000001
    3ECh HST_TBL HST: Table Select 0x00000000 0x00000000
    3F0h HST_MUL_R HST: Matrix Coefficient 0x00000000 0x00000000
    3F4h HST_MUL_GR HST: Matrix Coefficient 0x00000000 0x00000000
    3F8h HST_MUL_GB HST: Matrix Coefficient 0x00000000 0x00000000
    3FCh HST_MUL_B HST: Matrix Coefficient 0x00000000 0x00000000
    0x01C7:0400 RSZ Resizer 000h SRC_EN RSZ Enable 0x00000001 0x00000001
    004h SRC_MODE One Shot Mode 0x00000000 0x00000000
    008h SRC_FMT0 Input Data Paths 0x00000000 0x00000000
    00Ch SRC_FMT1 Source Image Format 0x00000000 0x00000000
    010h SRC_VPS Vertical Start Position 0x00000000 0x00000000
    014h SRC_VSZ Vertical Processing Size 0x000002CF 0x000002CF
    018h SRC_HPS Horizontal Start Position 0x00000000 0x00000000
    01Ch SRC_HSZ Horizontal Processing Size 0x000004FF 0x000004FF
    020h DMA_RZA SDRAM Request Minimum Interval for RZA 0x00000020 0x00000000
    024h DMA_RZB SDRAM Request Minimum Interval for RZB 0x00000020 0x00000000
    028h DMA_STA Status of Resizer (Reserved) 0x00000000 0x00000000
    02Ch GCK_MMR MMR Gated Clock Control 0x00000001 0x00000001
    030h Reserved Reserved 0x00000000 0x00000000
    034h GCK_SDR SDR Gated Clock Control 0x00000001 0x00000001
    038h IRQ_RZA Interval of RZA circular IRQ 0x00001FFF 0x00001FFF
    03Ch IRQ_RZB Interval of RZB circular IRQ 0x00001FFF 0x00001FFF
    040h YUV_Y_MIN Saturation (Luminance Minimum) 0x00000000 0x00000000
    044h YUV_Y_MAX Saturation (Luminance Maximum) 0x000000FF 0x000000FF
    048h YUV_C_MIN Saturation (Chrominance Minimum) 0x00000000 0x00000000
    04Ch YUV_C_MAX Saturation (Chrominance Maximum) 0x000000FF 0x000000FF
    050h YUV_PHS Chrominance Position 0x00000000 0x00000000
    054h SEQ Processing Mode 0x00000000 0x00000000
    058h RZA_EN RZA (Resizer Channel A): Enable 0x00000001 0x00000001
    05Ch RZA_MODE RZA: One Shot Mode 0x00000000 0x00000000
    060h RZA_420 RZA: Output Format 0x00000003 0x00000003
    064h RZA_I_VPS RZA: Vertical Start Position of the Input 0x00000000 0x00000000
    068h RZA_I_HPS RZA: Horizontal Start Position of the Input 0x00000000 0x00000000
    06Ch RZA_O_VSZ RZA: Vertical Size of the Output 0x00000437 0x000002CF
    070h RZA_O_HSZ RZA: Horizontal Size of the Output 0x0000077F 0x000004FF
    074h RZA_V_PHS_Y RZA: Initial Phase of Vertical Resizing Process for Luminance 0x00000000 0x00000000
    078h RZA_V_PHS_C RZA: Initial Phase of Vertical Resizing Process for Chrominance 0x00000000 0x00000000
    07Ch RZA_V_DIF RZA: Vertical Resize Parameter 0x000000AA 0x00000100
    080h RZA_V_TYP RZA: Interpolation method for Vertical Rescaling 0x00000000 0x00000000
    084h RZA_V_LPF RZA: Vertical LPF Intensity 0x00000000 0x00000000
    088h RZA_H_PHS RZA: Initial Phase of Horizontal Resizing Process 0x00000000 0x00000000
    08Ch RZA_H_PHS_ADJ RZA: Additional Initial Phase of Vertical Resizing Process for Luminance 0x00000000 0x00000000
    090h RZA_H_DIF RZA: Horizontal Resize Parameter 0x000000AA 0x00000100
    094h RZA_H_TYP RZA: Interpolation method for Horizontal Rescaling 0x00000000 0x00000000
    098h RZA_H_LPF RZA: Horizontal LPF Intensity 0x00000000 0x00000000
    09Ch RZA_DWN_EN RZA: Down Scale Mode Enable 0x00000000 0x00000000
    0A0h RZA_DWN_AV RZA: Down Scale Mode Averaging Size 0x00000000 0x00000000
    0A4h RZA_RGB_EN RZA: RGB Output Enable 0x00000000 0x00000000
    0A8h RZA_RGB_TYP RZA: RGB Output Bit Mode 0x00000000 0x00000000
    0ACh RZA_RGB_BLD RZA: YC422 to YC444 conversion method 0x00000000 0x00000000
    0B0h RZA_SDR_Y_BAD_H RZA: SDRAM Base Address MSB 0x000084AD 0x00008512
    0B4h RZA_SDR_Y_BAD_L RZA: SDRAM Base Address LSB 0x00008000 0x00000000
    0B8h RZA_SDR_Y_SAD_H RZA: SDRAM Start Address MSB 0x0000844E 0x00008512
    0BCh RZA_SDR_Y_SAD_L RZA: SDRAM Start Address LSB 0x00000000 0x00000000
    0C0h RZA_SDR_Y_OFT RZA: SDRAM Line Offset 0x00000780 0x00000500
    0C4h RZA_SDR_Y_PTR_S RZA: Start Line of SDRAM Pointer 0x00000000 0x00000000
    0C8h RZA_SDR_Y_PTR_E RZA: End line of SDRAM Pointer 0x00000438 0x000002D0
    0CCh RZA_SDR_C_BAD_H RZA: SDRAM Base Address MSB (for 420 Chroma) 0x0000846E 0x00008520
    0D0h RZA_SDR_C_BAD_L RZA: SDRAM Base Address LSB (for 420 Chroma) 0x0000A400 0x00001000
    0D4h RZA_SDR_C_SAD_H RZA: SDRAM Start Address MSB (for 420 Chroma) 0x0000849D 0x00008520
    0D8h RZA_SDR_C_SAD_L RZA: SDRAM Start Address LSB (for 420 Chroma) 0x00002400 0x00001000
    0DCh RZA_SDR_C_OFT RZA: SDRAM Line Offset (for 420 Chroma) 0x00000780 0x00000500
    0E0h RZA_SDR_C_PTR_S RZA: Start Line of SDRAM Pointer (for 420 Chroma) 0x00000000 0x00000000
    0E4h RZA_SDR_C_PTR_E RZA: End line of SDRAM Pointer (for 420 Chroma) 0x0000021C 0x00000168
    0E8h RZB_EN RZB (Resizer Channel B): Enable 0x00000000 0x00000000
    0ECh RZB_MODE RZB: One Shot Mode 0x00000000 0x00000000
    0F0h RZB_420 RZB: Output Format 0x00000000 0x00000000
    0F4h RZB_I_VPS RZB: Vertical Start Position of the Input 0x00000000 0x00000000
    0F8h RZB_I_HPS RZB: Horizontal Start Position of the Input 0x00000000 0x00000000
    0FCh RZB_O_VSZ RZB: Vertical Size of the Output 0x00000000 0x00000000
    100h RZB_O_HSZ RZB: Horizontal Size of the Output 0x00000001 0x00000001
    104h RZB_V_PHS_Y RZB: Initial Phase of Vertical Resizing Process for Luminance 0x00000000 0x00000000
    108h RZB_V_PHS_C RZB: Initial Phase of Vertical Resizing Process for Chrominance 0x00000000 0x00000000
    10Ch RZB_V_DIF RZB: Vertical Resize Parameter 0x00000100 0x00000100
    110h RZB_V_TYP RZB: Interpolation method for Vertical Rescaling 0x00000000 0x00000000
    114h RZB_V_LPF RZB: Vertical LPF Intensity 0x00000000 0x00000000
    118h RZB_H_PHS RZB: Initial Phase of Horizontal Resizing Process 0x00000000 0x00000000
    11Ch RZB_H_PHS_ADJ RZB: Additional Initial Phase of Horizontal Resizing Process for Luminance 0x00000000 0x00000000
    120h RZB_H_DIF RZB: Horizontal Resize Parameter 0x00000100 0x00000100
    124h RZB_H_TYP RZB: Interpolation method for Horizontal Rescaling 0x00000000 0x00000000
    128h RZB_H_LPF RZB: Horizontal LPF Intensity 0x00000000 0x00000000
    12Ch RZB_DWN_EN RZB: Down Scale Mode Enable 0x00000000 0x00000000
    130h RZB_DWN_AV RZB: Down Scale Mode Averaging Size 0x00000000 0x00000000
    134h RZB_RGB_EN RZB: RGB Output Enable 0x00000000 0x00000000
    138h RZB_RGB_TYP RZB: RGB Output Bit Mode 0x00000000 0x00000000
    13Ch RZB_RGB_BLD RZB: YC422 to YC444 conversion method 0x00000000 0x00000000
    140h RZB_SDR_Y_BAD_H RZB: SDRAM Base Address MSB 0x00000000 0x00000000
    144h RZB_SDR_Y_BAD_L RZB: SDRAM Base Address LSB 0x00000000 0x00000000
    148h RZB_SDR_Y_SAD_H RZB: SDRAM Start Address MSB 0x00000000 0x00000000
    14Ch RZB_SDR_Y_SAD_L RZB: SDRAM Start Address LSB 0x00000000 0x00000000
    150h RZB_SDR_Y_OFT RZB: SDRAM Line Offset 0x00000000 0x00000000
    154h RZB_SDR_Y_PTR_S RZB: Start Line of SDRAM Pointer 0x00000000 0x00000000
    158h RZB_SDR_Y_PTR_E RZB: End line of SDRAM Pointer 0x00001FFF 0x00001FFF
    15Ch RZB_SDR_C_BAD_H RZB: SDRAM Base Address MSB (for 420 Chroma) 0x00000000 0x00000000
    160h RZB_SDR_C_BAD_L RZB: SDRAM Base Address LSB (for 420 Chroma) 0x00000000 0x00000000
    164h RZB_SDR_C_SAD_H RZB: SDRAM Start Address MSB (for 420 Chroma) 0x00000000 0x00000000
    168h RZB_SDR_C_SAD_L RZB: SDRAM Start Address LSB (for 420 Chroma) 0x00000000 0x00000000
    16Ch RZB_SDR_C_OFT RZB: SDRAM Line Offset (for 420 Chroma) 0x00000000 0x00000000
    170h RZB_SDR_C_PTR_S RZB: Start Line of SDRAM Pointer (for 420 Chroma) 0x00000000 0x00000000
    174h RZB_SDR_C_PTR_E RZB: End line of SDRAM Pointer (for 420 Chroma) 0x00001FFF 0x00001FFF

    I send you the values ​​of records VPFE.


    Below you will command the _dm368.cfg use in DMAI file.

    /* Load support for the Codec Engine OSAL */
    var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
    osalGlobal.runtimeEnv = osalGlobal.LINUX;

    /* Load support for the 'Davinci Multimedia Application Interface' module */
    var DMAI = xdc.loadPackage('ti.sdo.dmai');

    var RMAN = xdc.useModule('ti.sdo.fc.rman.RMAN');
    RMAN.useDSKT2 = false;
    RMAN.persistentAllocFxn = "__ALG_allocMemory";
    RMAN.persistentFreeFxn = "__ALG_freeMemory";
    RMAN.semCreateFxn = "Sem_create";
    RMAN.semDeleteFxn = "Sem_delete";
    RMAN.semPendFxn = "Sem_pend";
    RMAN.semPostFxn = "Sem_post";
    RMAN.tableSize = 10;

    /* Add by leon for upgrading h264 codec lib */
    var MEMTCM = xdc.useModule('ti.sdo.fc.ires.memtcm.MEMTCM');
    MEMTCM.cmemBlockId = 1;
    /* end add */
    var EDMA3 = xdc.useModule('ti.sdo.fc.edma3.Settings');
    /* add by leon */
    EDMA3.maxRequests = 128;

    var vicp = xdc.useModule('ti.sdo.linuxutils.vicp.VICP');

    var HDVICP = xdc.useModule('ti.sdo.fc.ires.hdvicp.HDVICP');

    var VICP = xdc.useModule('ti.sdo.fc.ires.vicp.VICP2');

    var VICPSYNC = xdc.useModule('ti.sdo.fc.vicpsync.VICPSYNC');

    var HDVICPSYNC = xdc.useModule('ti.sdo.fc.hdvicpsync.HDVICPSYNC');

    var VICP = xdc.useModule('ti.sdo.fc.memutils.MEMUTILS');

    DDRSPACE = xdc.useModule('ti.sdo.fc.ires.addrspace.ADDRSPACE');

    var EDMA3CHAN = xdc.useModule('ti.sdo.fc.ires.edma3chan.EDMA3CHAN');

    var LSP = xdc.useModule('ti.sdo.linuxutils.edma.EDMA');

    var CMEM = xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');


    xdc.loadPackage("ti.sdo.ce.video2");
    xdc.loadPackage("ti.sdo.fc.hdvicpsync");

    /*
     *  ======== Engine Configuration ========
     */

    var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc_hdvicp.ce.MPEG4ENC_HDVICP');
    var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
    var G711ENC = xdc.useModule('ti.sdo.ce.examples.codecs.g711.G711ENC');
    /*leon, add jpeg support*/
    var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');

    var Engine = xdc.useModule('ti.sdo.ce.Engine');
    var myEngine = Engine.create("encodedecode", [
        {name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
        {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
        {name: "g711enc", mod: G711ENC, local: true},
        /*leon, add jpeg support*/
        {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},
    ]);

    /* leon, enable debug info */
    xdc.useModule('ti.sdo.fc.global.Settings').profile = "debug";
    xdc.useModule('ti.sdo.ce.global.Settings').profile = "debug";
    /*
    xdc.loadPackage('ti.sdo.fc.ires.vicp').profile = "debug_trace";
    xdc.loadPackage('ti.sdo.fc.ires.edma3chan').profile = "debug_trace";
    xdc.loadPackage('ti.sdo.fc.rman').profile = "debug_trace";
    xdc.loadPackage('ti.sdo.fc.edma3').profile = "debug_trace";
    EDMA3CHAN.trace = true;
    EDMA3CHAN.debug = true;
    */


    Program.main = null;