| 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 | TARGET_BITRATE_OVERSHOOT(5), |
| 19 | REQUEST_SLI(2), |
| 20 | NO_OUTPUT(1), |
| 21 | OK(0), |
| 22 | ERROR(-1), |
| 23 | LEVEL_EXCEEDED(-2), |
| 24 | MEMORY(-3), |
| 25 | ERR_PARAMETER(-4), |
| 26 | ERR_SIZE(-5), |
| 27 | TIMEOUT(-6), |
| 28 | UNINITIALIZED(-7), |
| 29 | ERR_REQUEST_SLI(-12), |
| 30 | FALLBACK_SOFTWARE(-13); |
| 31 |
| 32 | private final int number; |
| 33 |
| 34 | private VideoCodecStatus(int number) { |
| 35 | this.number = number; |
| 36 | } |
| 37 |
| 38 | @CalledByNative |
| 39 | public int getNumber() { |
| 40 | return number; |
| 41 | } |
| 42 | } |
| 43 |