-
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.
[AVCCodecHandler] Some code cleanups
Most rilevant change, add our implementation of ReadGolomb in order to remove bento4 custom patch
- Loading branch information
1 parent
2c699a5
commit 336cd62
Showing
3 changed files
with
61 additions
and
44 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
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 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; | ||
AP4_UI08 m_pictureId{0}; | ||
AP4_UI08 m_pictureIdPrev{AP4_AVC_PPS_MAX_ID}; | ||
}; |
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