|
8 | 8 | #include <stdlib.h> |
9 | 9 |
|
10 | 10 | static const int32_t XCWMaximumEncodedDimension = 1920; |
11 | | -static const int32_t XCWMaximumRealtimeHardwareEncodedDimension = 1440; |
| 11 | +static const int32_t XCWMaximumRealtimeHardwareEncodedDimension = 1280; |
12 | 12 | static const int32_t XCWMaximumSoftwareEncodedDimension = 1600; |
13 | 13 | static const int32_t XCWMaximumLowLatencySoftwareEncodedDimension = 1170; |
14 | 14 | static const int32_t XCWTargetRealTimeFrameRate = 60; |
15 | | -static const int32_t XCWTargetRealtimeHardwareFrameRate = 45; |
| 15 | +static const int32_t XCWTargetRealtimeHardwareFrameRate = 30; |
16 | 16 | static const int32_t XCWTargetSoftwareFrameRate = 60; |
17 | 17 | static const int32_t XCWTargetLowLatencySoftwareFrameRate = 15; |
18 | 18 | static const NSUInteger XCWMaximumInFlightFrames = 2; |
19 | 19 | static const int32_t XCWMinimumAverageBitRate = 18000000; |
20 | | -static const int32_t XCWMinimumRealtimeAverageBitRate = 5000000; |
| 20 | +static const int32_t XCWMinimumRealtimeAverageBitRate = 3000000; |
21 | 21 | static const int32_t XCWMinimumSoftwareAverageBitRate = 3000000; |
22 | 22 | static const int32_t XCWMinimumLowLatencySoftwareAverageBitRate = 2000000; |
23 | 23 | static const int64_t XCWBitsPerPixelBudget = 10; |
24 | | -static const int64_t XCWRealtimeBitsPerPixelBudget = 5; |
| 24 | +static const int64_t XCWRealtimeBitsPerPixelBudget = 4; |
25 | 25 | static const int64_t XCWSoftwareBitsPerPixelBudget = 6; |
26 | 26 | static const int64_t XCWLowLatencySoftwareBitsPerPixelBudget = 3; |
27 | 27 | static const uint64_t XCWSoftwareMinimumFrameIntervalUs = 16667; |
|
34 | 34 | static const uint64_t XCWLowLatencySoftwareMaximumFrameIntervalUs = 133333; |
35 | 35 | static const uint64_t XCWLowLatencySoftwareFrameIntervalStepUs = 11111; |
36 | 36 | static const NSUInteger XCWLowLatencySoftwareHealthyFrameWindow = 8; |
37 | | -static const uint64_t XCWRealtimeHardwareInitialFrameIntervalUs = 22222; |
38 | | -static const uint64_t XCWRealtimeHardwareMinimumFrameIntervalUs = 22222; |
39 | | -static const uint64_t XCWRealtimeHardwareMaximumFrameIntervalUs = 50000; |
| 37 | +static const uint64_t XCWRealtimeHardwareInitialFrameIntervalUs = 33333; |
| 38 | +static const uint64_t XCWRealtimeHardwareMinimumFrameIntervalUs = 33333; |
| 39 | +static const uint64_t XCWRealtimeHardwareMaximumFrameIntervalUs = 66667; |
40 | 40 | static const uint64_t XCWRealtimeHardwareFrameIntervalStepUs = 5556; |
41 | 41 | static const NSUInteger XCWRealtimeHardwareHealthyFrameWindow = 6; |
42 | 42 |
|
|
0 commit comments