In case anyone is interested in: http://harmattan-dev.nokia.com/docs/...deowidget.html theres a solution exactly in
QList<QVideoFrame::PixelFormat> VideoWidgetSurface::supportedPixelFormats(
QAbstractVideoBuffer::HandleType handleType) const
{
if (handleType == QAbstractVideoBuffer::NoHandle) {
return QList<QVideoFrame::PixelFormat>()
<< QVideoFrame::Format_ARGB32
<< QVideoFrame::Format_ARGB32_Premultiplied;
} else {
return QList<QVideoFrame::PixelFormat>();
}
}
QList<QVideoFrame::PixelFormat> VideoWidgetSurface::supportedPixelFormats(
QAbstractVideoBuffer::HandleType handleType) const
{
if (handleType == QAbstractVideoBuffer::NoHandle) {
return QList<QVideoFrame::PixelFormat>()
<< QVideoFrame::Format_ARGB32
<< QVideoFrame::Format_ARGB32_Premultiplied;
} else {
return QList<QVideoFrame::PixelFormat>();
}
}
To copy to clipboard, switch view to plain text mode
it dispays the alpha channel correctly. Now for alpha-blending with the app background.
Bookmarks