Files
BPI-CM9-Linux/aml-comp/multimedia/libvideorender/mesonvideocompositor/include/display_interface.h
T

49 lines
1.5 KiB
C
Raw Normal View History

2026-08-13 11:28:40 +08:00
/*
* 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 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);
#ifdef __cplusplus
}
#endif
#endif