forked from smartdevicelink/sdl_ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SDLVideoStreamingCapability.h
79 lines (57 loc) 路 2.48 KB
/
SDLVideoStreamingCapability.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// SDLVideoStreamingCapability.h
// SmartDeviceLink-iOS
//
// Created by Brett McIsaac on 7/31/17.
// Copyright 漏 2017 smartdevicelink. All rights reserved.
//
#import "SDLRPCMessage.h"
@class SDLImageResolution;
@class SDLVideoStreamingFormat;
NS_ASSUME_NONNULL_BEGIN
/**
Contains information about this system's video streaming capabilities
*/
@interface SDLVideoStreamingCapability : SDLRPCStruct
- (instancetype)initWithPreferredResolution:(nullable SDLImageResolution *)preferredResolution maxBitrate:(int32_t)maxBitrate supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats hapticDataSupported:(BOOL)hapticDataSupported __deprecated_msg("Use initWithPreferredResolution:maxBitrate:supportedFormats:hapticDataSupported:diagonalScreenSize:pixelPerInch:scale: instead");;
/**
Contains information about this system's video streaming capabilities
*/
- (instancetype)initWithPreferredResolution:(nullable SDLImageResolution *)preferredResolution maxBitrate:(int32_t)maxBitrate supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats hapticDataSupported:(BOOL)hapticDataSupported diagonalScreenSize:(float)diagonalScreenSize pixelPerInch:(float)pixelPerInch scale:(float)scale;
/**
The preferred resolution of a video stream for decoding and rendering on HMI
Optional
*/
@property (nullable, strong, nonatomic) SDLImageResolution *preferredResolution;
/**
The maximum bitrate of video stream that is supported, in kbps, optional
Optional, minvalue= 0, maxvalue= 2147483647
*/
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *maxBitrate;
/**
Detailed information on each format supported by this system, in its preferred order
Optional
*/
@property (nullable, strong, nonatomic) NSArray<SDLVideoStreamingFormat *> *supportedFormats;
/**
True if the system can utilize the haptic spatial data from the source being streamed.
Optional
*/
@property (nullable, strong, nonatomic) NSNumber<SDLBool> *hapticSpatialDataSupported;
/**
The diagonal screen size in inches.
Optional
*/
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *diagonalScreenSize;
/**
PPI is the diagonal resolution in pixels divided by the diagonal screen size in inches.
Optional
*/
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *pixelPerInch;
/**
The scaling factor the app should use to change the size of the projecting view.
Optional
*/
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *scale;
@end
NS_ASSUME_NONNULL_END