/* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.media.editing; enum FinalState { FINAL_STATE_UNSPECIFIED = 0; FINAL_STATE_SUCCEEDED = 1; FINAL_STATE_CANCELED = 2; FINAL_STATE_ERROR = 3; } enum ErrorCode { ERROR_CODE_UNSPECIFIED = 0; // Implies no error. ERROR_CODE_NONE = 1; ERROR_CODE_FAILED_RUNTIME_CHECK = 2; ERROR_CODE_IO_UNSPECIFIED = 3; ERROR_CODE_IO_NETWORK_CONNECTION_FAILED = 4; ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT = 5; ERROR_CODE_IO_BAD_HTTP_STATUS = 6; ERROR_CODE_IO_FILE_NOT_FOUND = 7; ERROR_CODE_IO_NO_PERMISSION = 8; ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED = 9; ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE = 10; ERROR_CODE_DECODER_INIT_FAILED = 11; ERROR_CODE_DECODING_FAILED = 12; ERROR_CODE_DECODING_FORMAT_UNSUPPORTED = 13; ERROR_CODE_ENCODER_INIT_FAILED = 14; ERROR_CODE_ENCODING_FAILED = 15; ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED = 16; ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED = 17; ERROR_CODE_AUDIO_PROCESSING_FAILED = 18; ERROR_CODE_MUXING_FAILED = 19; } enum SourceType { SOURCE_TYPE_UNSPECIFIED = 0; SOURCE_TYPE_GALLERY = 1; SOURCE_TYPE_CAMERA = 2; SOURCE_TYPE_EDITING_SESSION = 3; SOURCE_TYPE_LOCAL_FILE = 4; SOURCE_TYPE_REMOTE_FILE = 5; SOURCE_TYPE_REMOTE_LIVE_STREAM = 6; SOURCE_TYPE_GENERATED = 7; } enum ResolutionAspectRatio { RESOLUTION_ASPECT_RATIO_UNSPECIFIED = 0; RESOLUTION_ASPECT_RATIO_SQUARE = 1; RESOLUTION_ASPECT_RATIO_LANDSCAPE = 2; RESOLUTION_ASPECT_RATIO_PORTRAIT = 3; }