mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
split rpcs3 and hle libraries
merge rpcs3 utilities
This commit is contained in:
parent
b33e2662b6
commit
62ad27d1e2
1233 changed files with 7004 additions and 3819 deletions
33
rpcs3/util/video_source.h
Normal file
33
rpcs3/util/video_source.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include "types.hpp"
|
||||
#include <functional>
|
||||
|
||||
class video_source
|
||||
{
|
||||
public:
|
||||
video_source() {};
|
||||
virtual ~video_source() {};
|
||||
virtual void set_video_path(const std::string& video_path) = 0;
|
||||
virtual void set_active(bool active) = 0;
|
||||
virtual bool get_active() const = 0;
|
||||
virtual bool has_new() const = 0;
|
||||
virtual void get_image(std::vector<u8>& data, int& w, int& h, int& ch, int& bpp) = 0;
|
||||
|
||||
void set_update_callback(std::function<void()> callback)
|
||||
{
|
||||
m_update_callback = callback;
|
||||
}
|
||||
|
||||
protected:
|
||||
void notify_update()
|
||||
{
|
||||
if (m_update_callback)
|
||||
{
|
||||
m_update_callback();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
std::function<void()> m_update_callback;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue