blob: 7b7986de73eac5b695599778b2475981e286d028 [file] [log] [blame]
/**
* Copyright (c) 2019, 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.
*/
package android.media;
import android.media.TranscodingJobPriority;
import android.media.TranscodingType;
/**
* TranscodingRequest contains the desired configuration for the transcoding.
*
* {@hide}
*/
//TODO(hkuang): Implement the parcelable.
parcelable TranscodingRequestParcel {
/**
* Name of file to be transcoded.
*/
@utf8InCpp String fileName;
/**
* Type of the transcoding.
*/
TranscodingType transcodingType;
/**
* Input source file descriptor.
*/
ParcelFileDescriptor inFd;
/**
* Output transcoded file descriptor.
*/
ParcelFileDescriptor outFd;
/**
* Priority of this transcoding. Service will schedule the transcoding based on the priority.
*/
TranscodingJobPriority priority;
/**
* Whether to receive update on progress and change of awaitNumJobs.
*/
boolean requestUpdate;
}