Files
2026-08-24 10:03:24 +08:00

55 lines
1.4 KiB
C++

/*
* Copyright (c) 2017 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:
*/
#ifndef DUMMY_COMPOSER_H
#define DUMMY_COMPOSER_H
#include <IComposer.h>
#include <DrmFramebufferBase.h>
#define DUMMY_COMPOSER_NAME "Dummy"
class DummyComposer : public IComposer {
public:
DummyComposer();
~DummyComposer();
const char* getName() { return DUMMY_COMPOSER_NAME; }
meson_composition_t getType() { return MESON_COMPOSITION_DUMMY; }
bool isFbsSupport(
std::vector<std::shared_ptr<DrmFramebufferBase>> & fbs,
std::vector<std::shared_ptr<DrmFramebufferBase>> & overlayfbs,
int composeIdx = 0);
int32_t prepare();
int32_t addInputs(
std::vector<std::shared_ptr<DrmFramebufferBase>> & fbs,
std::vector<std::shared_ptr<DrmFramebufferBase>> & overlayfbs,
int composeIdx = 0);
int32_t getOverlyFbs(std::vector<std::shared_ptr<DrmFramebufferBase>> & overlays);
int32_t setOutput(
std::shared_ptr<DrmFramebufferBase> & fb,
int composeIdx = 0);
int32_t start(int composeIdx = 0);
std::shared_ptr<DrmFramebufferBase> getOutput(int composeIdx = 0);
int32_t setReleaseFence();
int32_t enable(bool enable);
};
#endif/*DUMMY_COMPOSER_H*/