-
Notifications
You must be signed in to change notification settings - Fork 49
/
AVVideoSettings.h
282 lines (226 loc) · 21.5 KB
/
AVVideoSettings.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
/*
File: AVVideoSettings.h
Framework: AVFoundation
Copyright 2010-2017 Apple Inc. All rights reserved.
*/
#import <AVFoundation/AVBase.h>
#import <Foundation/Foundation.h>
/*!
@header AVVideoSettings
@abstract
NSDictionary keys for configuring output video format
@discussion
A video settings dictionary may take one of two forms:
1. For compressed video output, use only the keys in this header, AVVideoSettings.h.
2. For uncompressed video output, start with kCVPixelBuffer* keys in <CoreVideo/CVPixelBuffer.h>.
In addition to the keys in CVPixelBuffer.h, uncompressed video settings dictionaries may also contain the following keys:
AVVideoPixelAspectRatioKey
AVVideoCleanApertureKey
AVVideoScalingModeKey
AVVideoColorPropertiesKey
AVVideoAllowWideColorKey
It is an error to add any other AVVideoSettings.h keys to an uncompressed video settings dictionary.
*/
AVF_EXPORT NSString *const AVVideoCodecKey /* NSString (CMVideoCodecType) */ NS_AVAILABLE(10_7, 4_0);
/*!
@typedef AVVideoCodecType
@abstract The type of the strings used to specify a video codec type (for instance, as values for the AVVideoCodecKey key in a video settings dictionary).
*/
typedef NSString * AVVideoCodecType NS_STRING_ENUM;
AVF_EXPORT AVVideoCodecType const AVVideoCodecTypeHEVC /* @"hvc1" */ API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT AVVideoCodecType const AVVideoCodecTypeH264 /* @"avc1" */ API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT AVVideoCodecType const AVVideoCodecTypeJPEG /* @"jpeg" */ API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT AVVideoCodecType const AVVideoCodecTypeAppleProRes4444 /* @"ap4h" */ API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT AVVideoCodecType const AVVideoCodecTypeAppleProRes422 /* @"apcn" */ API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT NSString *const AVVideoCodecHEVC /* @"hvc1" */ API_DEPRECATED_WITH_REPLACEMENT("AVVideoCodecTypeHEVC", macos(10.13, 10.13), ios(11.0, 11.0), tvos(11.0, 11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT NSString *const AVVideoCodecH264 /* @"avc1" */ API_DEPRECATED_WITH_REPLACEMENT("AVVideoCodecTypeH264", macos(10.7, 10.13), ios(4.0, 11.0), tvos(9.0, 11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT NSString *const AVVideoCodecJPEG /* @"jpeg" */ API_DEPRECATED_WITH_REPLACEMENT("AVVideoCodecTypeJPEG", macos(10.7, 10.13), ios(4.0, 11.0), tvos(9.0, 11.0)) __WATCHOS_PROHIBITED;
AVF_EXPORT NSString *const AVVideoCodecAppleProRes4444 /* @"ap4h" */ API_DEPRECATED_WITH_REPLACEMENT("AVVideoCodecTypeAppleProRes4444", macos(10.7, 10.13)) API_UNAVAILABLE(ios, tvos, watchos);
AVF_EXPORT NSString *const AVVideoCodecAppleProRes422 /* @"apcn" */ API_DEPRECATED_WITH_REPLACEMENT("AVVideoCodecTypeAppleProRes422", macos(10.7, 10.13)) API_UNAVAILABLE(ios, tvos, watchos);
// For best results, always use even number values for AVVideoWidthKey and AVVideoHeightKey when encoding to AVVideoCodecTypeH264 or any other format that uses 4:2:0 downsampling
AVF_EXPORT NSString *const AVVideoWidthKey /* NSNumber (encoded pixels) */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoHeightKey /* NSNumber (encoded pixels) */ NS_AVAILABLE(10_7, 4_0);
/*!
@constant AVVideoPixelAspectRatioKey
@abstract The aspect ratio of the pixels in the video frame
@discussion
The value for this key is an NSDictionary containing AVVideoPixelAspectRatio*Key keys. If no value is specified for this key, the default value for the codec is used. Usually this is 1:1, meaning square pixels.
Note that prior to OS X 10.9 and iOS 7.0, this key could only be specified as part of the dictionary given for AVVideoCompressionPropertiesKey. As of OS X 10.9 and iOS 7.0, the top level of an AVVideoSettings dictionary is the preferred place to specify this key.
*/
AVF_EXPORT NSString *const AVVideoPixelAspectRatioKey NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoPixelAspectRatioHorizontalSpacingKey /* NSNumber */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoPixelAspectRatioVerticalSpacingKey /* NSNumber */ NS_AVAILABLE(10_7, 4_0);
/*!
@constant AVVideoCleanApertureKey
@abstract Defines the region within the video dimensions that will be displayed during playback
@discussion
The value for this key is an NSDictionary containing AVVideoCleanAperture*Key keys. AVVideoCleanApertureWidthKey and AVVideoCleanApertureHeightKey define a clean rectangle which is centered on the video frame. To offset this rectangle from center, use AVVideoCleanApertureHorizontalOffsetKey and AVVideoCleanApertureVerticalOffsetKey. A positive value for AVVideoCleanApertureHorizontalOffsetKey moves the clean aperture region to the right, and a positive value for AVVideoCleanApertureVerticalOffsetKey moves the clean aperture region down.
If no clean aperture region is specified, the entire frame will be displayed during playback.
Note that prior to OS X 10.9 and iOS 7.0, this key could only be specified as part of the dictionary given for AVVideoCompressionPropertiesKey. As of OS X 10.9 and iOS 7.0, the top level of an AVVideoSettings dictionary is the preferred place to specify this key.
*/
AVF_EXPORT NSString *const AVVideoCleanApertureKey NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoCleanApertureWidthKey /* NSNumber */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoCleanApertureHeightKey /* NSNumber */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoCleanApertureHorizontalOffsetKey /* NSNumber */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoCleanApertureVerticalOffsetKey /* NSNumber */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoScalingModeKey /* NSString */ NS_AVAILABLE(10_7, 5_0);
/* AVVideoScalingModeFit - Crop to remove edge processing region; preserve aspect ratio of cropped source by reducing specified width or height if necessary. Will not scale a small source up to larger dimensions. */
AVF_EXPORT NSString *const AVVideoScalingModeFit NS_AVAILABLE(10_7, 5_0);
/* AVVideoScalingModeResize - Crop to remove edge processing region; scale remainder to destination area. Does not preserve aspect ratio. */
AVF_EXPORT NSString *const AVVideoScalingModeResize NS_AVAILABLE(10_7, 5_0);
/* AVVideoScalingModeResizeAspect - Preserve aspect ratio of the source, and fill remaining areas with black to fit destination dimensions. */
AVF_EXPORT NSString *const AVVideoScalingModeResizeAspect NS_AVAILABLE(10_7, 5_0);
/* AVVideoScalingModeResizeAspectFill - Preserve aspect ratio of the source, and crop picture to fit destination dimensions. */
AVF_EXPORT NSString *const AVVideoScalingModeResizeAspectFill NS_AVAILABLE(10_7, 5_0);
/*
Clients who specify AVVideoColorPropertiesKey must specify a color primary, transfer function, and Y'CbCr matrix.
Most clients will want to specify HD, which consists of:
AVVideoColorPrimaries_ITU_R_709_2
AVVideoTransferFunction_ITU_R_709_2
AVVideoYCbCrMatrix_ITU_R_709_2
If you require SD colorimetry use:
AVVideoColorPrimaries_SMPTE_C
AVVideoTransferFunction_ITU_R_709_2
AVVideoYCbCrMatrix_ITU_R_601_4
If you require wide gamut HD colorimetry, you can use:
AVVideoColorPrimaries_P3_D65
AVVideoTransferFunction_ITU_R_709_2
AVVideoYCbCrMatrix_ITU_R_709_2
AVFoundation will color match if the source and destination color properties differ according to the following rules:
If you want to override the tagging of color properties in the video that you will be processing, set a value for AVVideoColorPropertiesKey:
If AVVideoColorPropertiesKey is set in the output settings and the source buffers are not tagged with color properties, then the output will be tagged according to the AVVideoColorPropertiesKey color properties.
If AVVideoColorPropertiesKey is set in the output settings and the source buffers are also tagged with color properties, then if necessary the source buffers will be color converted to match the color properties specified by AVVideoColorPropertiesKey, and the output will be tagged according to the AVVideoColorPropertiesKey color properties.
If you do not want to override the tagging of color properties in the video that you will be processing, do not set a value for AVVideoColorPropertiesKey:
If AVVideoColorPropertiesKey is not set in the output settings and the source buffers are tagged with color properties, then the output will be tagged according to the source buffer color properties.
If AVVideoColorPropertiesKey is not set in the output settings and the source buffers are not tagged with color properties, then the output will not be tagged with any color properties.
It is important that the source be tagged.
*/
AVF_EXPORT NSString *const AVVideoColorPropertiesKey /* NSDictionary, all 3 below keys required */ NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoColorPrimariesKey /* NSString */ NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoColorPrimaries_ITU_R_709_2 NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoColorPrimaries_EBU_3213 NS_AVAILABLE(10_7, NA);
AVF_EXPORT NSString *const AVVideoColorPrimaries_SMPTE_C NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoColorPrimaries_P3_D65 NS_AVAILABLE(10_12, 10_0);
AVF_EXPORT NSString *const AVVideoColorPrimaries_ITU_R_2020 NS_AVAILABLE(10_13, 11_0);
AVF_EXPORT NSString *const AVVideoTransferFunctionKey /* NSString */ NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoTransferFunction_ITU_R_709_2 NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoTransferFunction_SMPTE_240M_1995 NS_AVAILABLE(10_7, NA);
AVF_EXPORT NSString *const AVVideoTransferFunction_SMPTE_ST_2084_PQ NS_AVAILABLE(10_13, 11_0);
AVF_EXPORT NSString *const AVVideoTransferFunction_ITU_R_2100_HLG NS_AVAILABLE(10_13, 11_0);
AVF_EXPORT NSString *const AVVideoYCbCrMatrixKey /* NSString */ NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoYCbCrMatrix_ITU_R_709_2 NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoYCbCrMatrix_ITU_R_601_4 NS_AVAILABLE(10_7, 10_0);
AVF_EXPORT NSString *const AVVideoYCbCrMatrix_SMPTE_240M_1995 NS_AVAILABLE(10_7, NA);
AVF_EXPORT NSString *const AVVideoYCbCrMatrix_ITU_R_2020 NS_AVAILABLE(10_13, 11_0);
/*!
@constant AVVideoAllowWideColorKey
@abstract Indicates whether the client can process wide color
@discussion
Clients who wish to process wide color content should set the value of this key to @YES, or specify AVVideoColorPropertiesKey.
The default value, @NO, permits implicit color conversions to occur to a non-wide gamut color space.
*/
AVF_EXPORT NSString *const AVVideoAllowWideColorKey /* NSNumber(BOOL) */ NS_AVAILABLE(10_12, 10_0);
/*!
@constant AVVideoCompressionPropertiesKey
@abstract
The value for this key is an instance of NSDictionary, containing properties to be passed down to the video encoder.
@discussion
Package the below keys in an instance of NSDictionary and use it as the value for AVVideoCompressionPropertiesKey in the top-level AVVideoSettings dictionary. In addition to the keys listed below, you can also include keys from VideoToolbox/VTCompressionProperties.h.
Most keys can only be used for certain encoders. Look at individual keys for details.
*/
AVF_EXPORT NSString *const AVVideoCompressionPropertiesKey /* NSDictionary */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoAverageBitRateKey /* NSNumber (bits per second, H.264 only) */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoQualityKey /* NSNumber (0.0-1.0, JPEG and HEIC only. With HEIC, 1.0 indicates lossless compression) */ NS_AVAILABLE(10_7, 5_0);
AVF_EXPORT NSString *const AVVideoMaxKeyFrameIntervalKey /* NSNumber (frames, 1 means key frames only, H.264 only) */ NS_AVAILABLE(10_7, 4_0);
AVF_EXPORT NSString *const AVVideoMaxKeyFrameIntervalDurationKey /* NSNumber (seconds, 0.0 means no limit, H.264 only) */ NS_AVAILABLE(10_9, 7_0);
/*!
@constant AVVideoAllowFrameReorderingKey
@abstract
Enables or disables frame reordering.
@discussion
In order to achieve the best compression while maintaining image quality, some video encoders can reorder frames. This means that the order in which the frames will be emitted and stored (the decode order) will be different from the order in which they are presented to the video encoder (the display order).
Encoding using frame reordering requires more system resources than encoding without frame reordering, so encoding performance should be taken into account when deciding whether to enable frame reordering. This is especially important when encoding video data from a real-time source, such as AVCaptureVideoDataOutput. In this situation, using a value of @NO for AVVideoAllowFrameReorderingKey may yield the best results.
The default is @YES, which means that the encoder decides whether to enable frame reordering.
*/
AVF_EXPORT NSString *const AVVideoAllowFrameReorderingKey /* NSNumber (BOOL) */ NS_AVAILABLE(10_10, 7_0);
AVF_EXPORT NSString *const AVVideoProfileLevelKey /* NSString, profile/level constants are specific to a particular encoder. See VideoToolbox/VTCompressionProperties.h for additional profiles/levels that can used as the value of this key. */ NS_AVAILABLE(10_8, 4_0);
/* HEVC profiles/levels are defined in VideoToolbox/VTCompressionProperties.h, e.g. kVTProfileLevel_HEVC_Main_AutoLevel. The constants defined there can be used as the value for the key AVVideoProfileLevelKey. */
AVF_EXPORT NSString *const AVVideoProfileLevelH264Baseline30 /* Baseline Profile Level 3.0 */ NS_AVAILABLE(10_8, 4_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264Baseline31 /* Baseline Profile Level 3.1 */ NS_AVAILABLE(10_8, 4_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264Baseline41 /* Baseline Profile Level 4.1 */ NS_AVAILABLE(10_8, 5_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264BaselineAutoLevel /* Baseline Profile Auto Level */ NS_AVAILABLE(10_9, 7_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264Main30 /* Main Profile Level 3.0 */ NS_AVAILABLE(10_8, 4_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264Main31 /* Main Profile Level 3.1 */ NS_AVAILABLE(10_8, 4_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264Main32 /* Main Profile Level 3.2 */ NS_AVAILABLE(10_8, 5_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264Main41 /* Main Profile Level 4.1 */ NS_AVAILABLE(10_8, 5_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264MainAutoLevel /* Main Profile Auto Level */ NS_AVAILABLE(10_9, 7_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264High40 /* High Profile Level 4.0 */ NS_AVAILABLE(10_9, 6_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264High41 /* High Profile Level 4.1 */ NS_AVAILABLE(10_9, 6_0);
AVF_EXPORT NSString *const AVVideoProfileLevelH264HighAutoLevel /* High Profile Auto Level */ NS_AVAILABLE(10_9, 7_0);
/*!
@constant AVVideoH264EntropyModeKey
@abstract
The entropy encoding mode for H.264 compression.
@discussion
If supported by an H.264 encoder, this property controls whether the encoder should use Context-based Adaptive Variable Length Coding (CAVLC) or Context-based Adaptive Binary Arithmetic Coding (CABAC). CABAC generally gives better compression at the expense of higher computational overhead. The default value is encoder-specific and may change depending on other encoder settings. Care should be taken when using this property -- changes may result in a configuration which is not compatible with a requested Profile and Level. Results in this case are undefined, and could include encode errors or a non-compliant output stream.
*/
AVF_EXPORT NSString *const AVVideoH264EntropyModeKey /* NSString, H.264 only, one of: */ NS_AVAILABLE(10_10, 7_0);
AVF_EXPORT NSString *const AVVideoH264EntropyModeCAVLC /* Context-based Adaptive Variable Length Coding */ NS_AVAILABLE(10_10, 7_0);
AVF_EXPORT NSString *const AVVideoH264EntropyModeCABAC /* Context-based Adaptive Binary Arithmetic Coding */ NS_AVAILABLE(10_10, 7_0);
/*!
@constant AVVideoExpectedSourceFrameRateKey
@abstract
Indicates the expected source frame rate, if known.
@discussion
The frame rate is measured in frames per second. This is not used to control the frame rate; it is provided as a hint to the video encoder so that it can set up internal configuration before compression begins. The actual frame rate will depend on frame durations and may vary. This should be set if an AutoLevel AVVideoProfileLevelKey is used, or if the source content has a high frame rate (higher than 30 fps). The encoder might have to drop frames to satisfy bit stream requirements if this key is not specified.
*/
AVF_EXPORT NSString *const AVVideoExpectedSourceFrameRateKey /* NSNumber (frames per second) */ NS_AVAILABLE(10_10, 7_0);
/*!
@constant AVVideoAverageNonDroppableFrameRateKey
@abstract
The desired average number of non-droppable frames to be encoded for each second of video.
@discussion
Some video encoders can produce a flexible mixture of non-droppable frames and droppable frames. The difference between these types is that it is necessary for a video decoder to decode a non-droppable frame in order to successfully decode subsequent frames, whereas droppable frames are optional and can be skipped without impact on decode of subsequent frames. Having a proportion of droppable frames in a sequence has advantages for temporal scalability: at playback time more or fewer frames may be decoded depending on the play rate. This property requests that the encoder emit an overall proportion of non-droppable and droppable frames so that there are the specified number of non-droppable frames per second.
For example, to specify that the encoder should include an average of 30 non-droppable frames for each second of video:
[myVideoSettings setObject:@30 forKey:AVVideoAverageNonDroppableFrameRateKey];
*/
AVF_EXPORT NSString *const AVVideoAverageNonDroppableFrameRateKey /* NSNumber (frames per second) */ NS_AVAILABLE(10_10, 7_0);
/*!
@constant AVVideoDecompressionPropertiesKey
@abstract
The value for this key is an instance of NSDictionary, containing properties to be passed down to the video decoder.
@discussion
Package the below keys in an instance of NSDictionary and use it as the value for AVVideoDecompressionPropertiesKey in the top-level AVVideoSettings dictionary. In addition to the keys listed below, you can also include keys from VideoToolbox/VTDecompressionProperties.h.
Most keys can only be used for certain decoders. Look at individual keys for details.
*/
AVF_EXPORT NSString *const AVVideoDecompressionPropertiesKey /* NSDictionary */ API_AVAILABLE(macos(10.13)) __IOS_PROHIBITED __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
/*!
@constant AVVideoEncoderSpecificationKey
@abstract
The video encoder specification includes options for choosing a specific video encoder.
@discussion
The value for this key is a dictionary containing kVTVideoEncoderSpecification_* keys specified in the VideoToolbox framework. This key should be specified at the top level of an AVVideoSettings dictionary.
*/
AVF_EXPORT NSString *const AVVideoEncoderSpecificationKey /* NSDictionary */ NS_AVAILABLE(10_10, NA);
typedef NSString * AVVideoApertureMode NS_STRING_ENUM;
/*!
@constant AVVideoApertureModeCleanAperture
@abstract Both pixel aspect ratio and clean aperture will be applied.
@discussion
An image's clean aperture is a region of video free from transition artifacts caused by the encoding of the signal.
*/
AVF_EXPORT AVVideoApertureMode const AVVideoApertureModeCleanAperture API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
/*!
@constant AVVideoApertureModeProductionAperture
@abstract Only pixel aspect ratio will be applied.
@discussion
The image is not cropped to the clean aperture region, but it is scaled according to the pixel aspect ratio. Use this option when you want to see all the pixels in your video, including the edges.
*/
AVF_EXPORT AVVideoApertureMode const AVVideoApertureModeProductionAperture API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;
/*!
@constant AVVideoApertureModeEncodedPixels
@abstract Neither pixel aspect ratio nor clean aperture will be applied.
@discussion
The image is not cropped to the clean aperture region and is not scaled according to the pixel aspect ratio. The encoded dimensions of the image description are displayed.
*/
AVF_EXPORT AVVideoApertureMode const AVVideoApertureModeEncodedPixels API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED;