|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include "cores/AudioEngine/Utils/AEStreamInfo.h"#include <algorithm>#include <cstdint>#include <memory>#include <vector>#include <gtest/gtest.h>Functions | |
| TEST (TestAEStreamParser, ACoreFrameNotFollowedByASyncIsNotTakenAsTheStream) | |
| TEST (TestAEStreamParser, AnExtensionWithAnUnknownAssetIsNotTakenAsTheStream) | |
| TEST (TestAEStreamParser, AnExtensionSplitBeforeItsAssetIsStillDetected) | |
| TEST (TestAEStreamParser, ADtsHdMaStreamIsDetectedFromItsFirstFrame) | |
| TEST (TestAEStreamParser, ACoreOnlyStreamIsStillDts) | |
| TEST (TestAEStreamParser, AnMaStreamStaysMaThroughXllPayloadThatLooksLikeXch) | |
| TEST (TestAEStreamParser, AKnownMaStreamStartingInsideAStraddlingRunIsMa) | |
| TEST (TestAEStreamParser, ADtsHdHraStreamIsStillHra) | |
| The MA latch must not catch a real DTS-HD HRA stream, which never carries an XLL sync. | |
| TEST | ( | TestAEStreamParser | , |
| ACoreFrameNotFollowedByASyncIsNotTakenAsTheStream | ) |
After a flush the first bytes can hold a core frame cut from its extension. Taking it as a plain DTS stream reconfigures the output twice - to DTS, then back to DTS-HD MA - and the receiver has to acquire the format again for nothing.
| TEST | ( | TestAEStreamParser | , |
| ACoreOnlyStreamIsStillDts | ) |
| TEST | ( | TestAEStreamParser | , |
| ADtsHdHraStreamIsStillHra | ) |
The MA latch must not catch a real DTS-HD HRA stream, which never carries an XLL sync.
| TEST | ( | TestAEStreamParser | , |
| ADtsHdMaStreamIsDetectedFromItsFirstFrame | ) |
| TEST | ( | TestAEStreamParser | , |
| AKnownMaStreamStartingInsideAStraddlingRunIsMa | ) |
A resume or chapter jump can start inside a straddling run, before any XLL sync is seen. The codec knows the stream is MA from the demuxer's profile and tells the parser.
| TEST | ( | TestAEStreamParser | , |
| AnExtensionSplitBeforeItsAssetIsStillDetected | ) |
| TEST | ( | TestAEStreamParser | , |
| AnExtensionWithAnUnknownAssetIsNotTakenAsTheStream | ) |
After a lost sync there is no previous type to fall back on, and a stream without a type has no frame duration, which ActiveAE cannot buffer.
| TEST | ( | TestAEStreamParser | , |
| AnMaStreamStaysMaThroughXllPayloadThatLooksLikeXch | ) |
At peak bit rate the word after an MA extension header can be XLL payload that reads as the XCH sync. Taking such frames as DTS-HD HRA packs 8320-byte MA frames into 8192-byte HRA bursts.