linuxOS_D21X/source/artinchip/qtlauncher/video/aicrenderthread.h
2024-11-29 16:33:21 +08:00

44 lines
712 B
C++

/*
* Copyright (C) 2024 ArtInChip Technology Co. Ltd
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef AICRANDERTHREAD_H
#define AICRANDERTHREAD_H
#include <QThread>
#ifdef QTLAUNCHER_GE_SUPPORT
#include <video/mpp_types.h>
#include <linux/dma-heap.h>
#include <dma_allocator.h>
#include <frame_allocator.h>
#include <mpp_decoder.h>
#include <mpp_dec_type.h>
#include <mpp_ge.h>
#endif
#define RENDER_FRAME_NUM_MAX 1300
class AiCRenderThread : public QThread
{
Q_OBJECT
public:
AiCRenderThread(void *data);
~AiCRenderThread();
#ifdef QTLAUNCHER_GE_SUPPORT
void stop();
protected:
void run();
private:
void *mData;
bool mStop;
#endif
};
#endif /* AICRANDERTHREAD_H */