blob: 3a7c81f0be35bba376450d7fd16ae586ae2c2eeb [file] [log] [blame]
Bjorn Mellem5c4eebb2017-06-12 09:21:03 -07001/*
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
11package 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 */
17public 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
38 public int getNumber() {
39 return number;
40 }
41}