| 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 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // pre-processor perfoms spatial/temporal decimation and content analysis on | 72 // pre-processor perfoms spatial/temporal decimation and content analysis on |
| 73 // the frames prior to encoding. | 73 // the frames prior to encoding. |
| 74 | 74 |
| 75 // Enable/disable temporal decimation | 75 // Enable/disable temporal decimation |
| 76 virtual void EnableTemporalDecimation(bool enable) = 0; | 76 virtual void EnableTemporalDecimation(bool enable) = 0; |
| 77 | 77 |
| 78 virtual int32_t SetTargetResolution(uint32_t width, | 78 virtual int32_t SetTargetResolution(uint32_t width, |
| 79 uint32_t height, | 79 uint32_t height, |
| 80 uint32_t frame_rate) = 0; | 80 uint32_t frame_rate) = 0; |
| 81 | 81 |
| 82 virtual void SetTargetFramerate(int frame_rate) = 0; | |
| 83 | |
| 84 virtual uint32_t GetDecimatedFrameRate() = 0; | 82 virtual uint32_t GetDecimatedFrameRate() = 0; |
| 85 virtual uint32_t GetDecimatedWidth() const = 0; | 83 virtual uint32_t GetDecimatedWidth() const = 0; |
| 86 virtual uint32_t GetDecimatedHeight() const = 0; | 84 virtual uint32_t GetDecimatedHeight() const = 0; |
| 87 | 85 |
| 88 // Set the spatial resampling settings of the VPM according to | 86 // Set the spatial resampling settings of the VPM according to |
| 89 // VideoFrameResampling. | 87 // VideoFrameResampling. |
| 90 virtual void SetInputFrameResampleMode( | 88 virtual void SetInputFrameResampleMode( |
| 91 VideoFrameResampling resampling_mode) = 0; | 89 VideoFrameResampling resampling_mode) = 0; |
| 92 | 90 |
| 93 virtual void EnableDenosing(bool enable) = 0; | 91 virtual void EnableDenosing(bool enable) = 0; |
| 94 virtual const VideoFrame* PreprocessFrame(const VideoFrame& frame) = 0; | 92 virtual const VideoFrame* PreprocessFrame(const VideoFrame& frame) = 0; |
| 95 | 93 |
| 96 virtual VideoContentMetrics* GetContentMetrics() const = 0; | 94 virtual VideoContentMetrics* GetContentMetrics() const = 0; |
| 97 virtual void EnableContentAnalysis(bool enable) = 0; | 95 virtual void EnableContentAnalysis(bool enable) = 0; |
| 98 }; | 96 }; |
| 99 | 97 |
| 100 } // namespace webrtc | 98 } // namespace webrtc |
| 101 | 99 |
| 102 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_H_ | 100 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_H_ |
| OLD | NEW |