/* * 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 #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; }