-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Apra-Labs/ApraPipes into mo…
…duleTestSignalGenerator
- Loading branch information
Showing
220 changed files
with
6,828 additions
and
1,254 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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
#include "Frame.h" | ||
#include "Utils.h" | ||
|
||
class Mp4ErrorFrame : public Frame { | ||
public: | ||
enum Mp4ErrorFrameType | ||
{ | ||
MP4_SEEK, | ||
MP4_STEP | ||
}; | ||
|
||
Mp4ErrorFrame() {} | ||
Mp4ErrorFrame(int _errorType, int _errorCode, std::string &_errorMsg) | ||
{ | ||
errorType = _errorType; | ||
errorCode = _errorCode; | ||
errorMsg = _errorMsg; | ||
} | ||
|
||
Mp4ErrorFrame(int _errorType, int _errorCode, std::string &_errorMsg, int _openErrorCode, uint64_t& _errorMp4TS) | ||
{ | ||
errorType = _errorType; | ||
errorCode = _errorCode; | ||
errorMsg = _errorMsg; | ||
openErrorCode = _openErrorCode; | ||
errorMp4TS = _errorMp4TS; | ||
} | ||
|
||
bool isMp4ErrorFrame() | ||
{ | ||
return true; | ||
} | ||
|
||
int errorType; // SEEK/STEP | ||
int errorCode; // defined in AIPExceptions.h | ||
uint64_t errorMp4TS = 0; // skipTS in randomSeek, lastFrameTS in step | ||
int openErrorCode = 0; // expose some libmp4 error codes | ||
std::string errorMsg; // keep chars < 500 | ||
}; |
Oops, something went wrong.