29 using std::make_unique;
32 using std::unique_ptr;
55 GUIVideoNode::GUIVideoNode(
63 const string& backgroundImage,
65 const GUIColor& backgroundImageEffectColorMul,
66 const GUIColor& backgroundImageEffectColorAdd,
71 const string& tooltip,
91 backgroundImageScale9Grid,
92 backgroundImageEffectColorMul,
93 backgroundImageEffectColorAdd,
99 requestedDimensionConstraints,
146 FileSystem::getInstance()->getPathName(
source),
147 FileSystem::getInstance()->getFileName(
source)
171 auto timeNow = Time::getCurrentMillis();
177 videoTextureData->clear();
GUI element node conditions.
GUI node requested constraints requested constraints type enum.
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.
void dispose() override
Dispose node.
void onRenderTexture() override
On render texture event.
const string getNodeType() override
void dispose() override
Dispose node.
void setSource(const string &source)
Set image source.
unique_ptr< ByteBuffer > videoAudioBuffer
void disposeVideo()
Dispose video related members.
const string & getSource()
unique_ptr< DynamicColorTexture > videoTexture
MPEG1Decoder videoDecoder
File system singleton class.
PL_MPEG/MPEG1 video decoder.
int64_t readVideoFromStream(ByteBuffer *data) override
Read raw RGB video data from stream.
int64_t readAudioFromStream(ByteBuffer *data) override
Read raw PCM data from stream.
void update(float deltaTime) override
Update.
void openFile(const string &pathName, const string &fileName) override
Open a local file.
uint16_t getVideoHeight() const
uint16_t getVideoWidth() const
std::exception Exception
Exception base class.
GUI node clipping entity.
GUI node computed constraints.
GUI node requested constraints entity.
GUI node scale 9 grid entity.