1 // Copyright (C) 2021 The Android Open Source Project 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #include <stddef.h> 18 #include <stdio.h> 19 #include <string.h> 20 #include <cstdint> 21 22 extern "C" { 23 struct media_vtb_utils_copy_context { media_vtb_utils_copy_contextmedia_vtb_utils_copy_context24 media_vtb_utils_copy_context(void* surface, unsigned int w, unsigned int h) 25 : iosurface(surface), dest_width(w), dest_height(h){}; 26 void* iosurface; 27 unsigned int dest_width; 28 unsigned int dest_height; 29 }; 30 31 void media_vtb_utils_nv12_updater(void* privData, 32 uint32_t type, 33 uint32_t* textures, 34 void* callerData); 35 36 } // end of extern C 37