1/* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package android.media.editing; 20 21enum FinalState { 22 FINAL_STATE_UNSPECIFIED = 0; 23 FINAL_STATE_SUCCEEDED = 1; 24 FINAL_STATE_CANCELED = 2; 25 FINAL_STATE_ERROR = 3; 26} 27 28enum ErrorCode { 29 ERROR_CODE_UNSPECIFIED = 0; // Implies no error. 30 ERROR_CODE_NONE = 1; 31 ERROR_CODE_FAILED_RUNTIME_CHECK = 2; 32 ERROR_CODE_IO_UNSPECIFIED = 3; 33 ERROR_CODE_IO_NETWORK_CONNECTION_FAILED = 4; 34 ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT = 5; 35 ERROR_CODE_IO_BAD_HTTP_STATUS = 6; 36 ERROR_CODE_IO_FILE_NOT_FOUND = 7; 37 ERROR_CODE_IO_NO_PERMISSION = 8; 38 ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED = 9; 39 ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE = 10; 40 ERROR_CODE_DECODER_INIT_FAILED = 11; 41 ERROR_CODE_DECODING_FAILED = 12; 42 ERROR_CODE_DECODING_FORMAT_UNSUPPORTED = 13; 43 ERROR_CODE_ENCODER_INIT_FAILED = 14; 44 ERROR_CODE_ENCODING_FAILED = 15; 45 ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED = 16; 46 ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED = 17; 47 ERROR_CODE_AUDIO_PROCESSING_FAILED = 18; 48 ERROR_CODE_MUXING_FAILED = 19; 49} 50 51enum SourceType { 52 SOURCE_TYPE_UNSPECIFIED = 0; 53 SOURCE_TYPE_GALLERY = 1; 54 SOURCE_TYPE_CAMERA = 2; 55 SOURCE_TYPE_EDITING_SESSION = 3; 56 SOURCE_TYPE_LOCAL_FILE = 4; 57 SOURCE_TYPE_REMOTE_FILE = 5; 58 SOURCE_TYPE_REMOTE_LIVE_STREAM = 6; 59 SOURCE_TYPE_GENERATED = 7; 60} 61 62enum ResolutionAspectRatio { 63 RESOLUTION_ASPECT_RATIO_UNSPECIFIED = 0; 64 RESOLUTION_ASPECT_RATIO_SQUARE = 1; 65 RESOLUTION_ASPECT_RATIO_LANDSCAPE = 2; 66 RESOLUTION_ASPECT_RATIO_PORTRAIT = 3; 67} 68