-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/main'
- Loading branch information
Showing
13 changed files
with
4,391 additions
and
97 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "../core/include/subsystems/screen.h" | ||
#include "pl_mpeg.h" | ||
#include <string> | ||
|
||
/// @brief Only one video file can be open at a time due to memory constraints | ||
void set_video(const std::string &filename); | ||
/// @brief restart the global video | ||
void video_restart(); | ||
// plays the video set by set_video() | ||
// because of memory constraints we're limited to one video at a time | ||
class VideoPlayer : public screen::Page { | ||
public: | ||
VideoPlayer(); | ||
void update(bool was_pressed, int x, int y) override; | ||
|
||
void draw(vex::brain::lcd &screen, bool first_draw, unsigned int frame_number) override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.