/*
* Copyright (C) 2021 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.
*/
#pragma once

// media decoding related common declaration

extern "C" {
typedef void (*yuv_updater_t)(void* privData,
                              uint32_t type,
                              uint32_t* textures,
                              void* callerData);
#ifdef __APPLE__
void nsConvertVideoFrameToNV12Textures(void* context,
                                       void* iosurface,
                                       int Ytex,
                                       int UVtex);
typedef void (*convertNV21Func)(void* context,
                                void* iosurface,
                                int Ytex,
                                int UVtex);
struct MediaNativeCallerData {
    void* ctx;
    convertNV21Func converter;
};

#endif
}
