1 #ifndef openglframefifo_HEADER_GUARD
2 #define openglframefifo_HEADER_GUARD
58 return os <<
"720p: " << ctx.n_720p <<
" / 1080p: " << ctx.n_1080p <<
" / 1440p: " << ctx.n_1440p <<
" / 4K: " << ctx.n_4K <<
" / n_setup: " << ctx.
n_setup <<
" / n_signal: " << ctx.
n_signal <<
" / flush_when_full: " << int(ctx.
flush_when_full);
102 void debugOn() {debug=
true;}
103 void debugOff(){debug=
false;}
Decoded YUV/RGB frame in FFMpeg format.
Definition: frame.h:361
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:83
FrameFifoContext ctx
Parameters defining the stack and overflow behaviour.
Definition: framefifo.h:93
Frame: An abstract queueable class.
Definition: frame.h:112
A FrameFifo managed and used by OpenGLThread.
Definition: openglframefifo.h:69
void deallocateYUV()
Deallocate YUVFrame's .. must be done before OpenGLThread exits.
Definition: openglframefifo.cpp:107
OpenGLFrameFifo(OpenGLFrameFifoContext ctx=OpenGLFrameFifoContext())
Default constructor.
Definition: openglframefifo.cpp:42
std::map< BitmapType, YUVReservoir > yuv_reservoirs
Instances of YUVFrame s.
Definition: openglframefifo.h:84
YUVFrame * prepareAVBitmapFrame(AVBitmapFrame *frame)
Tries to get a YUVFrame with correct bitmap dimensions from the stack. If success,...
Definition: openglframefifo.cpp:127
void YUVdiagnosis()
Brief resumen of OpenGLFrameFifo::yuv_stacks.
Definition: openglframefifo.cpp:239
virtual bool writeCopy(Frame *f, bool wait=false)
Redefined. Uses FrameFifo::writeCopy. Separates configuration frames and YUVFrames.
Definition: openglframefifo.cpp:168
~OpenGLFrameFifo()
Default destructor.
Definition: openglframefifo.cpp:77
OpenGLFrameFifoContext gl_ctx
Stack profile and overflow behaviour.
Definition: openglframefifo.h:83
void allocateYUV()
Allocate YUVFrame's .. must be done after OpenGLThread has been started.
Definition: openglframefifo.cpp:82
virtual void recycle_(Frame *f)
Redefined. Uses FrameFifo::recycle_. Separates configuration frames and YUVFrames.
Definition: openglframefifo.cpp:209
std::map< BitmapType, YUVStack > yuv_stacks
Pointers to Frames s in the reservoirs.
Definition: openglframefifo.h:85
void dumpYUVStacks()
Dump frames in OpenGLFrameFifo::yuv_stacks.
Definition: openglframefifo.cpp:223
This class does a lot of things:
Definition: openglthread.h:247
A GPU YUV frame.
Definition: frame.h:492
Definition of FrameFilter and derived classes for various purposes.
OpenGL calls for reserving PBOs and TEXtures, plus some auxiliary routines.
Describes the stack structure and fifo behaviour for an OpenGLFrameFifo.
Definition: openglframefifo.h:45
int n_signal
signals OpenGLThread // <pyapi>
Definition: openglframefifo.h:52
bool flush_when_full
Flush when filled // <pyapi>
Definition: openglframefifo.h:53
int n_setup
setup data // <pyapi>
Definition: openglframefifo.h:51