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.

DM365 DEI with 2 instances of H.264 encoder

Hello,

We have the following problems with the DEI, and I would appreciate your help:

1. When using version 1.7, we get excessive CPU (40-50%) when using it with 2 instances of H.264 encoder (D1, PAL).
2. Version 1.9 works by itself (we checked the frames before and after the module), but h264 encoder (single instance) get stuck on encoding of the first frame. See below the code we use to configure and run the system.

Our system configuration:
Processor: DM365
DVSDK: 4_02_00_06
H264 encoder: 02.20.00.01 and 02_30_00_01 (tried both)
Kernel: 2.6.32-17

Code:
- We use the same code for both 1.7 and 1.9 versions, except for the marked lines

static IDEI_Params extParams=
{
      .videncParams= /* must be followed for all video encoders */
      {
            .size=                        sizeof(IDEI_Params),
            .maxHeight=                   FRAME_H,
            .maxWidth =                   FRAME_W,
            .encodingPreset=        0,
            .rateControlPreset=           0,
            .maxFrameRate=                0,
            .maxBitRate=                  0,
            .dataEndianness=        0,
            .maxInterFrameInterval= 0,
            .inputChromaFormat=           XDM_YUV_422ILE,
            .inputContentType=            0,
            .reconChromaFormat=           0
      },

      .subWindowHeight=             FRAME_H,
      .subWindowWidth=              FRAME_W,
      .threshold=                   20,
      .outputFormat=                      XDM_YUV_422ILE,
      .q_num=                             3,
      .askIMCOPRes=                 0,

#ifdef DEI_1_9
      .sysBaseAddr=                       0,
#endif
};

static IDEI_DynamicParams extDynParams=
{
      .videncDynamicParams=
      {
            .size=                              sizeof(IDEI_DynamicParams),
            .inputHeight=                 FRAME_H,
            .inputWidth=                  FRAME_W,
            .refFrameRate=                0,
            .targetFrameRate=       0,
            .targetBitRate=               0,
            .intraFrameInterval=    0,
            .generateHeader=        0,
            .captureWidth=                0,
            .forceFrame=                  0,
            .interFrameInterval=    0,
            .mbDataFlag=                  0
      }
};

#ifdef DEI_1_9
      extParams.sysBaseAddr=(XDAS_Int32)mmap(NULL,0x800,PROT_READ | PROT_WRITE, MAP_SHARED,fdmem,0x01C40000);
#endif

dei = VIDENC1_create(engine, "dei", (VIDENC1_Params *) &extParams);

-------------------------

Thanks,
Uri