Files
BPI-CM9-Linux/aml-comp/vendor/amlogic/meson_display/common/display/HwDisplayPlaneBase.cpp
T
2026-08-24 10:03:24 +08:00

34 lines
690 B
C++

/*
* Copyright (c) 2024 Amlogic, Inc. All rights reserved.
*
* This source code is subject to the terms and conditions defined in the
* file 'LICENSE' which is part of this source code package.
*
* Description:
*/
#include <unistd.h>
#include "HwDisplayPlaneBase.h"
HwDisplayPlaneBase::HwDisplayPlaneBase(int32_t drvFd)
: mDrvFd(drvFd),
mId(0),
mName("Display-Plane"),
mType(0),
mCaps(0),
mPossibleCrtcs(0),
mDebugFlag(0) {
}
HwDisplayPlaneBase::~HwDisplayPlaneBase() {
if (mDrvFd >= 0)
close(mDrvFd);
}
uint32_t HwDisplayPlaneBase::getType() {
if (mDebugFlag & 1) {
return INVALID_PLANE;
}
return mType;
}