Files

59 lines
2.1 KiB
C

/*
* Copyright (C) 2024 Amlogic Corporation.
*
* 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.
*/
#ifndef DISPLAY_INTERFACE_H
#define DISPLAY_INTERFACE_H
#define DISPLAY_LOCAL_MODE 0
#define DISPLAY_REMOTE_MODE 1
#define DISPLAY_RETURN_FAIL (-1)
#define DISPLAY_RETURN_OK 0
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "MesonTypes.h"
int32_t dispAdptCreateLayer(int32_t displayId, int32_t *layerId);
int32_t dispAdptDestroyLayer(int32_t displayId, int32_t layerId);
int32_t dispAdptSetTunnelId(int32_t displayId, int32_t layerId, int32_t tunnelId);
int32_t dispAdptSetLayerIndex(int32_t displayId, int32_t layerId, int32_t index);
int32_t dispAdptSetLayerZorder(int32_t displayId, int32_t layerId, int32_t zorder);
int32_t dispAdptSetLayerSourceCrop(int32_t displayId, int32_t layerId, struct rect crop);
int32_t dispAdptSetLayerDispFrame(int32_t displayId, int32_t layerId, struct rect frame);
int32_t dispAdptGetVsyncDelayLatency(int32_t displayId, int32_t layerId);
int32_t dispAdptSetVideoDisplaytoMainplane(int32_t displayId);
int32_t dispAdptSetLayerTransform(int32_t displayId, int32_t layerId, int32_t transform);
int32_t dispAdptRegisterCallback(int32_t displayId, int32_t layerId,
void *context, meson_callback_t *cb);
int32_t dispAdptRegisterPageFlipCallback(int32_t displayId,
int32_t layerId, void *context, adpt_page_flip_callback *cb);
int32_t dispAdptGetVideoDelay(int32_t displayId, int32_t fps);
int32_t dispAdptWaitVBlank(int32_t displayId);
int32_t dispAdptDestroyDisplay(int32_t displayId);
int32_t dispAdptGetUiSize(int32_t displayId, int32_t *width, int32_t *height);
#ifdef __cplusplus
}
#endif
#endif