MCPcopy Create free account
hub / github.com/FFMS/ffms2 / CopyOut

Method CopyOut

src/core/utils.cpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39FFMS_Exception::FFMS_Exception(int ErrorType, int SubType, const std::string &Message) : _Message(Message), _ErrorType(ErrorType), _SubType(SubType) {}
40
41int FFMS_Exception::CopyOut(FFMS_ErrorInfo *ErrorInfo) const {
42 if (ErrorInfo) {
43 ErrorInfo->ErrorType = _ErrorType;
44 ErrorInfo->SubType = _SubType;
45
46 if (ErrorInfo->BufferSize > 0) {
47 memset(ErrorInfo->Buffer, 0, ErrorInfo->BufferSize);
48 _Message.copy(ErrorInfo->Buffer, ErrorInfo->BufferSize - 1);
49 }
50 }
51
52 return (_ErrorType << 16) | _SubType;
53}
54
55void ClearErrorInfo(FFMS_ErrorInfo *ErrorInfo) {
56 if (ErrorInfo) {

Callers 15

FFMS_CreateVideoSourceFunction · 0.80
FFMS_CreateAudioSource2Function · 0.80
FFMS_GetFrameFunction · 0.80
FFMS_GetFrameByTimeFunction · 0.80
FFMS_GetAudioFunction · 0.80
FFMS_SetOutputFormatV2Function · 0.80
FFMS_SetInputFormatVFunction · 0.80
FFMS_SetOutputFormatAFunction · 0.80
FFMS_GetFirstTrackOfTypeFunction · 0.80
FFMS_WriteTimecodesFunction · 0.80
FFMS_CreateIndexer2Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected