-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1720 from CastagnaIT/codec_extradata_move
Moved extradata conversions to more appropriate places
- Loading branch information
Showing
14 changed files
with
237 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
/* | ||
* Copyright (C) 2022 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 "CodecHandler.h" | ||
|
||
class ATTR_DLL_LOCAL AVCCodecHandler : public CodecHandler | ||
{ | ||
public: | ||
AVCCodecHandler(AP4_SampleDescription* sd); | ||
bool ExtraDataToAnnexB() override; | ||
void UpdatePPSId(const AP4_DataBuffer& buffer) override; | ||
bool GetInformation(kodi::addon::InputstreamInfo& info) override; | ||
STREAMCODEC_PROFILE GetProfile() override { return m_codecProfile; }; | ||
|
||
private: | ||
unsigned int m_countPictureSetIds; | ||
STREAMCODEC_PROFILE m_codecProfile; | ||
bool m_needSliceInfo; | ||
}; | ||
/* | ||
* Copyright (C) 2022 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 "CodecHandler.h" | ||
|
||
class ATTR_DLL_LOCAL AVCCodecHandler : public CodecHandler | ||
{ | ||
public: | ||
AVCCodecHandler(AP4_SampleDescription* sd, bool isRequiredAnnexB); | ||
|
||
bool CheckExtraData(std::vector<uint8_t>& extraData, bool isRequiredAnnexB) override; | ||
bool ExtraDataToAnnexB() override; | ||
void UpdatePPSId(const AP4_DataBuffer& buffer) override; | ||
bool GetInformation(kodi::addon::InputstreamInfo& info) override; | ||
STREAMCODEC_PROFILE GetProfile() override { return m_codecProfile; }; | ||
|
||
private: | ||
unsigned int m_countPictureSetIds; | ||
STREAMCODEC_PROFILE m_codecProfile; | ||
bool m_needSliceInfo; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.