quality.rd_curve

class RDCurve(rates, rate_unit, distortions, distortion_name, distortion_unit, codec_name, title)[source]

Bases: object

Parameters:
  • rates (List[float])

  • rate_unit (str)

  • distortions (List[float])

  • distortion_name (str)

  • distortion_unit (str)

  • codec_name (str)

  • title (str)

property codec_name: str

Gets the codec name.

Returns:

Codec name

Return type:

str

property title: str

Gets the curve title.

Returns:

Curve title

Return type:

str

property rate: List[float]

Gets the rate values.

Returns:

List of rate values

Return type:

List[float]

property distortion: List[float]

Gets the distortion values.

Returns:

List of distortion values

Return type:

List[float]

property rate_unit: str

Gets the rate unit.

Returns:

Rate unit string

Return type:

str

property distortion_unit: str

Gets the distortion unit.

Returns:

Distortion unit string

Return type:

str

property distortion_name: str

Gets the distortion metric name.

Returns:

Distortion name

Return type:

str

is_compatible(other)[source]

Checks if this RD curve is compatible with another for comparison.

Parameters:

other (RDCurve) – Other RD curve to compare

Returns:

True if curves have same rate unit, distortion name and unit

Return type:

bool