1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/omx-plugin/include/froyo/ui/android_native_buffer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 1.4 +/* 1.5 + * Copyright (C) 2009 The Android Open Source Project 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * Unless required by applicable law or agreed to in writing, software 1.14 + * distributed under the License is distributed on an "AS IS" BASIS, 1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.16 + * See the License for the specific language governing permissions and 1.17 + * limitations under the License. 1.18 + */ 1.19 + 1.20 +#ifndef ANDROID_ANDROID_NATIVES_PRIV_H 1.21 +#define ANDROID_ANDROID_NATIVES_PRIV_H 1.22 + 1.23 +#include <ui/egl/android_natives.h> 1.24 + 1.25 +#ifdef __cplusplus 1.26 +extern "C" { 1.27 +#endif 1.28 + 1.29 +/*****************************************************************************/ 1.30 + 1.31 +typedef struct android_native_buffer_t 1.32 +{ 1.33 +#ifdef __cplusplus 1.34 + android_native_buffer_t() { 1.35 + common.magic = ANDROID_NATIVE_BUFFER_MAGIC; 1.36 + common.version = sizeof(android_native_buffer_t); 1.37 + memset(common.reserved, 0, sizeof(common.reserved)); 1.38 + } 1.39 +#endif 1.40 + 1.41 + struct android_native_base_t common; 1.42 + 1.43 + int width; 1.44 + int height; 1.45 + int stride; 1.46 + int format; 1.47 + int usage; 1.48 + 1.49 + void* reserved[2]; 1.50 + 1.51 + buffer_handle_t handle; 1.52 + 1.53 + void* reserved_proc[8]; 1.54 +} android_native_buffer_t; 1.55 + 1.56 + 1.57 +/*****************************************************************************/ 1.58 + 1.59 +#ifdef __cplusplus 1.60 +} 1.61 +#endif 1.62 + 1.63 +/*****************************************************************************/ 1.64 + 1.65 +#endif /* ANDROID_ANDROID_NATIVES_PRIV_H */