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.

Is it possible to bring decodr output on A8 using ipcBits stream

Hi,

In our use-case we wanted to feed decoders from A8 and then wanted bring decoders o/p again on A8 to feed this output to SW OSD.

From the RDK 4.1 demos, it is apparent to bring encoders o/p to A8 to write files or for some other purpose but here we wanted to bring decoders o/p. We have developed the use-case but we are not getting callbacks and hence nothing is working.

Please confirm is it feasible to do it or not?

Thanks,

Ronak

  • Yes this is possible. You have to use ipcFramesOut on M3Video or M3VPSS and ipcFramesIn on A8.Attach your usecase file.If you are not getting callback it will be issue with link connection or application not registering for callback.

  • Hi Badri,

    Thanks for the prompt response.

    Here, we are trying to use ipcBitsIn and ipcBitsOut instead of ipsFramesIn/Out so is it not possible to use BitsIn/Out?

    Also, next question is, if we use ipcFramesIn/Out  and hope we get success then in this case how we can calculate OSD buffer size as in the demo it is calculated statically.

    Thanks,

    Ronak

  • Output of decoder is video frame so you can use only ipcFramesOut and not ipcBitsOut.

    I don't understand how the OSD buffer size is related to the decoder output buffer. Can you explain your requirement

  • Hi Badri,


    Using ipcFramesOut we are able to get the decoded data from decoder on A8.

    We are trying to achieve following use-case in which we have two links,

    1) Capture -> dei -> SW OSD -> SW Mosaic -> Display

    2) Encoded file on A8 (MJPEG) -> ipcHLOSbitsOut -> Video M3 (decoder) -> VPSS M3 (dei) -> ipcFramesInHLOS -> SW OSD (memcpy received decoded data in OSD buffer).


    With above chains, we could successfully capture 1080P video, do blending of MJPEG video(in a file from A8) of resolution 352x240 and display the combine output .


    But, when we try to do OSD of a video file having 720X480 resolution with MJPEG codec, display freezes and we don't get any error message on console.

    So, we wanted to know is there any limitation of OSD buffer size? If yes then how can we overcome and do OSD blending of videos of higher resolutions. Following is our memory map configurations. It's on DM8148

    Memory Map - 1024MB DDR, 512MB Linux
      0x80000000     +-------------------+
             ^       |                   |
             |       |  256 MB           | Linux
             |       |                   |
             |       +-------------------+
             |       |  207MB             | (SR1) Bitstream buffer
             |       |                   | Cached on A8. Cached on M3, although access by DMAs
             |       +-------------------+
             +       |   4 MB            | Video M3 Code
           512 MB    +-------------------+
             |       |   1 MB            | Video  M3 Data
             |       +-------------------+
             |       |   1 MB            | VPSS  M3 Code
             |       +-------------------+
             |       |   2 MB            | VPSS  M3 Data
             |       +-------------------+
             |       |   2048 KB         | DSP Code
             |       +-------------------+
             v       |   13 MB           | DSP Data
      0xA0000000     +-------------------+
             ^       |   128 MB          | Tiled 8-bit + 16-bit region
             |       +-------------------+
             |       |  256 MB           | Linux2
             |       |                   |
             |       +-------------------+
             |       |  112 MB           | (SR2) Frame Buffer Region - <VPSS - Video M3 Frame Buf>
             |       +-------------------+  
             +       |                   |
           512 MB    |  8.75 MB          | (SR0) Syslink MsgQ/IPC List MP - <Non-cached on M3>
             +       +-------------------+
             |       |  128 KB           | Video M3 exception context
             |       +-------------------+  
             |       |  128KB            | Vpss M3 exception context
             |       +-------------------+  
             |       |  2 MB             | VPSS M3 - VPDMA Descriptor
             |       +-------------------+
             |       |  2 MB             | VPSS M3 - FBDev Shared Memory
             |       +-------------------+
             |       |  2 MB             | Host - VPSS M3 Notify(For FBDev)
             |       +-------------------+
             v       |  1 MB             | Remote Debug Print
       0xC0000000    +-------------------+

    Thanks,

    Ronak

  • Pls share the console logs. The HDVPSS supports video-video blending although it is not implemented in DVR RDK. You could look at that option as well.

  • We could get success in doing video-video blending with D1 resolution of video. We were not updating the MAX height-width of the OSD window.

    Now, we are facing issue with the color of the blended video. As we are taking framesOut from DEI, it gives data in YUV422I format, we have configured this format in all the links at relevant places but we are getting only gray video without color.

    It would be a great help if you could give us some hint, as now we are very close to our desired use-case.


    Thanks,

    Ronak

  • The OSD graphics window format should match the video window format. You can use the DEI_VIP_SC output queue to output 420SP to match the decoder 420SP output.

  • Hi Badri,

    Thanks a lot for your help, we are able to do successful video over video blending.

    BR,

    Ronak

  • Hi Badari,

    As mentioned in my previous reply, we are able to do successful blending using OSD of video with 720x480 resolution.


    Now, we are trying to do blending of video with 1280x720 (720P) resolution, but everything gets hang when we do this.


    Is there any limitation of using OSD for blending in terms of video resolution, if not then please suggest where we are missing.


    Thanks,

    Ronak

  • Try rebuilding the swosd libaray with below modification:

    /dvr_rdk/mcfw/src_bios6/alg/swosd/sw_osd.h

     

    #define SWOSD_MAX_WIDTH  720

    to

    #define SWOSD_MAX_WIDTH  1280

     

  • Hi Badari,


    With this change and memory map changes we could do video over video blending with 720p resolution video but the quality is very poor and the CPU utilization on A8 also gets increased.


    Thanks for your help.

    -Ronak

  • Doing CPU copy on A8 of video frames will result in high cpu utilization. You can use DMA to copy to OSD buffer from decoded output buffer.

    It is best to use the HDVPSS Video-Video blend feature from performance standpoint. Attached is patch where the video video blend is demonstrated in DVR RDK decode display demo

    diff --git a/demos/mcfw_api_demos/mcfw_demo/demo_vdec_vdis.c b/demos/mcfw_api_demos/mcfw_demo/demo_vdec_vdis.c
    index 2e18e12..731e4a1 100755
    --- a/demos/mcfw_api_demos/mcfw_demo/demo_vdec_vdis.c
    +++ b/demos/mcfw_api_demos/mcfw_demo/demo_vdec_vdis.c
    @@ -180,7 +180,7 @@ Void VdecVdis_start()
                                vdisParams.deviceParams[VDIS_DEV_HDMI].resolution;
         vdisParams.deviceParams[VDIS_DEV_SD].resolution     = VSYS_STD_NTSC;
     
    -    Vdis_tiedVencInit(VDIS_DEV_HDCOMP, VDIS_DEV_DVO2, &vdisParams);
    +    Vdis_tiedVencInit(VDIS_DEV_HDCOMP, VDIS_DEV_HDMI, &vdisParams);
     
     
     
    diff --git a/mcfw/src_bios6/links_m3vpss/system/system_dctrl.c b/mcfw/src_bios6/links_m3vpss/system/system_dctrl.c
    index 819118d..80db3de 100755
    --- a/mcfw/src_bios6/links_m3vpss/system/system_dctrl.c
    +++ b/mcfw/src_bios6/links_m3vpss/system/system_dctrl.c
    @@ -27,13 +27,13 @@ Vps_DcConfig gSystem_dctrlTriDisplayConfigDvo2 = {
          {VPS_DC_CIG_NON_CONSTRAINED_OUTPUT, VPS_DC_HDMI_BLEND}     ,
          {VPS_DC_BP1_INPUT_PATH, VPS_DC_HDCOMP_MUX}     ,
          {VPS_DC_HDCOMP_MUX, VPS_DC_CIG_PIP_INPUT}     ,
    -     {VPS_DC_CIG_PIP_OUTPUT, VPS_DC_DVO2_BLEND}     ,
    +     {VPS_DC_CIG_PIP_OUTPUT, VPS_DC_HDMI_BLEND}     ,
          {VPS_DC_CIG_PIP_OUTPUT, VPS_DC_HDCOMP_BLEND}     ,
          {VPS_DC_SEC1_INPUT_PATH, VPS_DC_SDVENC_MUX}     ,
          {VPS_DC_SDVENC_MUX, VPS_DC_SDVENC_BLEND}     ,
          {VPS_DC_GRPX0_INPUT_PATH, VPS_DC_HDMI_BLEND}     ,
          {VPS_DC_GRPX1_INPUT_PATH, VPS_DC_HDCOMP_BLEND}     ,
    -     {VPS_DC_GRPX1_INPUT_PATH, VPS_DC_DVO2_BLEND},
    +     {VPS_DC_GRPX1_INPUT_PATH, VPS_DC_HDMI_BLEND},
          {VPS_DC_GRPX2_INPUT_PATH, VPS_DC_HDMI_BLEND},
          {VPS_DC_MAIN_INPUT_PATH, VPS_DC_VCOMP},
          {VPS_DC_AUX_INPUT_PATH, VPS_DC_HDCOMP_MUX}
    @@ -69,7 +69,7 @@ Vps_DcConfig gSystem_dctrlTriDisplayConfigDvo2 = {
            }
           }
          ,
    -     (VPS_DC_VENC_DVO2 | VPS_DC_VENC_HDCOMP),              /* Tied VENC bit
    +     (VPS_DC_VENC_HDMI | VPS_DC_VENC_HDCOMP),              /* Tied VENC bit
                                                                 * mask */
          4u                                                    /* Number of VENCs
                                                                 */
    @@ -87,12 +87,12 @@ Vps_DcConfig gSystem_dctrlTriDisplayConfigHdmi = {
          {VPS_DC_CIG_PIP_OUTPUT, VPS_DC_HDCOMP_BLEND},
          {VPS_DC_BP1_INPUT_PATH, VPS_DC_VCOMP_MUX},
          {VPS_DC_VCOMP_MUX, VPS_DC_VCOMP},
    -     {VPS_DC_CIG_NON_CONSTRAINED_OUTPUT, VPS_DC_DVO2_BLEND},
    +     {VPS_DC_CIG_NON_CONSTRAINED_OUTPUT, VPS_DC_HDMI_BLEND},
          {VPS_DC_SEC1_INPUT_PATH, VPS_DC_SDVENC_MUX},
          {VPS_DC_SDVENC_MUX, VPS_DC_SDVENC_BLEND},
          {VPS_DC_GRPX0_INPUT_PATH, VPS_DC_HDMI_BLEND},
          {VPS_DC_GRPX0_INPUT_PATH, VPS_DC_HDCOMP_BLEND},
    -     {VPS_DC_GRPX1_INPUT_PATH, VPS_DC_DVO2_BLEND},
    +     {VPS_DC_GRPX1_INPUT_PATH, VPS_DC_HDMI_BLEND},
          {VPS_DC_GRPX2_INPUT_PATH, VPS_DC_SDVENC_BLEND},
          {VPS_DC_GRPX2_INPUT_PATH, VPS_DC_HDMI_BLEND},
          {VPS_DC_MAIN_INPUT_PATH, VPS_DC_VCOMP},
    @@ -619,7 +619,17 @@ Int32 System_displayCtrlInit(VDIS_PARAMS_S * pPrm)
     
         UTILS_assert(retVal == FVID2_SOK);
     
    -
    +    {
    +        Vps_DcRgbColor transparencyPixel;
    +        Int32 System_displayCtrlSetVideoLayerPriority(UInt32 compNodeId,
    +                                                      UInt32 cigNodeId,
    +                                                      Vps_DcRgbColor transparencyPixel,
    +                                                      UInt8 alphaValue);
    +
    +        transparencyPixel.r = transparencyPixel.g = transparencyPixel.b = 0;
    +        System_displayCtrlSetVideoLayerPriority(VPS_DC_HDMI_BLEND,VPS_DC_CIG_PIP_OUTPUT,transparencyPixel,0x80);
    +        System_displayCtrlSetVideoLayerPriority(VPS_DC_HDMI_BLEND,VPS_DC_CIG_NON_CONSTRAINED_OUTPUT,transparencyPixel,0x80);
    +    }
         return retVal;
     }
     
    @@ -709,7 +719,8 @@ Int32 System_displayCtrlSetCprocSetting(VDIS_CPROC_S *pPrm)
    +Int32 System_displayCtrlSetVideoLayerPriority(UInt32 compNodeId,
    +                                              UInt32 cigNodeId,
    +                                              Vps_DcRgbColor transparencyPixel,
    +                                              UInt8 alphaValue)
    +{
    +    Int32           retVal = FVID2_SOK;
    +    Vps_DcCompRtConfig compRtConfig;
    +    Vps_DcCigRtConfig  cigRtConfig;
    +
    +    compRtConfig.nodeId = compNodeId; //VPS_DC_HDMI_BLEND;
    +    retVal = FVID2_control(gSystem_objVpss.fvidDisplayCtrl,
    +                           IOCTL_VPS_DCTRL_GET_COMP_RTCONFIG,
    +                           &compRtConfig,NULL);
    +    UTILS_assert(retVal == FVID2_SOK);
    +
    +    compRtConfig.nodeId = compNodeId;//VPS_DC_HDMI_BLEND;
    +    compRtConfig.isGlobalReorderEnable = TRUE;
    +    compRtConfig.displayOrder[VPS_DC_COMP_DISPLAY_VID_ORDER] = 0x3;
    +    compRtConfig.displayOrder[VPS_DC_COMP_DISPLAY_G0_ORDER] = 0x0;
    +    compRtConfig.displayOrder[VPS_DC_COMP_DISPLAY_G1_ORDER] = 0x1;
    +    compRtConfig.displayOrder[VPS_DC_COMP_DISPLAY_G2_ORDER] = 0x2;
    +    retVal = FVID2_control(gSystem_objVpss.fvidDisplayCtrl,
    +                           IOCTL_VPS_DCTRL_SET_COMP_RTCONFIG,
    +                           &compRtConfig,NULL);
    +    UTILS_assert(retVal == FVID2_SOK);
    +    Vps_printf("DCRTL:Reorder of video and grpx");
    +
    +    cigRtConfig.nodeId = cigNodeId;//VPS_DC_CIG_NON_CONSTRAINED_OUTPUT;
    +    retVal = FVID2_control(gSystem_objVpss.fvidDisplayCtrl,
    +                           IOCTL_VPS_DCTRL_GET_CIG_RTCONFIG,
    +                           &cigRtConfig,NULL);
    +    UTILS_assert(retVal == FVID2_SOK);
    +
    +    cigRtConfig.nodeId = cigNodeId;//VPS_DC_CIG_NON_CONSTRAINED_OUTPUT;
    +    cigRtConfig.transparency = TRUE;
    +    cigRtConfig.mask = VPS_DC_CIG_TM_MASK_3_LSB;
    +    cigRtConfig.transColor.r = transparencyPixel.r;// 0x0;
    +    cigRtConfig.transColor.g = transparencyPixel.g;// 0x0;
    +    cigRtConfig.transColor.b = transparencyPixel.b;// 0x0;
    +    cigRtConfig.alphaBlending = TRUE;
    +    cigRtConfig.alphaValue    = alphaValue;
    +    retVal = FVID2_control(gSystem_objVpss.fvidDisplayCtrl,
    +                           IOCTL_VPS_DCTRL_SET_CIG_RTCONFIG,
    +                           &cigRtConfig,NULL);
    +    UTILS_assert(retVal == FVID2_SOK);
    +    Vps_printf("DCRTL:Setting of transparency pixel");
    +    return retVal;
    +}
    +

  • Thanks for the inputs.


    We have ran decode-display demo after incorporating the given patch but we couldn't see video over video blending.  How to use this demo to demonstrate video blending feature ?


    We also think that CPU copy on A8 would be expensive and though of using DMA but couldn't find any reference. if you could provide some reference on how to use DMA to copy decoded o/p buffer to OSD buffer then it would be very useful. As per our use-case we need to change dynamic parameters of OSD e.g. position, enable-disble, global alphas.... With our newly created link we are able to achieve everything except performance is the only bottle-neck at higher resolution and which we must have to overcome.

    Thanks,

    Ronak

  • DMA Copy reference code is present in /dvr_rdk/demos/mcfw_api_demos/mcfw_demo/demo_vcap_venc_vdec_vdis_bits_rdwr.c

    You should see Video-Video blending on HDMI display when you configure the ini file to decode 1 channel.The changes are for 816x.You can use it as reference to make similar changes for 814x.

  • Even though we have integrated DMA, we couldn't see performance improvement. Still our application binary is consuming  more than 90% CPU.

    Followings are the two log files, which may help you to analyze,

    1) Core statistics when full demo was running (Profile_Data.txt)

    [m3vpss ]  
     [m3vpss ]  *** Capture Driver Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  VIP Parser Reset Count : 0
     [m3vpss ]  
     [m3vpss ]      |   Total    Even     Odd  Total  Even   Odd  Min /  Max  Min /  Max Dropped Fid Repeat Frame Error Y/C
     [m3vpss ]  CH  |  Fields  Fields  Fields    FPS   FPS   FPS       Width      Height  Fields      Count (Desc Error Y/C)
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------
     [m3vpss ]  000 |     857     857       0     50    50     0 1280 / 1280  720 /  720       1        856 0/0 (0/0)
     [m3vpss ]  200 |     857     857       0     50    50     0 1280 / 1280  705 /  705       1          0 0/0 (0/0)
     [m3vpss ]  
     [m3vpss ]  VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  
     [m3vpss ]  *** Capture List Manager Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  List Post Count        : 434187 
     [m3vpss ]  List Stall Count       : 0 
     [m3vpss ]  List Post Time (ms)    : Max = 0, Min = 0, Avg = 0, Total = 0 
     [m3vpss ]  INTC Timeout Count     : (0, 0) (Min timeout value = 980, 991) 
     [m3vpss ]  Descriptor miss found count : 0 
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  VIP and VPDMA registers, 
     [m3vpss ]  VIP0 : FIQ_STATUS  : 0x4810551c = 0x00000000
     [m3vpss ]  VIP1 : FIQ_STATUS  : 0x48105a1c = 0x00000000
     [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00320000
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  2039239: CAPTURE: Fields = 1712 (fps = 99, CPU Load = 0)
     [m3vpss ]  2039240: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  2039240: SYSTEM  : FREE SPACE : System Heap      = 243424 B, Mbx = 10239 msgs) 
     [m3vpss ]  2039240: SYSTEM  : FREE SPACE : SR0 Heap         = 67389952 B (64 MB) 
     [m3vpss ]  2039240: SYSTEM  : FREE SPACE : Frame Buffer     = 140516224 B (134 MB) 
     [m3vpss ]  2039241: SYSTEM  : FREE SPACE : Bitstream Buffer = 212447104 B (202 MB) 
     [m3vpss ] TILER_STATS: CNT :8BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    16384 x 5440
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 16384 x 5436
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   89063424 (99 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ] TILER_STATS: CNT :16BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    32768 x 1344
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 32768 x 1344
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   44040192 (100 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ]  2039243: SYSTEM  : FREE SPACE : Tiler 8-bit      = 89063424 B (84 MB)  - TILER ON 
     [m3vpss ]  2039244: SYSTEM  : FREE SPACE : Tiler 16-bit     = 44040192 B (42 MB)  - TILER ON 
     [m3vpss ]  
     [m3vpss ]  *** [DEI2    ] DEI Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time           : 19 secs
     [m3vpss ]  Total Fields Processed : 1712 
     [m3vpss ]  Total Fields FPS       : 222 FPS
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4]  
     [m3vpss ]  Num | FPS     FPS       FPS        FPS    FPS    FPS    FPS    FPS       FPS         FPS         FPS         FPS         FPS       
     [m3vpss ]  -----------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |      45         0         45      0     41      0      0      0          45           3           0           0           0 3
     [m3vpss ]    1 |      45         0         45      0     41      0      0      0          45           3           0           0           0 3
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Driver Statistics *** 
     [m3vpss ] 0) *** Drv Inst [0], handle 9E22DA50, NON_DEI      
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time: 18 secs
     [m3vpss ]  
     [m3vpss ]  Output Request FPS   : 34 fps (618 frames) 
     [m3vpss ]  Output Actual  FPS   : 34 fps (618 frames) 
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames) 
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames) 
     [m3vpss ]  Scaling Internal     : 29 ms 
     [m3vpss ]  Scaling Internal min : 30 ms 
     [m3vpss ]  Scaling Internal max : 30 ms 
     [m3vpss ]  
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency   OutBufCopy InBufCopy
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max FPS        FPS      
     [m3vpss ]  ---------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |     31      2   11   43   31          0      213 (  3/  3)         0          0      0  42 /  63          2         0 
     [m3vpss ]    1 |     31      2   11   43   31          0      213 (  3/  3)         0          0      0  42 /  63          2         0 
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Parameters *** 
     [m3vpss ]  
     [m3vpss ]  Output FPS: 30
     [m3vpss ]  
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output     |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type|
     [m3vpss ]  -----------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |  1280 x    360 |  2560 /  2560 | NON-TILED   |    0,    0 |   960 x   1080 |  3840 /      0 | NON-TILED  |
     [m3vpss ]    1 |   1 |    0,    0 |  1280 x    360 |  2560 /  2560 | NON-TILED   |  960,    0 |   960 x   1080 |  3840 /      0 | NON-TILED  |
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  2039252: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 86 / 112 ), Callback Interval (Min / Max) = ( 16 / 17 ) DropCount:0 
     [m3vpss ]  2039253: DISPLAY DRV: HDDAC(BP0) : Q:[619] Display:[1119], Repeat:[502], DQ:[617]
     [m3vpss ]  2039253: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1117, HDDAC(BP0) 0, DVO2(BP1) 1117, SDDAC(SEC1) 2188 
     [m3vpss ]  2039253: SYSTEM  : FREE SPACE : System Heap      = 243424 B, Mbx = 10239 msgs) 
     [m3vpss ]  2039253: SYSTEM  : FREE SPACE : SR0 Heap         = 67389952 B (64 MB) 
     [m3vpss ]  2039253: SYSTEM  : FREE SPACE : Frame Buffer     = 140516224 B (134 MB) 
     [m3vpss ]  2039254: SYSTEM  : FREE SPACE : Bitstream Buffer = 212447104 B (202 MB) 
     [m3vpss ] TILER_STATS: CNT :8BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    16384 x 5440
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 16384 x 5436
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   89063424 (99 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ] TILER_STATS: CNT :16BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    32768 x 1344
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 32768 x 1344
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   44040192 (100 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ]  2039256: SYSTEM  : FREE SPACE : Tiler 8-bit      = 89063424 B (84 MB)  - TILER ON 
     [m3vpss ]  2039256: SYSTEM  : FREE SPACE : Tiler 16-bit     = 44040192 B (42 MB)  - TILER ON 
     [m3vpss ]  
     [m3vpss ]  *** IpcFramesOutRTOS Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time           : 18 secs
     [m3vpss ]  Total Fields Processed : 618 
     [m3vpss ]  Total Fields FPS       : 34 FPS
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Process In Skip
     [m3vpss ]  Num | FPS     FPS        FPS    
     [m3vpss ]  --------------------------------
     [m3vpss ]    0 |      34         34       0
     [m3vpss ]  
     [c6xdsp ]  
     [c6xdsp ]  *** SCD Statistics *** 
     [c6xdsp ]  
     [c6xdsp ]  Elasped Time           : 2042 secs
     [c6xdsp ]  Total Fields Processed : 0 
     [c6xdsp ]  Total Fields FPS       : 0 FPS
     [c6xdsp ]  
     [c6xdsp ]  
     [c6xdsp ]  CH  | In Recv In Process User Skip Process Skip In Process Time 
     [c6xdsp ]  Num | FPS     FPS        FPS       FPS          per frame (msec)
     [c6xdsp ]  ----------------------------------------------------------------
     [c6xdsp ]  
     [m3video]      2045258: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :15 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :15 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :15 %
     [m3video]               totalAcq2acqDelay :85 %
     [m3video]               totalElapsedTime in msec :   23093
     [m3video]               numAccessCnt:     693
     [m3video]              IVA-FPS :      30
     [m3video]              Average time spent per frame in microsec:    4998
     [m3video]      2045259: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      2045260: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]  
     [m3video]  *** DECODE Statistics *** 
     [m3video]  
     [m3video]  Elasped Time           : 22 secs
     [m3video]  
     [m3video]  
     [m3video]  CH  | In Recv In User  Out 
     [m3video]  Num | FPS     Skip FPS FPS 
     [m3video]  -----------------------------------
     [m3video]    0 |      31        0  31
     [m3video]  
     [m3video] Multi Channel Decode Average Submit Batch Size 
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 1
     [m3video] IVAHD_0 Max achieved Batch Size : 1
     [m3video]  
     [m3video] Multi Channel Decode Batch break Stats 
     [m3video] Total Number of Batches created: 690 
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 100 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video]  
     [m3vpss ]  
     [m3vpss ]  2048264: LOAD: CPU: 14.1% HWI: 2.7%, SWI:2.0% 
     [m3vpss ]  
     [m3vpss ]  2048264: LOAD: TSK: IPC_IN_M30          : 0.2% 
     [m3vpss ]  2048265: LOAD: TSK: IPC_FRAMES_OUT0     : 0.8% 
     [m3vpss ]  2048265: LOAD: TSK: IPC_FRAMES_OUT1     : 0.9% 
     [m3vpss ]  2048265: LOAD: TSK: CAPTURE             : 0.5% 
     [m3vpss ]  2048265: LOAD: TSK: DEI0                : 1.0% 
     [m3vpss ]  2048265: LOAD: TSK: DEI2                : 1.4% 
     [m3vpss ]  2048265: LOAD: TSK: DISPLAY0            : 0.5% 
     [m3vpss ]  2048265: LOAD: TSK: SWMS0               : 1.2% 
     [m3vpss ]  2048266: LOAD: TSK: MISC                : 2.9% 
     [m3vpss ]  
     [m3video]  
     [m3video]  2048767: LOAD: CPU: 6.0% HWI: 0.9%, SWI:1.1% 
     [m3video]  
     [m3video]  2048767: LOAD: TSK: IPC_OUT_M30         : 0.6% 
     [m3video]  2048767: LOAD: TSK: IPC_BITS_IN0        : 0.4% 
     [m3video]  2048767: LOAD: TSK: DEC0                : 1.9% 
     [m3video]  2048767: LOAD: TSK: DEC_PROCESS_TSK_0   : 55.3% 
     [m3video]  2048768: LOAD: TSK: MISC                : -54.-2% 
     [m3video]  
     [c6xdsp ]  
     [c6xdsp ]  2048637: LOAD: CPU: 64.6% HWI: 0.1%, SWI:0.0% 
     [c6xdsp ]  
     [c6xdsp ]  2048637: LOAD: TSK: IPC_FRAMES_IN0      : 0.1% 
     [c6xdsp ]  2048637: LOAD: TSK: ALG0                : 64.0% 
     [c6xdsp ]  2048637: LOAD: TSK: MISC                : 0.4% 
     [c6xdsp ]  
    
    

    2) A8 utilization, using top command (We are booting our board using NFS) (Top.txt)

    CPU:   7% usr  80% sys   0% nic   7% idle   0% io   0% irq   4% sirq
    Load average: 2.00 2.07 3.49 5/79 901
      PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
      883   882 root     S     430m 148%  91% ./bin/dvr_rdk_demo_mcfw_api.out
      841   840 root     R     2472   1%   1% top -d 1
      882   700 root     S     2844   1%   0% -sh
      700     1 root     S     2840   1%   0% -sh
      840   669 root     S     2840   1%   0% -sh
      666     1 messageb S     2604   1%   0% /usr/bin/dbus-daemon --system
      669     1 root     S     2472   1%   0% /usr/sbin/telnetd
      729     1 root     S     2260   1%   0% ./bin/remote_debug_client.out 0xbff00000
      113     1 root     S <   2248   1%   0% /sbin/udevd -d
      734   113 root     S <   2244   1%   0% /sbin/udevd -d
      790   113 root     S <   2244   1%   0% /sbin/udevd -d
      681     1 nobody   S     2212   1%   0% /usr/sbin/thttpd -d /srv/www -p 8080
      676     1 root     S     2148   1%   0% /sbin/klogd -n
      674     1 root     S     2148   1%   0% /sbin/syslogd -n -O /var/log/messages
      701     1 root     S     1880   1%   0% /sbin/getty 38400 tty1
        1     0 root     S     1632   1%   0% init [5]
        7     2 root     SW       0   0%   0% [irq/72-serial i]
        3     2 root     SW       0   0%   0% [ksoftirqd/0]
       25     2 root     SW       0   0%   0% [kworker/0:1]
       43     2 root     SW       0   0%   0% [kworker/u:2]
        2     0 root     SW       0   0%   0% [kthreadd]
       41     2 root     SW       0   0%   0% [scsi_eh_0]
        5     2 root     SW       0   0%   0% [kworker/u:0]
       86     2 root     SW       0   0%   0% [mmcqd/0]
       50     2 root     SW       0   0%   0% [mtdblock6]
        4     2 root     SW       0   0%   0% [kworker/0:0]
        6     2 root     SW<      0   0%   0% [khelper]
        8     2 root     SW       0   0%   0% [irq/73-serial i]
        9     2 root     SW       0   0%   0% [irq/74-serial i]
       10     2 root     SW       0   0%   0% [irq/44-serial i]
       11     2 root     SW       0   0%   0% [irq/45-serial i]
       12     2 root     SW       0   0%   0% [irq/46-serial i]
       13     2 root     SW<      0   0%   0% [mboxd]
       14     2 root     SW       0   0%   0% [sync_supers]
       15     2 root     SW       0   0%   0% [bdi-default]
    
    

    Please share your thoughts.


    Thanks,

    Ronak

  • Hi Badri,


    One of our application threads was misbehaving and causing this much of CPU on A8. After resolving it, now we are observing only 3-4 % utilization on A8 and rest of the CPU is free.


    We are really thankful for your support.

    Thanks,

    Ronak

  • Hi Badri,


    Now, we are trying to run OSD with 1080P video, we took care of modifications for size changes at all know places but execution stops in-between after starting Display, without giving any error. We tried debugging through debug prints and found that it stops giving any print after starting dei.


    Please refer the attached log and provide your valuable inputs.

    Thanks,

    Ronak

     =========
     Main Menu
     =========
    
     1: 4CH VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     2: 8CH <D1+CIF> VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     3: 16CH RT VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     4: 16CH NRT <D1+CIF> VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     5:               VDEC + VDIS  - SD/HD Decode ONLY
    
    
     e: Exit
    
     Enter Choice: 1
     
     Sample ini files available in ./demo_ini folder. 
     Enter the .ini filename with full path : /data/1080p.ini
     *** a new param codec is needed for ini, if you not sure about this
     *** please reference demo_ini/704x576_02_32CH.ini 
     *** H264:  codec = h264
     *** MPEG4: codec = mpeg4
     *** MJPEG: codec = mjpeg
     *** MPEG2: codec = mpeg2
     *** Four new params numbuf ,displaydelay,tilerEnable,fieldPicture has been added for ini, if not defaults are set
     
     *** Generate header files *** 
     
     This will take very long time if the file is large.
     - For first time you MUST select YES. 
     - If you already have the header file on disk, you can select NO. 
     
     Do you want to generate header ? (YES - y, NO - n) : n
     
     0: Opening file [/data/1080p.mjpeg] of 1920 x 1056  Codec: mjpeg... 
    gVdecVdis_config.numChannels : 1 gVdecVdis_config.chBufSize[0] : 2027520
     File open ... DONE !!!
     
    --------------- CHANNEL DETAILS-------------
    Capture Channels => 2
    Dec Channels => 1
    Disp Channels => 2
    -------------------------------------------
     0: SYSTEM: System Common Init in progress !!!
     0: SYSTEM: IPC init in progress !!!
     20: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
     20: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
     20: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
     20: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
     20: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
     23: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
     25: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
     27: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
     27: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     28: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     29: SYSTEM: Notify register to [DSP] line 0, event 15 ... 
     29: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 
     30: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 
     31: SYSTEM: IPC init DONE !!!
     32: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
     34: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
     36: SYSTEM: ListElem Shared Addr = 0x40ef3680
     37: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
     39: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
     41: SYSTEM: ListElem Shared Addr = 0x40f2a480
     43: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
     45: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
     47: SYSTEM: ListElem Shared Addr = 0x40f61280
     48: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
     50: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
     52: SYSTEM: ListElem Shared Addr = 0x40fa4580
     53: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
     55: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
     57: SYSTEM: ListElem Shared Addr = 0x40fe7880
     79: SYSTEM: System Common Init Done !!!
    ch[0], jpeg
     [host] HDMI Ctrl :Initializing
    [HOST] 
    ThreadName:Vdis_hdmiControlThread_0,ThreadID:810
     [host] HDMI Ctrl :Initialized
     [host] HDMI Ctrl :Sink Connected
     149: MCFW  : CPU Revision [ES2.1] !!! 
     [m3vpss ]  9004: CAPTURE: Create in progress !!!
     [m3vpss ]  9042: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! 
     [m3vpss ]  9132: CAPTURE: VIP1 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! 
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 58 (58)
     [m3vpss ]  UTILS: DMA: 0 of 4: Allocated PaRAM = 58 (0x49004740)
     [m3vpss ]  UTILS: DMA: 1 of 4: Allocated PaRAM = 64 (0x49004800)
     [m3vpss ]  UTILS: DMA: 2 of 4: Allocated PaRAM = 65 (0x49004820)
     [m3vpss ]  UTILS: DMA: 3 of 4: Allocated PaRAM = 66 (0x49004840)
     [m3vpss ] CAPTURE::HEAPID:0    USED:520
     [m3vpss ] CAPTURE::HEAPID:4    USED:31795200
     [m3vpss ]  9223: CAPTURE: Create Done !!!
     [m3vpss ]  9223: DEI    : Create in progress !!!
     [m3vpss ] DEI: Ch 0, Outformat is PROGRESSIVE
     [m3vpss ]  9260: DEI: OUT1:  0: Format: PROGRESSIVE, 0xae26ec80, 1280 x 720, 4 frames
     [m3vpss ] DEI: Ch 1, Outformat is PROGRESSIVE
     [m3vpss ]  9296: DEI: OUT1:  1: Format: PROGRESSIVE, 0xae7b4c80, 1280 x 720, 4 frames
     [m3vpss ]  9298: DEI     : Loading Down-scaling Co-effs
     [m3vpss ]  9298: DEI     : Co-effs Loading ... DONE !!!
     [m3vpss ] DEI:HEAPID:0 USED:64
     [m3vpss ] DEI:HEAPID:1 USED:5984
     [m3vpss ] DEI:HEAPID:4 USED:11059200
     [m3vpss ]  9299: DEI    : Create Done !!!
     [m3vpss ]  9300: SWMS: Create in progress !!!
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 59 (59)
     [m3vpss ]  UTILS: DMA: 0 of 1: Allocated PaRAM = 59 (0x49004760)
     [m3vpss ] SWMS: instance 0, sc id 5, start win 0 end win 17
     [c6xdsp ]  8874: IPC_FRAMES_IN   : Create in progress !!!
     [m3vpss ]  9499: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ... 
     [c6xdsp ]  8874: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_19] ...
     [m3vpss ]  9499: SWMS0    : Loading Horizontal Co-effs (UPSCALE)x ... 
     [c6xdsp ]  8874: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_19] ...
     [m3vpss ]  9499: SWMS    : Co-effs Loading ... DONE !!!
     [m3vpss ]  9500: SWMS:  0: Format: PROGRESSIVE, 1280 x 720
     [m3vpss ]  9500: SWMS:  1: Format: PROGRESSIVE, 1280 x 720
     [m3vpss ]  9500: SWMS    : ******* Configuring clock 30 secs... 
     [m3vpss ]  9500: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ... 
     [m3vpss ]  9500: SWMS0    : Loading Horizontal Co-effs (11/16)x ... 
     [m3vpss ]  9501: SWMS    : Co-effs Loading ... DONE !!!
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Parameters *** 
     [m3vpss ]  
     [m3vpss ]  Output FPS: 30
     [m3vpss ]  
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      
    | Scan        | Low Cost | SWMS | Data  | Blank |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type 
    | Fmt         | ON / OFF | Inst | Format| Frame |
     [m3vpss ]  -----------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |  1280 x    360 |  2560 /  2560 | NON-TILED   |    0,    0 |   960 x   1080 |  3840 /      0 | NON-TILED   
    | PROGRESSIVE |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    1 |   1 |    0,    0 |  1280 x    360 |  2560 /  2560 | NON-TILED   |  960,    0 |   960 x   1080 |  3840 /      0 | NON-TILED   
    | PROGRESSIVE |       ON |    0 |  420SP |   OFF |
     [m3vpss ]  
     [c6xdsp ]  8875: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     [m3vpss ] SWMS:HEAPID:0        USED:224
     [m3vpss ] SWMS:HEAPID:1        USED:47296
     [c6xdsp ] IPC_FRAMES_IN:HEAPID:0       USED:304
     [m3vpss ] SWMS:HEAPID:4        USED:29030400
     [c6xdsp ]  8877: IPC_FRAMES_IN   : Create Done !!!
     [m3vpss ]  9503: SWMS: Create Done !!!
     [c6xdsp ]  8878: ALG : Create in progress !!!
     [m3vpss ]  9503: IPC_FRAMES_OUT   : Create in progress !!!
    [HOST] 
    ThreadName:IpcBitsOutLink_tskMain_30000018,ThreadID:802
    
     [host]  677: IPC_BITS_OUT   : Create in progress !!!
    
     [host] IPC_BITSOUT:BitBuffer Alloc.ChID:0,Size:0x9AB000
     [host] 
    ******* RingBuf 0 created ********
    
     [host] IPCBITSOUTLINK:Translated Addr Virt:0x48661080 To Phy:0x90000080
     [host] 
    ###Bit buff of size from the SR # 1 : 10137600 / bufsize 2027520, maxQueueDepth 50 
    
     [host] ###Bit buff BasePtr: 48661080 / PhyAddr 90000080
    
     [host]  679: IPC_BITS_OUT   : Create Done !!!
    [HOST] 
    ThreadName:IpcBitsOutLink_periodicTaskFxn_30000018,ThreadID:813
     [m3video]  9534: IPC_BITS_IN   : Create in progress !!!
     [m3vpss ]  9506: IPC_FRAMES_OUT   : Create Done !!!
     [c6xdsp ] ALGLINK:HEAPID:0     USED:2616
     [m3video]  9534: SYSTEM: Opening ListMP [HOST_IPC_OUT_24] ...
     [m3vpss ]  9530: DISPLAY: Create in progress !!!
     [c6xdsp ] ALGLINK:HEAPID:1     USED:31512
     [m3video]  9534: SYSTEM: Opening ListMP [HOST_IPC_IN_24] ...
     [m3vpss ]  9531: DISPLAY: Create Done !!!
     [c6xdsp ]  8894: ALG : Create Done !!!
     [m3video]  9535: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3video]  9538: IPC_BITS_IN   : Create Done !!!
     [m3video]  9538: DECODE: Create in progress ... !!!
     [m3video] DECLINK_JPEG:HEAPID:0        USED:14512
     [m3video]  9909: DECODE: Creating CH0 of 1920 x 1056 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ... 
     [m3video]  9911: DECODE: All CH Create ... DONE !!!
     [m3vpss ]  9917: IPC_IN_M3   : Create in progress !!!
     [m3vpss ]  9917: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_0] ...
     [m3video] DECLINK:HEAPID:0     USED:14552
     [m3vpss ]  9918: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_0] ...
     [m3video] DECLINK:HEAPID:3     USED:57802752
     [m3vpss ]  9919: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     [m3video]  9915: DECODE: Create ... DONE !!!
     [m3vpss ]  9922: IPC_IN_M3   : Create Done !!!
     [m3video]  9915: IPC_OUT_M3   : Create in progress !!!
     [m3vpss ]  9922: DEI    : Create in progress !!!
     [m3video]  9917: IPC_OUT_M3   : Create Done !!!
     [m3vpss ] DEI: Ch 0, Outformat is PROGRESSIVE
     [m3vpss ]  10028: DEI: OUT1:  0: Format: PROGRESSIVE, 0xb3fca480, 1920 x 1056, 4 frames
     [m3vpss ]  10030: DEI     : Loading Down-scaling Co-effs
     [m3vpss ]  10030: DEI     : Co-effs Loading ... DONE !!!
    Detected video resolution is: 1280x720
    [HOST] 
    ThreadName:IpcFramesInLink_tskMain_30000016,ThreadID:804
    
     [host] IpcFramesInLink_tskMain:Entered
     [host]  1180: IPC_FRAMES_IN   : Create in progress !!!
    
     [host]  1180: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_20] ...
     1182: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_20] ...
    
     [host]  1186: IPC_FRAMES_IN   : Create Done !!!
    [HOST] 
    ThreadName:IpcFramesInLink_periodicTaskFxn_30000016,ThreadID:814
    LINK-CHAIN Created done successfuly
    OSD Runtime perameter set successfuly
    Video Interface: HDMI In
    Mode set is 720P50
    =============================================================
    Capture Format:
    =============================================================
    fmt.type                 = 1
    fmt.width                = 1280
    fmt.height               = 720
    fmt.pixelformat  = 842094158
    fmt.bytesperline         = 1280
    fmt.sizeimage    = 1382400
    =============================================================
    Video Interface: Component In
    Mode set is 720P50
    =============================================================
    Capture Format:
    =============================================================
    fmt.type                 = 1
    fmt.width                = 1280
    fmt.height               = 720
    fmt.pixelformat  = 842094158
    fmt.bytesperline         = 1280
    fmt.sizeimage    = 1382400
    =============================================================
     [m3vpss ] DEI:HEAPID:0 USED:64
     [m3vpss ] DEI:HEAPID:1 USED:4448
     [m3vpss ] DEI:HEAPID:4 USED:16220160
     [m3vpss ]  10031: DEI    : Create Done !!!
     [m3vpss ]  10031: IPC_FRAMES_OUT   : Create in progress !!!
     [m3vpss ]  10034: IPC_FRAMES_OUT   : Create Done !!!
     [m3vpss ]  10058: DISPLAY: Start in progress !!!
     [m3vpss ]  10102: DISPLAY: Start Done !!!
     [m3vpss ]  10102: DISPLAY: HDDAC(BP0) : 45 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) DropCount:0 Dis
    pLatency (Min / Max) = ( 10737 / 0 ) !!! 
     [m3vpss ]  10102: SWMS: Start in Progress !!!
     [m3vpss ]  10102: SWMS: Start Done !!!
     [m3vpss ]  10102: DISPLAY DRV: HDDAC(BP0) : Q:[2] Display:[2], Repeat:[1], DQ:[0]
     [m3vpss ]  10103: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1, HDDAC(BP0) 0, DVO2(BP1) 1, SDDAC(SEC1) 1 
     [m3vpss ]  10103: SYSTEM  : FREE SPACE : System Heap      = 243424 B, Mbx = 10239 msgs) 
     [m3vpss ]  10103: SYSTEM  : FREE SPACE : SR0 Heap         = 9517056 B (9 MB) 
     [m3vpss ]  10103: SYSTEM  : FREE SPACE : Frame Buffer     = 157014912 B (149 MB) 
     [m3vpss ]  10103: SYSTEM  : FREE SPACE : Bitstream Buffer = 206917504 B (197 MB) 
     [m3vpss ] TILER_STATS: CNT :8BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    16384 x 5440
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 16384 x 5436
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   89063424 (99 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ] TILER_STATS: CNT :16BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    32768 x 1344
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 32768 x 1344
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   44040192 (100 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ]  10105: SYSTEM  : FREE SPACE : Tiler 8-bit      = 89063424 B (84 MB)  - TILER ON 
     [m3vpss ]  10105: SYSTEM  : FREE SPACE : Tiler 16-bit     = 44040192 B (42 MB)  - TILER ON 
    Display start done successfuly
    Successfully started gVcapModuleContext.ipcFramesOutVpssToHostId 
    Successfully started gVcapModuleContext.ipcFramesInHostId 
    Successfully started gVcapModuleContext.ipcFramesOutVpssId 
    Successfully started gVcapModuleContext.ipcFramesInDspId 
    Successfully started gVcapModuleContext.deiId 
    

  • Hi Badri,

    Did you get a chance to look at the issue which I mentioned in previous post. It is the only gating factor to move ahead.

    We felt it could be an issue with in-sufficient shared memory, so we tried with various memory layouts also but couldn't get success.

    Please provide your inputs.

    Thanks,

    Ronak

  • Hi Badri,


    Please consider a request to  provide your inputs on above question on whether is it possible to do 1080P video overlay.


    Thanks,

    Ronak