Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 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 | package org.webrtc; |
| 12 | |
| 13 | /** |
| 14 | * Wraps a native webrtc::VideoEncoder. |
| 15 | */ |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 16 | public abstract class WrappedNativeVideoEncoder implements VideoEncoder { |
Rasmus Brandt | 42a2fc9 | 2018-07-09 13:38:01 +0200 | [diff] [blame] | 17 | @Override public abstract long createNativeVideoEncoder(); |
| 18 | @Override public abstract boolean isHardwareEncoder(); |
Sami Kalliomäki | 6196feb | 2017-11-24 11:00:04 +0100 | [diff] [blame] | 19 | |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 20 | @Override |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 21 | public final VideoCodecStatus initEncode(Settings settings, Callback encodeCallback) { |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 22 | throw new UnsupportedOperationException("Not implemented."); |
| 23 | } |
| 24 | |
| 25 | @Override |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 26 | public final VideoCodecStatus release() { |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 27 | throw new UnsupportedOperationException("Not implemented."); |
| 28 | } |
| 29 | |
| 30 | @Override |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 31 | public final VideoCodecStatus encode(VideoFrame frame, EncodeInfo info) { |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 32 | throw new UnsupportedOperationException("Not implemented."); |
| 33 | } |
| 34 | |
| 35 | @Override |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 36 | public final VideoCodecStatus setRateAllocation(BitrateAllocation allocation, int framerate) { |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 37 | throw new UnsupportedOperationException("Not implemented."); |
| 38 | } |
| 39 | |
| 40 | @Override |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 41 | public final ScalingSettings getScalingSettings() { |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 42 | throw new UnsupportedOperationException("Not implemented."); |
| 43 | } |
| 44 | |
| 45 | @Override |
Xavier Lepaul | 6e9d0d3 | 2019-11-21 16:10:22 +0100 | [diff] [blame^] | 46 | public final String getImplementationName() { |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 47 | throw new UnsupportedOperationException("Not implemented."); |
| 48 | } |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 49 | } |