/*
* Copyright (C) 2011 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.videoeditor;
/**
* The VideoEditorProfile class is used to retrieve the
* predefined videoeditor profile settings for videoeditor applications.
* These settings are read-only.
*
*
The videoeditor profile specifies the following set of parameters:
*
* - max input video frame width
*
- max input video frame height
*
- max output video frame width
*
- max output video frame height
*
* {@hide}
*/
public class VideoEditorProfile
{
/**
* The max input video frame width
*/
public int maxInputVideoFrameWidth;
/**
* The max input video frame height
*/
public int maxInputVideoFrameHeight;
/**
* The max ouput video frame width
*/
public int maxOutputVideoFrameWidth;
/**
* The max ouput video frame height
*/
public int maxOutputVideoFrameHeight;
/**
* Returns the videoeditor profile
*/
public static VideoEditorProfile get() {
return native_get_videoeditor_profile();
}
static {
System.loadLibrary("media_jni");
native_init();
}
// Private constructor called by JNI
private VideoEditorProfile(int inputWidth,
int inputHeight,
int outputWidth,
int outputHeight) {
this.maxInputVideoFrameWidth = inputWidth;
this.maxInputVideoFrameHeight = inputHeight;
this.maxOutputVideoFrameWidth = outputWidth;
this.maxOutputVideoFrameHeight = outputHeight;
}
// Methods implemented by JNI
private static native final void native_init();
private static native final VideoEditorProfile
native_get_videoeditor_profile();
}