|
Kore 3
|
Hardware-assisted video decoding support. Actually supported formats vary per target-system. More...
Go to the source code of this file.
Data Structures | |
| struct | kore_video |
Typedefs | |
| typedef struct kore_video | kore_video |
Functions | |
| KORE_FUNC const char ** | kore_video_formats (void) |
| Returns the list of video formats which are supported on the current system. | |
| KORE_FUNC void | kore_video_init (kore_video *video, const char *filename) |
| Prepares a video object based on an encoded video-file. | |
| KORE_FUNC void | kore_video_destroy (kore_video *video) |
| Destroys a video object. | |
| KORE_FUNC void | kore_video_play (kore_video *video, bool loop) |
| Starts playing a video. | |
| KORE_FUNC void | kore_video_pause (kore_video *video) |
| Pauses a video. | |
| KORE_FUNC void | kore_video_stop (kore_video *video) |
| Stops a video which is equivalent to pausing it and setting the position to 0. | |
| KORE_FUNC int | kore_video_width (kore_video *video) |
| Gets the width of the video in pixels. | |
| KORE_FUNC int | kore_video_height (kore_video *video) |
| Gets the height of the video in pixels. | |
| KORE_FUNC kore_gpu_texture * | kore_video_current_image (kore_video *video) |
| Gets the current image of a playing video which can be rendered using Kore's GPU API. | |
| KORE_FUNC double | kore_video_duration (kore_video *video) |
| Gets the duration of the video in seconds. | |
| KORE_FUNC double | kore_video_position (kore_video *video) |
| Returns the current playback-position of the video in seconds. | |
| KORE_FUNC bool | kore_video_finished (kore_video *video) |
| Returns whether the video reached its end. | |
| KORE_FUNC bool | kore_video_paused (kore_video *video) |
| Returns whether the video is currently paused. | |
| KORE_FUNC void | kore_video_update (kore_video *video, double time) |
| Call this every frame to update the video. This is not required on all targets but where it's not required the function just does nothing - so please call it. | |
Hardware-assisted video decoding support. Actually supported formats vary per target-system.
| KORE_FUNC kore_gpu_texture * kore_video_current_image | ( | kore_video * | video | ) |
Gets the current image of a playing video which can be rendered using Kore's GPU API.
| KORE_FUNC double kore_video_duration | ( | kore_video * | video | ) |
Gets the duration of the video in seconds.
| KORE_FUNC bool kore_video_finished | ( | kore_video * | video | ) |
Returns whether the video reached its end.
| KORE_FUNC const char ** kore_video_formats | ( | void | ) |
Returns the list of video formats which are supported on the current system.
| KORE_FUNC int kore_video_height | ( | kore_video * | video | ) |
Gets the height of the video in pixels.
| KORE_FUNC bool kore_video_paused | ( | kore_video * | video | ) |
Returns whether the video is currently paused.
| KORE_FUNC double kore_video_position | ( | kore_video * | video | ) |
Returns the current playback-position of the video in seconds.
| KORE_FUNC int kore_video_width | ( | kore_video * | video | ) |
Gets the width of the video in pixels.