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