1 /* 2 * Copyright (C) 2011-2015 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2011 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 #ifndef QCOM_OMX_METADATA_H_ 19 #define QCOM_OMX_METADATA_H_ 20 21 #include <system/window.h> 22 #include <media/hardware/MetadataBufferType.h> 23 24 namespace android { 25 26 #ifdef USE_NATIVE_HANDLE_SOURCE 27 typedef struct encoder_nativehandle_buffer_type { 28 MetadataBufferType buffer_type; 29 buffer_handle_t meta_handle; 30 } encoder_nativehandle_buffer_type; 31 #endif 32 33 typedef struct encoder_media_buffer_type { 34 MetadataBufferType buffer_type; 35 buffer_handle_t meta_handle; 36 } encoder_media_buffer_type; 37 38 #ifdef ANDROID_JELLYBEAN_MR2 39 // Meta data buffer layout used to transport output frames to the decoder for 40 // dynamic buffer handling. 41 struct VideoDecoderOutputMetaData { 42 MetadataBufferType eType; 43 buffer_handle_t pHandle; 44 }; 45 #endif 46 } 47 48 #endif 49