-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathHeader.h
More file actions
46 lines (41 loc) · 1.62 KB
/
Header.h
File metadata and controls
46 lines (41 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef YTUHD_H_
#define YTUHD_H_
#import <YouTubeHeader/HAMDefaultABRPolicy.h>
#import <YouTubeHeader/HAMFormatDescription.h>
#import <YouTubeHeader/HAMInputSampleBuffer.h>
#import <YouTubeHeader/HAMVideoDecoderDelegate.h>
#import <YouTubeHeader/HAMVPXVideoDecoder.h>
// #import <YouTubeHeader/HAMDefaultABRPolicyConfig.h>
#import <YouTubeHeader/MLABRPolicyNew.h>
#import <YouTubeHeader/MLABRPolicyOld.h>
#import <YouTubeHeader/MLHAMPlayerItem.h>
#import <YouTubeHeader/MLHAMQueuePlayer.h>
#import <YouTubeHeader/MLHLSMasterPlaylist.h>
#import <YouTubeHeader/MLHLSStreamSelector.h>
#import <YouTubeHeader/MLVideo.h>
#import <YouTubeHeader/MLVideoDecoderFactory.h>
#import <YouTubeHeader/YTIHamplayerConfig.h>
#import <YouTubeHeader/YTIHamplayerSoftwareStreamFilter.h>
#import <YouTubeHeader/YTLocalPlaybackController.h>
#import <YouTubeHeader/YTSingleVideoController.h>
#import <YouTubeHeader/YTPlayerTapToRetryResponderEvent.h>
#import <objc/runtime.h>
#define IOS_BUILD "19H411"
#define MAX_FPS 60
#define MAX_HEIGHT 2160 // 4k
#define MAX_PIXELS 8294400 // 3840 x 2160 (4k)
#define UseVP9Key @"EnableVP9"
#define AllVP9Key @"AllVP9"
#define UseAV1Key @"EnableAV1"
#define ApplyGrainKey @"Dav1dApplyGrain"
#define DisableServerABRKey @"DisableServerABR"
#define DecodeThreadsKey @"VP9DecodeThreads"
#define SkipLoopFilterKey @"VP9SkipLoopFilter"
#define LoopFilterOptimizationKey @"VP9LoopFilterOptimization"
#define RowThreadingKey @"VP9RowThreading"
// Config passed to YTUHDDav1dVideoDecoder at init.
typedef struct {
int threads; // decode threads (0 = auto)
BOOL applyGrain; // apply AV1 film grain
} HAMDav1dDecoderConfig;
#endif