1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(video): make type aliases public

This allows other classes to use the type aliases defined in the
respective classes within their own code.
This commit is contained in:
initramfs 2016-05-04 11:18:24 +08:00 committed by initramfs
parent 8952208e8a
commit 897cec4e75
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF
3 changed files with 6 additions and 1 deletions

View File

@ -361,7 +361,8 @@ AVFrame* VideoFrame::generateAVFrame(const QSize& dimensions, const int pixelFor
static_cast<AVPixelFormat>(pixelFormat), 1);
}
if(bufSize < 0){
if(bufSize < 0)
{
av_frame_free(&ret);
return nullptr;
}

View File

@ -71,6 +71,8 @@ public:
*/
class VideoFrame
{
public:
// Declare type aliases
using IDType = std::uint_fast64_t;
using AtomicIDType = std::atomic_uint_fast64_t;

View File

@ -37,6 +37,8 @@ class VideoSource : public QObject
{
Q_OBJECT
public:
// Declare type aliases
using IDType = std::uint_fast64_t;
using AtomicIDType = std::atomic_uint_fast64_t;