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:
parent
8952208e8a
commit
897cec4e75
|
@ -361,7 +361,8 @@ AVFrame* VideoFrame::generateAVFrame(const QSize& dimensions, const int pixelFor
|
||||||
static_cast<AVPixelFormat>(pixelFormat), 1);
|
static_cast<AVPixelFormat>(pixelFormat), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(bufSize < 0){
|
if(bufSize < 0)
|
||||||
|
{
|
||||||
av_frame_free(&ret);
|
av_frame_free(&ret);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,8 @@ public:
|
||||||
*/
|
*/
|
||||||
class VideoFrame
|
class VideoFrame
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
// Declare type aliases
|
||||||
using IDType = std::uint_fast64_t;
|
using IDType = std::uint_fast64_t;
|
||||||
using AtomicIDType = std::atomic_uint_fast64_t;
|
using AtomicIDType = std::atomic_uint_fast64_t;
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ class VideoSource : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
// Declare type aliases
|
||||||
using IDType = std::uint_fast64_t;
|
using IDType = std::uint_fast64_t;
|
||||||
using AtomicIDType = std::atomic_uint_fast64_t;
|
using AtomicIDType = std::atomic_uint_fast64_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user