H.264 Encode Configuration Parameters

This table describes the H.264 encode configuration parameters:

Parameter

Description

H264Profile

Supported profiles are:

  • 0: Automatic profile selection
  • 66: Baseline profile
  • 77: Main profile
  • 88: Extended profile
  • 100: High profile
  • 244: High444 profile (lossless)

H264Level

Specifies the encoding level. It is recommended that the client set the level to 0 to enable the NvMedia Encode interface to select the correct level.

H264Features

Specifies the bitwise OR'ed configuration feature flags. The flags are:

  • ENABLE_OUTPUT_AUD (1 << 0)
  • ENABLE_INTRA_REFRESH (1 << 1)
  • ENABLE_DYNAMIC_SLICE_MODE (1 << 2)
  • ENABLE_CONSTRANED_ENCODING (1 << 3)

H264IdrPeriod

Specifies the IDR interval. If not set, it defaults to the GOP length. A low latency application client must set IDR interval to 0 so that IDR frames are not inserted automatically.

H264RepeatSPSPPSMode

Specifies the frequency of writing Sequence and Picture parameters. Value may be:

  • 0x0: Repeating SPS/PPS is disabled
  • 0x1: SPS/PPS is repeated for every intra frame
  • 0x2: SPS/PPS is repeated for every IDR frame

H264NumSliceCountMinus1

One less than the number of slices desired per frame.

H264DisableDeblockingFilterIDC

Deblocking filter mode. Value may be 0, 1, or 2.

H264IntraRefreshPeriod

Interval between successive intra refreshes, if Intra refresh is enabled and one-time intra refresh configuration is desired.

If H264IntraRefreshPeriod is specified, the first IDR is encoded, and no more key frames are encoded.

The client must set EPPictureType to 6 for the first picture of every intra refresh period.

H264IntraRefreshCnt

Number of frames over which intra refresh occurs.

H264MaxSliceSizeInBytes

Maximum slice size, in bytes, for dynamic slice mode. The client must enable dynamic slice mode to use this parameter.

H264AdaptiveTransformMode

Specifies the Adaptive Transform Mode. Available modes are:

  • 0x0: The encoder driver automatically selects Adaptive Transform 8x8 mode.
  • 0x1: Adaptive Transform 8x8 mode disabled.
  • 0x2: Adaptive Transform 8x8 mode must be used.

H264BdirectMode

Specifies the B Direct mode. Available modes are:

  • 0x0: Spatial B Direct mode
  • 0x1: Disable B Direct mode
  • 0x2: Temporal B Direct mode

H264EntropyCodingMode

Specifies the entropy coding mode. Available modes are:

  • 0x0: Entropy coding mode is automatically selected by the encoder driver
  • 0x1: Entropy coding mode is CABAC
  • 0x2: Entropy coding mode is CAVLC

H264MotionPredictionExclusionFlags

Specifies the bitwise OR'ed exclusion flags for motion prediction. Available flags are:

  • (1 << 0): Disable Intra 4x4 vertical prediction
  • (1 << 1): Disable Intra 4x4 horizontal prediction
  • (1 << 2): Disable Intra 4x4 DC prediction
  • (1 << 3): Disable Intra 4x4 diagonal down left prediction
  • (1 << 4): Disable Intra 4x4 diagonal down right prediction
  • (1 << 5): Disable Intra 4x4 vertical right prediction
  • (1 << 6): Disable Intra 4x4 horizontal down prediction
  • (1 << 7): Disable Intra 4x4 vertical left prediction
  • (1 << 8): Disable Intra 4x4 horizontal up prediction
  • (1 << 9): Disable Intra 8x8 vertical prediction
  • (1 << 10): Disable Intra 8x8 horizontal prediction
  • (1 << 11): Disable Intra 8x8 DC prediction
  • (1 << 12): Disable Intra 8x8 diagonal down left prediction
  • (1 << 13): Disable Intra 8x8 diagonal down right prediction
  • (1 << 14): Disable Intra 8x8 vertical right prediction
  • (1 << 15): Disable Intra 8x8 horizontal down prediction
  • (1 << 16): Disable Intra 8x8 vertical left prediction
  • (1 << 17): Disable Intra 8x8 horizontal up prediction
  • (1 << 18): Disable Intra 16x16 vertical prediction
  • (1 << 19): Disable Intra 16x16 horizontal prediction
  • (1 << 20): Disable Intra 16x16 DC prediction
  • (1 << 21): Disable Intra 16x16 plane prediction
  • (1 << 22): Disable Intra chroma vertical prediction
  • (1 << 23): Disable Intra chroma horizontal prediction
  • (1 << 24): Disable Intra chroma DC prediction
  • (1 << 25): Disable Intra chroma plane prediction
  • (1 << 26): Disable Inter L0 partition 16x16 prediction
  • (1 << 27): Disable Inter L0 partition 16x8 prediction
  • (1 << 28): Disable Inter L0 partition 8x16 prediction
  • (1 << 29): Disable Inter L0 partition 8x8 prediction