Application can configure AVC encoder to work in CQP rate control mode with HRD model parameters. SDK will place HRD information to SPS/VUI and choose appropriate profile/level. It’s responsibility of application to provide per-frame QP, track HRD conformance and insert required SEI messages to the bitstream.
Example 21 shows how to enable CQP HRD mode. Application should set RateControlMethod to CQP, VuiNalHrdParameters to ON, NalHrdConformance to OFF and set rate control parameters similar to CBR or VBR modes (instead of QPI, QPP and QPB). SDK will choose CBR or VBR HRD mode based on MaxKbps parameter. If MaxKbps is set to zero, SDK will use CBR HRD model (write cbr_flag = 1 to VUI), otherwise VBR model will be used (and cbr_flag = 0 is written to VUI).
Example 21: Pseudo-code to enable CQP HRD mode
 HRD information is absent in the stream if both VuiVclHrdParameters and VuiNalHrdParameters options in mfxExtCodingOption structure are OFF.