#endif
if (aVideoCtx.IsNull())
{
- Message::DefaultMessenger()->Send (TCollection_AsciiString ("FFmpeg: no video stream in '") + theSrcVideo + "'", Message_Fail);
+ Message::SendFail (TCollection_AsciiString ("FFmpeg: no video stream in '") + theSrcVideo + "'");
return Handle(Media_Frame)();
}
{
if (!aFormatCtx->ReadPacket (aPacket))
{
- Message::DefaultMessenger()->Send (TCollection_AsciiString ("FFmpeg: unable to read from '") + theSrcVideo + "'", Message_Fail);
+ Message::SendFail (TCollection_AsciiString ("FFmpeg: unable to read from '") + theSrcVideo + "'");
return Handle(Media_Frame)();
}
if (!aVideoCtx->CanProcessPacket (aPacket))
|| aFrame->SizeX() < 1
|| aFrame->SizeY() < 1)
{
- Message::DefaultMessenger()->Send (TCollection_AsciiString ("FFmpeg: unable to decode first video frame from '") + theSrcVideo + "'", Message_Fail);
+ Message::SendFail (TCollection_AsciiString ("FFmpeg: unable to decode first video frame from '") + theSrcVideo + "'");
return Handle(Media_Frame)();
}
return aFrame;
}
if (!aPixMap->InitZero (Image_Format_RGB, aResSizeX, aResSizeY))
{
- Message::DefaultMessenger()->Send ("FFmpeg: Failed allocation of RGB frame (out of memory)", Message_Fail);
+ Message::SendFail ("FFmpeg: Failed allocation of RGB frame (out of memory)");
return false;
}
Media_Scaler aScaler;
if (!aScaler.Convert (aFrame, anRgbFrame))
{
- Message::DefaultMessenger()->Send (TCollection_AsciiString ("FFmpeg: unable to convert frame into RGB '") + theSrcVideo + "'", Message_Fail);
+ Message::SendFail (TCollection_AsciiString ("FFmpeg: unable to convert frame into RGB '") + theSrcVideo + "'");
return false;
}
}
const int aBufSize = aLineSize * aSize.y();
if (!myBufferPools[0]->Init (aBufSize))
{
- Message::DefaultMessenger()->Send ("FFmpeg: unable to allocate RGB24 frame buffer", Message_Fail);
+ Message::SendFail ("FFmpeg: unable to allocate RGB24 frame buffer");
return false;
}
if (aFrame->buf[0] == NULL)
{
theFrame->Unref();
- Message::DefaultMessenger()->Send ("FFmpeg: unable to allocate RGB24 frame buffer", Message_Fail);
+ Message::SendFail ("FFmpeg: unable to allocate RGB24 frame buffer");
return false;
}
|| !myBufferPools[1]->Init (aBufSizeUV)
|| !myBufferPools[2]->Init (aBufSizeUV))
{
- Message::DefaultMessenger()->Send ("FFmpeg: unable to allocate YUV420P frame buffers", Message_Fail);
+ Message::SendFail ("FFmpeg: unable to allocate YUV420P frame buffers");
return false;
}
|| aFrame->buf[2] == NULL)
{
theFrame->Unref();
- Message::DefaultMessenger()->Send ("FFmpeg: unable to allocate YUV420P frame buffers", Message_Fail);
+ Message::SendFail ("FFmpeg: unable to allocate YUV420P frame buffers");
return false;
}
#endif
if (aVideoCtx.IsNull())
{
- Message::DefaultMessenger()->Send (TCollection_AsciiString ("FFmpeg: no video stream in '") + anInput + "'", Message_Fail);
+ Message::SendFail (TCollection_AsciiString ("FFmpeg: no video stream in '") + anInput + "'");
continue;
}