diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 18:07:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 18:07:22 +0000 |
commit | c04dcc2e7d834218ef2d4194331e383402495ae1 (patch) | |
tree | 7333e38d10d75386e60f336b80c2443c1166031d /xbmc/cdrip/IEncoder.h | |
parent | Initial commit. (diff) | |
download | kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.tar.xz kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.zip |
Adding upstream version 2:20.4+dfsg.upstream/2%20.4+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xbmc/cdrip/IEncoder.h')
-rw-r--r-- | xbmc/cdrip/IEncoder.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/xbmc/cdrip/IEncoder.h b/xbmc/cdrip/IEncoder.h new file mode 100644 index 0000000..de484aa --- /dev/null +++ b/xbmc/cdrip/IEncoder.h @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2014-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#include <stdint.h> +#include <string> + +#include "PlatformDefs.h" // for ssize_t + +namespace KODI +{ +namespace CDRIP +{ + +class IEncoder +{ +public: + virtual ~IEncoder() = default; + virtual bool Init() = 0; + virtual ssize_t Encode(uint8_t* pbtStream, size_t nNumBytesRead) = 0; + virtual bool Close() = 0; + + // tag info + std::string m_strComment; + std::string m_strArtist; + std::string m_strAlbumArtist; + std::string m_strTitle; + std::string m_strAlbum; + std::string m_strGenre; + std::string m_strTrack; + std::string m_strYear; + std::string m_strFile; + int m_iTrackLength = 0; + int m_iInChannels = 0; + int m_iInSampleRate = 0; + int m_iInBitsPerSample = 0; +}; + +} /* namespace CDRIP */ +} /* namespace KODI */ |