| Streamaxia Open SDK 3.2

List of all members
AXUtils(Bitrate) Category Reference

`#import <AXUtils+Bitrate.h>`

## Instance Methods
Public methods
(NSInteger) | - bitrateForResolution:
(NSInteger) | - minBitrateForResolution:
(NSInteger) | - maxBitrateForResolution:
(NSInteger) | - clampBitrate:forResolution:

## Properties
Properties
NSDictionary< NSNumber *, NSNumber * > * | optimalBitrates
NSDictionary< NSNumber *, NSNumber * > * | minBitrates
NSDictionary< NSNumber *, NSNumber * > * | maxBitrates

## Detailed Description

The bit rate utils.

## Method Documentation

## ◆ bitrateForResolution:()

- (NSInteger) bitrateForResolution: |  | (AXVideoFrameResolution) | resolution |

Provides the optimal bit rate for the given resolution.

Parameters

  resolution | The resolution

Returns
  The optimal bit rate, in bps.

Extends class AXUtils.

## ◆ clampBitrate:forResolution:()

- (NSInteger) clampBitrate: |  | (NSInteger) | bitrate
forResolution: |  | (AXVideoFrameResolution) | resolution

Clamps the given bit rate between the recommended minimum and maximum bit rate values, for the given resolution.

The input bit rate should be in bits per second (bps).

Parameters

  bitrate | The bit rate.
  resolution | The resolution

Returns
  The clamped bit rate, in bps.

Extends class AXUtils.

## ◆ maxBitrateForResolution:()

- (NSInteger) maxBitrateForResolution: |  | (AXVideoFrameResolution) | resolution |

Provides the maximum bit rate for the given resolution.

Parameters

  resolution | The resolution

Returns
  The maximum bit rate, in bps.

Extends class AXUtils.

## ◆ minBitrateForResolution:()

- (NSInteger) minBitrateForResolution: |  | (AXVideoFrameResolution) | resolution |

Provides the minimum bit rate for the given resolution.

Parameters

  resolution | The resolution

Returns
  The minimum bit rate, in bps.

Extends class AXUtils.

## Property Documentation

## ◆ maxBitrates

- (NSDictionary<NSNumber *, NSNumber *>*) maxBitrates
| read nonatomic strong

The list of maximum bit rates for each resolution.

Extends class AXUtils.

## ◆ minBitrates

- (NSDictionary<NSNumber *, NSNumber *>*) minBitrates
| read nonatomic strong

The list of minimum bit rates for each resolution.

Extends class AXUtils.

## ◆ optimalBitrates

- (NSDictionary<NSNumber *, NSNumber *>*) optimalBitrates
| read nonatomic strong

The list of optimal bit rates for each resolution.

Extends class AXUtils.

The documentation for this category was generated from the following file:

- /Users/mac/Documents/StreamaxiaSDK/Streamaxia Open SDK/StreamaxiaSDK.framework/Headers/AXUtils+Bitrate.h