OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 /* | 11 /* |
12 * video_processing_defines.h | 12 * video_processing_defines.h |
13 * This header file includes the definitions used in the video processor module | 13 * This header file includes the definitions used in the video processor module |
14 */ | 14 */ |
15 | 15 |
16 #ifndef WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_DEFINES_H | 16 #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_DEFINES_H_ |
17 #define WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_DEFINES_H | 17 #define WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_DEFINES_H_ |
18 | 18 |
19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // Error codes | 23 // Error codes |
24 #define VPM_OK 0 | 24 #define VPM_OK 0 |
25 #define VPM_GENERAL_ERROR -1 | 25 #define VPM_GENERAL_ERROR -1 |
26 #define VPM_MEMORY -2 | 26 #define VPM_MEMORY -2 |
27 #define VPM_PARAMETER_ERROR -3 | 27 #define VPM_PARAMETER_ERROR -3 |
28 #define VPM_SCALE_ERROR -4 | 28 #define VPM_SCALE_ERROR -4 |
29 #define VPM_UNINITIALIZED -5 | 29 #define VPM_UNINITIALIZED -5 |
30 #define VPM_UNIMPLEMENTED -6 | 30 #define VPM_UNIMPLEMENTED -6 |
31 | 31 |
32 enum VideoFrameResampling { | 32 enum VideoFrameResampling { |
33 kNoRescaling, // Disables rescaling. | 33 kNoRescaling, // Disables rescaling. |
34 kFastRescaling, // Point filter. | 34 kFastRescaling, // Point filter. |
35 kBiLinear, // Bi-linear interpolation. | 35 kBiLinear, // Bi-linear interpolation. |
36 kBox, // Box inteprolation. | 36 kBox, // Box inteprolation. |
37 }; | 37 }; |
38 | 38 |
39 } // namespace webrtc | 39 } // namespace webrtc |
40 | 40 |
41 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_DEFINES_H | 41 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_DEFINES_H_ |
OLD | NEW |