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.

ivahd h.264 encoder configuration

Hi TI experts,


I am trying to find out how to configure the following info
in ivahd h.264 encoder(ivahd_h264enc) for TDA2PX platform.
I have gone through user guide but didn't get much info from that.

a) GOP number should be a multiple of 3
b) One slice is allowed per frame
c) when resolution is like 1080p45, 1080p60 how to support only single reference frame and no B frame.
d) how to configure only 16*16 and 4*4 block partitions .
e) how to support DC,horizontal and vertical prediction modes
f) configure vertical motion vector value

Regards
Mayank

  • Hi Mayank,

    Did you get chance to look at the user guide of H.264 encoder (H264_Encoder_HDVICP2_UserGuide.pdf)? This document provides expalination of all the control parameters for H264 encoder

    Thanks,

    With Regards,

    Pramod

  • Hi Pramod,

    Thanks for your mail.I have got most of the parameters configuration from user guide but i am 

    not able to  get the motion vector configuration in encoder parameters.Could you please update

    where can i  configure the motion vector in ivahd encoder params structure.

    The vertical motion vector should be less than a specified value, and the following code is used as a condition check (the value is in integer pixel unit):

    if (picture width >=2560)

    vert_mvmax = 16;

    else if (picture width > 1920)

    vert_mvmax = 24;

    else if (picture width > 1440)

    {

            if (reference frame number == 1)

                     vert_mvmax = 56;

    else

            vert_mvmax = 40;

    }

    else if (picture width > 1280)

            vert_mvmax = 48;

    else

            vert_mvmax = 56;

    Regards

    Mayank

  • Hi Mayank,

    Please refer IH264ENC_InterCodingParams ( section 4.2.2.3), parameters like searchRangeHorP, searchRangeVerP, searchRangeHorB and searchRangeVerB

    Thanks,
    With Regards,

    Pramod

  • Hi Pramod,

    Thanks for your mail.I studied the parameters mentioned by you.
    But in c files the parameters are configured the constant values as mentioned below :

    h264enc_params->interCodingParams.searchRangeHorP = 144;
    h264enc_params->interCodingParams.searchRangeVerP = 32;
    h264enc_params->interCodingParams.searchRangeHorB = 144;
    h264enc_params->interCodingParams.searchRangeVerB = 16;

    I want is it possible to configure the vert_mvmax value according to picture width.

    Regards
    Mayank
  • Which C file are you referring. You can modify and rebuild.