Bjorn Mellem | 5c4eebb | 2017-06-12 09:21:03 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 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 | * Status codes reported by video encoding/decoding components. This should be kept in sync with |
| 15 | * video_error_codes.h. |
| 16 | */ |
| 17 | public enum VideoCodecStatus { |
| 18 | REQUEST_SLI(2), |
| 19 | NO_OUTPUT(1), |
| 20 | OK(0), |
| 21 | ERROR(-1), |
| 22 | LEVEL_EXCEEDED(-2), |
| 23 | MEMORY(-3), |
| 24 | ERR_PARAMETER(-4), |
| 25 | ERR_SIZE(-5), |
| 26 | TIMEOUT(-6), |
| 27 | UNINITIALIZED(-7), |
| 28 | ERR_REQUEST_SLI(-12), |
| 29 | FALLBACK_SOFTWARE(-13), |
| 30 | TARGET_BITRATE_OVERSHOOT(-14); |
| 31 | |
| 32 | private final int number; |
| 33 | |
| 34 | private VideoCodecStatus(int number) { |
| 35 | this.number = number; |
| 36 | } |
| 37 | |
Magnus Jedvert | 0371e10 | 2017-11-07 14:23:44 +0100 | [diff] [blame] | 38 | @CalledByNative |
Bjorn Mellem | 5c4eebb | 2017-06-12 09:21:03 -0700 | [diff] [blame] | 39 | public int getNumber() { |
| 40 | return number; |
| 41 | } |
| 42 | } |