Files
BPI-CM9-Linux/aml-comp/multimedia/aml_mp_sdk/player/AmlDummyTsPlayer.h
T
2026-08-24 10:03:24 +08:00

57 lines
1.4 KiB
C++

/*
* Copyright (c) 2020 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 _AML_DUMMY_TSPLAYER_H_
#define _AML_DUMMY_TSPLAYER_H_
#include "AmlPlayerBase.h"
#include "AmlTsPlayer.h"
#include <utils/AmlMpUtils.h>
#include <utils/AmlMpBuffer.h>
namespace aml_mp {
class AmlDummyTsPlayer : public AmlTsPlayer
{
public:
AmlDummyTsPlayer(Aml_MP_PlayerCreateParams* createParams, int instanceId);
~AmlDummyTsPlayer();
int start() override;
int stop() override;
int pause() override;
int resume() override;
int flush() override;
int startVideoDecoding() override;
int stopVideoDecoding() override;
int pauseVideoDecoding() override;
int resumeVideoDecoding() override;
int startAudioDecoding() override;
int stopAudioDecoding() override;
int startADDecoding() override;
int stopADDecoding() override;
int pauseAudioDecoding() override;
int resumeAudioDecoding() override;
int setVideoParams(const Aml_MP_VideoParams* params) override;
int setAudioParams(const Aml_MP_AudioParams* params) override;
int setADParams(const Aml_MP_AudioParams* params, bool enableMix) override;
private:
char mName[50];
AmlDummyTsPlayer(const AmlDummyTsPlayer&) = delete;
AmlDummyTsPlayer& operator= (const AmlDummyTsPlayer&) = delete;
};
}
#endif