![]() |
CRM64Pro GDK v0.18.0
A free cross-platform game development kit built on top of SDL 3.0
|
Video Object class.
Public Member Functions | |
| bool | info (Sint32 iMode=0) override |
| Request Video object information. | |
| const string & | getName () const override |
| Get the name. | |
| Sint32 | getID () const override |
| Get the ID. | |
| Sint32 | play (Sint32 iRepeats=0) |
| Play the video. | |
| bool | pause () |
| Pause the video playback. | |
| bool | resume () |
| Resume video from a paused state. | |
| bool | stop () |
| Stop video playback and reset to the beginning. | |
| ePlaybackStatus | status () const |
| Get the video status. | |
| Sint32 | getDuration () const |
| Get total duration. | |
| Sint32 | getPlaybackPosition () const |
| Get current playback position. | |
| bool | seek (Sint32 iTimeMS) |
| Seek to a playback position. | |
| Uint64 | getFrameCount () const |
| Get total frame count. | |
| Uint64 | getFrameCurrent () const |
| Get current frame index. | |
| Sint32 | getWidth () const |
| Get the native video width. | |
| Sint32 | getHeight () const |
| Get the native video height. | |
| bool | setBlendMode (SDL_BlendMode bmValue) |
| Set the alpha blending mode. | |
| SDL_BlendMode | getBlendMode () const |
| Get the alpha blending mode. | |
| bool | setAlphaMod (Sint32 iAlpha) |
| Set the alpha modulation value. | |
| Sint32 | getAlphaMod () const |
| Get the alpha modulation value. | |
| bool | setColorMod (Uint8 iR, Uint8 iG, Uint8 iB) |
| Set the color modulation value. | |
| Sint32 | getColorMod (Uint8 &iR, Uint8 &iG, Uint8 &iB) const |
| Get the color modulation value. | |
| bool | setTag (eAudioTrackTag eTag) |
| Set video audio tag category. | |
| eAudioTrackTag | getTag () const |
| Get video audio tag category. | |
| bool | hasAudio () const |
| Check if the video media contains an audio stream. | |
| bool | hasAudioError () const |
| Check if video audio playback was dropped after a runtime audio failure. | |
| bool | getInfo (VideoInfo *pVI) const |
| Get video detailed information. | |
| Sint32 | decodeFrameAt (Sint32 iTimeMS, SDL_Surface **ppSurface) |
| Decode and copy one video frame at or near a timestamp. | |
| Sint32 | save (const string &sCDCFile, const string &sResourceName="") |
| Save the Video into a CDC file. | |
| Sint32 | save (Sint32 idCDC, const string &sResourceName="") |
| Save the Video into a CDC file. | |
| Sint32 | saveToFile (const string &sFile) const |
| Export the Video to an external file. | |
| bool | setTarget (Sint32 idRes=0) |
| Set the video render target. | |
| bool | setViewport (const SDL_FRect *pRect=nullptr) |
| Set the target viewport used for automatic video rendering. | |
| bool | setSourceViewport (const SDL_FRect *pRect=nullptr) |
| Set the source viewport used for automatic video rendering. | |
| bool | setRenderEx (double dAngle=0.0, const SDL_FPoint *pCenter=nullptr, SDL_FlipMode rf=SDL_FLIP_NONE) |
| Set extended render attributes used for automatic video rendering. | |