RDK Documentation (Open Sourced RDK Components)
|
Macros for Aamp. More...
#include <limits.h>
Go to the source code of this file.
Macros | |
#define | AAMP_CFG_PATH "/opt/aamp.cfg" |
#define | AAMP_JSON_PATH "/opt/aampcfg.json" |
#define | AAMP_VERSION "5.1" |
#define | AAMP_TUNETIME_VERSION 5 |
#define | MACRO_TO_STRING(s) X_STR(s) |
#define | X_STR(s) #s |
#define | GST_VIDEOBUFFER_SIZE_BYTES_BASE 4194304 |
#define | GST_AUDIOBUFFER_SIZE_BYTES_BASE 512000 |
#define | GST_VIDEOBUFFER_SIZE_BYTES (GST_VIDEOBUFFER_SIZE_BYTES_BASE) |
#define | GST_AUDIOBUFFER_SIZE_BYTES (GST_AUDIOBUFFER_SIZE_BYTES_BASE) |
#define | DEFAULT_ENCODED_CONTENT_BUFFER_SIZE (512*1024) |
#define | MAX_PTS_ERRORS_THRESHOLD 4 |
#define | DEFAULT_WAIT_TIME_BEFORE_RETRY_HTTP_5XX_MS (1000) |
#define | MAX_PLAYLIST_CACHE_SIZE (3*1024) |
#define | DEFAULT_ABR_CACHE_LIFE 5000 |
#define | DEFAULT_ABR_OUTLIER 5000000 |
#define | DEFAULT_ABR_SKIP_DURATION 6 |
#define | DEFAULT_ABR_NW_CONSISTENCY_CNT 2 |
#define | DEFAULT_BUFFER_HEALTH_MONITOR_DELAY 10 |
#define | DEFAULT_BUFFER_HEALTH_MONITOR_INTERVAL 5 |
#define | DEFAULT_ABR_CACHE_LENGTH 3 |
#define | DEFAULT_REPORT_PROGRESS_INTERVAL 1 |
#define | DEFAULT_LICENSE_REQ_RETRY_WAIT_TIME 500 |
#define | MIN_LICENSE_KEY_ACQUIRE_WAIT_TIME 500 |
#define | DEFAULT_LICENSE_KEY_ACQUIRE_WAIT_TIME 5000 |
#define | MAX_LICENSE_ACQ_WAIT_TIME 12000 |
#define | DEFAULT_INIT_BITRATE 2500000 |
#define | DEFAULT_BITRATE_OFFSET_FOR_DOWNLOAD 500000 |
#define | DEFAULT_INIT_BITRATE_4K 13000000 |
#define | AAMP_LIVE_OFFSET 15 |
#define | AAMP_DEFAULT_PLAYBACK_OFFSET -99999 |
#define | AAMP_CDVR_LIVE_OFFSET 30 |
#define | MIN_DASH_DRM_SESSIONS 3 |
#define | DEFAULT_CACHED_FRAGMENTS_PER_TRACK 4 |
#define | TRICKPLAY_VOD_PLAYBACK_FPS 4 |
#define | TRICKPLAY_LINEAR_PLAYBACK_FPS 8 |
#define | DEFAULT_DOWNLOAD_RETRY_COUNT (1) |
#define | DEFAULT_DISCONTINUITY_TIMEOUT 3000 |
#define | CURL_FRAGMENT_DL_TIMEOUT 10L |
#define | DEFAULT_STALL_ERROR_CODE (7600) |
#define | DEFAULT_STALL_DETECTION_TIMEOUT (10000) |
#define | DEFAULT_MINIMUM_INIT_CACHE_SECONDS 0 |
#define | DEFAULT_MAXIMUM_PLAYBACK_BUFFER_SECONDS 30 |
#define | DEFAULT_TIMEOUT_FOR_SOURCE_SETUP (1000) |
#define | MAX_SEG_DRM_DECRYPT_FAIL_COUNT 10 |
#define | MAX_SEG_INJECT_FAIL_COUNT 10 |
#define | AAMP_USERAGENT_BASE_STRING "Mozilla/5.0 (Linux; x86_64 GNU/Linux) AppleWebKit/601.1 (KHTML, like Gecko) Version/8.0 Safari/601.1 WPE" |
#define | AAMP_USERAGENT_SUFFIX "AAMP/"+AAMP_VERSION |
#define | DEFAULT_AAMP_ABR_THRESHOLD_SIZE (6000) |
#define | DEFAULT_PREBUFFER_COUNT (2) |
#define | AAMP_LOW_BUFFER_BEFORE_RAMPDOWN 10 |
#define | AAMP_HIGH_BUFFER_BEFORE_RAMPUP 15 |
#define | MAX_DASH_DRM_SESSIONS 30 |
#define | MAX_AD_SEG_DOWNLOAD_FAIL_COUNT 2 |
#define | FRAGMENT_DOWNLOAD_WARNING_THRESHOLD 2000 |
#define | BITRATE_ALLOWED_VARIATION_BAND 500000 |
#define | MAX_DIFF_BETWEEN_PTS_POS_MS (3600*1000) |
#define | MAX_SEG_DOWNLOAD_FAIL_COUNT 10 |
#define | MAX_DOWNLOAD_DELAY_LIMIT_MS 30000 |
#define | MAX_ERROR_DESCRIPTION_LENGTH 128 |
#define | MAX_ANOMALY_BUFF_SIZE 256 |
#define | MAX_WAIT_TIMEOUT_MS 200 |
#define | MAX_INIT_FRAGMENT_CACHE_PER_TRACK 5 |
#define | MIN_SEG_DURTION_THREASHOLD (0.25) |
#define | MAX_CURL_SOCK_STORE 10 |
#define | AAMP_RATE_TRICKPLAY_MAX 64 |
#define | AAMP_NORMAL_PLAY_RATE 1 |
#define | AAMP_SLOWMOTION_RATE 0.5 |
#define | AAMP_RATE_PAUSE 0 |
#define | AAMP_RATE_INVALID INT_MAX |
#define | AAMP_PAUSE_POSITION_POLL_PERIOD_MS (250) |
#define | AAMP_PAUSE_POSITION_INVALID_POSITION (-1) |
#define | STRLEN_LITERAL(STRING) (sizeof(STRING)-1) |
#define | STARTS_WITH_IGNORE_CASE(STRING, PREFIX) (0 == strncasecmp(STRING, PREFIX, STRLEN_LITERAL(PREFIX))) |
#define | MAX_GST_VIDEO_BUFFER_BYTES (GST_VIDEOBUFFER_SIZE_BYTES) |
#define | MAX_GST_AUDIO_BUFFER_BYTES (GST_AUDIOBUFFER_SIZE_BYTES) |
#define | DEFAULT_LATENCY_MONITOR_DELAY 9 |
#define | DEFAULT_LATENCY_MONITOR_INTERVAL 6 |
#define | DEFAULT_MIN_LOW_LATENCY 3 |
#define | DEFAULT_MAX_LOW_LATENCY 9 |
#define | DEFAULT_TARGET_LOW_LATENCY 6 |
#define | DEFAULT_MIN_RATE_CORRECTION_SPEED 0.90f |
#define | DEFAULT_MAX_RATE_CORRECTION_SPEED 1.10f |
#define | AAMP_NORMAL_LL_PLAY_RATE 1.01f |
#define | DEFAULT_CACHED_FRAGMENT_CHUNKS_PER_TRACK 20 |
#define | DEFAULT_ABR_CHUNK_CACHE_LENGTH 10 |
#define | DEFAULT_AAMP_ABR_CHUNK_THRESHOLD_SIZE (DEFAULT_AAMP_ABR_THRESHOLD_SIZE) |
#define | DEFAULT_ABR_CHUNK_SPEEDCNT 10 |
#define | DEFAULT_ABR_ELAPSED_MILLIS_FOR_ESTIMATE 100 |
#define | DEFAULT_ABR_BYTES_TRANSFERRED_FOR_ESTIMATE (512 * 1024) |
#define | MAX_MDAT_NOT_FOUND_COUNT 500 |
#define | DEFAULT_CONTENT_PROTECTION_DATA_UPDATE_TIMEOUT 5000 |
#define | FOG_MAX_CONCURRENT_DOWNLOADS 4 |
#define | AAMP_MAX_EVENT_PRIORITY (-70) |
#define | AAMP_TASK_ID_INVALID 0 |
#define | MAX_LICENSE_REQUEST_ATTEMPTS 2 |
#define | SECMANGER_DRM_FAILURE 200 |
#define | SECMANGER_WM_FAILURE 300 |
#define | SECMANGER_DRM_GEN_FAILURE 1 |
#define | SECMANGER_SERVICE_TIMEOUT 3 |
#define | SECMANGER_SERVICE_CON_FAILURE 4 |
#define | SECMANGER_SERVICE_BUSY 5 |
#define | SECMANGER_ACCTOKEN_EXPIRED 8 |
#define | SECMANGER_ENTITLEMENT_FAILURE 102 |
#define | SECMANGER_SPEED_SET_DELAY 500 |
Enumerations | |
enum | TunedEventConfig |
Enumeration for TUNED Event Configuration. More... | |
enum | PausedBehavior |
Enumeration for Paused state behavior. More... | |
enum | ConfigPriority |
AAMP Config Ownership values. More... | |
enum | LatencyStatus |
Latency status. More... | |
enum | SecManagerResultClassStatusCode |
enum | SecManagerResultSuccessCode |
enum | SecManagerResultApiCode |
enum | SecManagerResultDRMCode |
Macros for Aamp.
Definition in file AampDefine.h.
#define DEFAULT_ENCODED_CONTENT_BUFFER_SIZE (512*1024) |
512KB buffer is allocated for a content encoded curl download to minimize buffer reallocation
Definition at line 60 of file AampDefine.h.
#define DEFAULT_WAIT_TIME_BEFORE_RETRY_HTTP_5XX_MS (1000) |
Wait time in milliseconds before retry for 5xx errors
Definition at line 62 of file AampDefine.h.
#define MAX_PLAYLIST_CACHE_SIZE (3*1024) |
Approx 3MB -> 2 video profiles + one audio profile + one iframe profile, 500-700K MainManifest
Definition at line 63 of file AampDefine.h.
#define DEFAULT_ABR_CACHE_LIFE 5000 |
Default ABR cache life in milli secs
Definition at line 65 of file AampDefine.h.
#define DEFAULT_ABR_OUTLIER 5000000 |
ABR outlier: 5 MB
Definition at line 66 of file AampDefine.h.
#define DEFAULT_ABR_SKIP_DURATION 6 |
Initial skip duration of ABR - 6 sec
Definition at line 67 of file AampDefine.h.
#define DEFAULT_ABR_NW_CONSISTENCY_CNT 2 |
ABR network consistency count
Definition at line 68 of file AampDefine.h.
#define DEFAULT_ABR_CACHE_LENGTH 3 |
Default ABR cache length
Definition at line 71 of file AampDefine.h.
#define DEFAULT_REPORT_PROGRESS_INTERVAL 1 |
Progress event reporting interval: 1sec
Definition at line 72 of file AampDefine.h.
#define DEFAULT_LICENSE_REQ_RETRY_WAIT_TIME 500 |
Wait time in milliseconds before retrying for DRM license
Definition at line 73 of file AampDefine.h.
#define MIN_LICENSE_KEY_ACQUIRE_WAIT_TIME 500 |
minimum wait time in milliseconds for DRM license to ACQUIRE
Definition at line 74 of file AampDefine.h.
#define DEFAULT_LICENSE_KEY_ACQUIRE_WAIT_TIME 5000 |
Wait time in milliseconds for DRM license to ACQUIRE
Definition at line 75 of file AampDefine.h.
#define MAX_LICENSE_ACQ_WAIT_TIME 12000 |
12 secs Increase from 10 to 12 sec(DELIA-33528)
Definition at line 76 of file AampDefine.h.
#define DEFAULT_INIT_BITRATE 2500000 |
Initial bitrate: 2.5 mb - for non-4k playback
Definition at line 77 of file AampDefine.h.
#define DEFAULT_BITRATE_OFFSET_FOR_DOWNLOAD 500000 |
Offset in bandwidth window for checking buffer download expiry
Definition at line 78 of file AampDefine.h.
#define DEFAULT_INIT_BITRATE_4K 13000000 |
Initial bitrate for 4K playback: 13mb ie, 3/4 profile
Definition at line 79 of file AampDefine.h.
#define AAMP_LIVE_OFFSET 15 |
Live offset in seconds
Definition at line 80 of file AampDefine.h.
#define AAMP_DEFAULT_PLAYBACK_OFFSET -99999 |
default 'unknown' offset value
Definition at line 81 of file AampDefine.h.
#define AAMP_CDVR_LIVE_OFFSET 30 |
Live offset in seconds for CDVR hot recording
Definition at line 82 of file AampDefine.h.
#define DEFAULT_CACHED_FRAGMENTS_PER_TRACK 4 |
Default cached fragements per track
Definition at line 87 of file AampDefine.h.
#define TRICKPLAY_VOD_PLAYBACK_FPS 4 |
Frames rate for trickplay from CDN server
Definition at line 89 of file AampDefine.h.
#define TRICKPLAY_LINEAR_PLAYBACK_FPS 8 |
Frames rate for trickplay from TSB
Definition at line 90 of file AampDefine.h.
#define DEFAULT_DOWNLOAD_RETRY_COUNT (1) |
max download failure retry attempt count
Definition at line 91 of file AampDefine.h.
#define DEFAULT_DISCONTINUITY_TIMEOUT 3000 |
Default discontinuity timeout after cache is empty in MS
Definition at line 92 of file AampDefine.h.
#define CURL_FRAGMENT_DL_TIMEOUT 10L |
Curl timeout for fragment download
Definition at line 93 of file AampDefine.h.
#define DEFAULT_STALL_ERROR_CODE (7600) |
Default stall error code: 7600
Definition at line 94 of file AampDefine.h.
#define DEFAULT_STALL_DETECTION_TIMEOUT (10000) |
Stall detection timeout: 10000 millisec
Definition at line 95 of file AampDefine.h.
#define DEFAULT_MINIMUM_INIT_CACHE_SECONDS 0 |
Default initial cache size of playback
Definition at line 96 of file AampDefine.h.
#define DEFAULT_MAXIMUM_PLAYBACK_BUFFER_SECONDS 30 |
Default maximum playback buffer size
Definition at line 97 of file AampDefine.h.
#define DEFAULT_TIMEOUT_FOR_SOURCE_SETUP (1000) |
Default timeout value in milliseconds
Definition at line 98 of file AampDefine.h.
#define MAX_SEG_DRM_DECRYPT_FAIL_COUNT 10 |
Max segment decryption failures to identify a playback failure.
Definition at line 99 of file AampDefine.h.
#define MAX_SEG_INJECT_FAIL_COUNT 10 |
Max segment injection failure to identify a playback failure.
Definition at line 100 of file AampDefine.h.
#define AAMP_USERAGENT_BASE_STRING "Mozilla/5.0 (Linux; x86_64 GNU/Linux) AppleWebKit/601.1 (KHTML, like Gecko) Version/8.0 Safari/601.1 WPE" |
Base User agent string,it will be appneded with AAMP_USERAGENT_SUFFIX
Definition at line 101 of file AampDefine.h.
#define AAMP_USERAGENT_SUFFIX "AAMP/"+AAMP_VERSION |
Version string of AAMP Player
Definition at line 102 of file AampDefine.h.
#define DEFAULT_AAMP_ABR_THRESHOLD_SIZE (6000) |
aamp abr threshold size
Definition at line 103 of file AampDefine.h.
#define AAMP_LOW_BUFFER_BEFORE_RAMPDOWN 10 |
10sec buffer before rampdown
Definition at line 105 of file AampDefine.h.
#define AAMP_HIGH_BUFFER_BEFORE_RAMPUP 15 |
15sec buffer before rampup
Definition at line 106 of file AampDefine.h.
#define MAX_AD_SEG_DOWNLOAD_FAIL_COUNT 2 |
Max Ad segment download failures to identify as the ad playback failure.
Definition at line 108 of file AampDefine.h.
#define FRAGMENT_DOWNLOAD_WARNING_THRESHOLD 2000 |
MAX Fragment download threshold time in Msec
Definition at line 109 of file AampDefine.h.
#define BITRATE_ALLOWED_VARIATION_BAND 500000 |
NW BW change beyond this will be ignored
Definition at line 110 of file AampDefine.h.
#define MAX_SEG_DOWNLOAD_FAIL_COUNT 10 |
Max segment download failures to identify a playback failure.
Definition at line 112 of file AampDefine.h.
#define MAX_WAIT_TIMEOUT_MS 200 |
Max Timeout furation for wait until cache is available to inject next
Definition at line 116 of file AampDefine.h.
#define MAX_INIT_FRAGMENT_CACHE_PER_TRACK 5 |
Max No Of cached Init fragements per track
Definition at line 117 of file AampDefine.h.
#define MIN_SEG_DURTION_THREASHOLD (0.25) |
Min Segment Duration threshold for pushing to pipeline at period End
Definition at line 118 of file AampDefine.h.
#define MAX_CURL_SOCK_STORE 10 |
Maximum no of host to be maintained in curl store
Definition at line 119 of file AampDefine.h.
#define DEFAULT_LATENCY_MONITOR_DELAY 9 |
Latency Monitor Delay
Definition at line 138 of file AampDefine.h.
#define DEFAULT_LATENCY_MONITOR_INTERVAL 6 |
Latency monitor Interval
Definition at line 139 of file AampDefine.h.
#define DEFAULT_MIN_LOW_LATENCY 3 |
min Default Latency
Definition at line 140 of file AampDefine.h.
#define DEFAULT_MAX_LOW_LATENCY 9 |
max Default Latency
Definition at line 141 of file AampDefine.h.
#define DEFAULT_TARGET_LOW_LATENCY 6 |
Target Default Latency
Definition at line 142 of file AampDefine.h.
#define DEFAULT_MIN_RATE_CORRECTION_SPEED 0.90f |
min Rate correction speed
Definition at line 143 of file AampDefine.h.
#define DEFAULT_MAX_RATE_CORRECTION_SPEED 1.10f |
max Rate correction speed
Definition at line 144 of file AampDefine.h.
#define AAMP_NORMAL_LL_PLAY_RATE 1.01f |
LL Normal play rate adjusted to 1.01
Definition at line 145 of file AampDefine.h.
#define DEFAULT_CACHED_FRAGMENT_CHUNKS_PER_TRACK 20 |
Default cached fragement chunks per track
Definition at line 146 of file AampDefine.h.
#define DEFAULT_ABR_CHUNK_CACHE_LENGTH 10 |
Default ABR chunk cache length
Definition at line 147 of file AampDefine.h.
#define DEFAULT_AAMP_ABR_CHUNK_THRESHOLD_SIZE (DEFAULT_AAMP_ABR_THRESHOLD_SIZE) |
aamp abr Chunk threshold size
Definition at line 148 of file AampDefine.h.
#define DEFAULT_ABR_CHUNK_SPEEDCNT 10 |
Chunk Speed Count Store Size
Definition at line 149 of file AampDefine.h.
#define DEFAULT_ABR_ELAPSED_MILLIS_FOR_ESTIMATE 100 |
Duration(ms) to check Chunk Speed
Definition at line 150 of file AampDefine.h.
#define DEFAULT_ABR_BYTES_TRANSFERRED_FOR_ESTIMATE (512 * 1024) |
512K
Definition at line 151 of file AampDefine.h.
#define MAX_MDAT_NOT_FOUND_COUNT 500 |
Max MDAT not found count
Definition at line 152 of file AampDefine.h.
#define DEFAULT_CONTENT_PROTECTION_DATA_UPDATE_TIMEOUT 5000 |
Default Timeout for Content Protection Data Update on Dynamic Key Rotation
Definition at line 153 of file AampDefine.h.
#define FOG_MAX_CONCURRENT_DOWNLOADS 4 |
Max concurrent downloads in Fog
Definition at line 156 of file AampDefine.h.
#define AAMP_MAX_EVENT_PRIORITY (-70) |
Maximum allowed priority value for events
Definition at line 158 of file AampDefine.h.
#define SECMANGER_WM_FAILURE 300 |
If secmanager couldn't initialize watermark service
Definition at line 165 of file AampDefine.h.
#define SECMANGER_DRM_GEN_FAILURE 1 |
General or internal failure
Definition at line 168 of file AampDefine.h.
enum TunedEventConfig |
Enumeration for TUNED Event Configuration.
Definition at line 184 of file AampDefine.h.
enum PausedBehavior |
Enumeration for Paused state behavior.
Definition at line 195 of file AampDefine.h.
enum ConfigPriority |
AAMP Config Ownership values.
Enumerator | |
---|---|
AAMP_DEFAULT_SETTING | Lowest priority |
AAMP_CUSTOM_DEV_CFG_SETTING | Highest priority |
Definition at line 208 of file AampDefine.h.
enum LatencyStatus |
Latency status.
Definition at line 223 of file AampDefine.h.