07e9741425
This push changes the binary and XML formats and bumps the major version to 2.0. As such, files saved in this version WILL NO LONGER WORK IN PREVIOUS VERSIONS. This compatibility breakage with older versions was required in order to properly provide project refactoring tools. If I were you, unless you are brave, I would wait a week or two before pulling, in case of bugs :) Summary of Changes -New Filesystem dock, with filesystem & tree view modes. -New refactoring tools, to change or fix dependencies. -Quick search dialog, to quickly search any file
66 lines
1.5 KiB
C++
66 lines
1.5 KiB
C++
#ifndef VIDEO_STREAM_THEORAPLAYER_H
|
|
#define VIDEO_STREAM_THEORAPLAYER_H
|
|
|
|
#include "scene/resources/video_stream.h"
|
|
#include "io/resource_loader.h"
|
|
#include "scene/resources/texture.h"
|
|
|
|
class TheoraVideoManager;
|
|
class TheoraVideoClip;
|
|
|
|
class VideoStreamTheoraplayer : public VideoStream {
|
|
|
|
OBJ_TYPE(VideoStreamTheoraplayer,VideoStream);
|
|
|
|
mutable DVector<uint8_t> data;
|
|
TheoraVideoClip* clip;
|
|
bool started;
|
|
bool playing;
|
|
bool loop;
|
|
bool paused;
|
|
|
|
int audio_track;
|
|
|
|
public:
|
|
|
|
virtual void stop();
|
|
virtual void play();
|
|
|
|
virtual bool is_playing() const;
|
|
|
|
virtual void set_paused(bool p_paused);
|
|
virtual bool is_paused(bool p_paused) const;
|
|
|
|
virtual void set_loop(bool p_enable);
|
|
virtual bool has_loop() const;
|
|
|
|
virtual float get_pos() const;
|
|
virtual void seek_pos(float p_time);
|
|
|
|
virtual float get_length() const;
|
|
|
|
virtual int get_pending_frame_count() const;
|
|
virtual void pop_frame(Ref<ImageTexture> p_tex);
|
|
virtual Image peek_frame() const;
|
|
|
|
void update(float p_time);
|
|
|
|
void set_file(const String& p_file);
|
|
void set_audio_track(int p_idx);
|
|
|
|
~VideoStreamTheoraplayer();
|
|
VideoStreamTheoraplayer();
|
|
};
|
|
|
|
class ResourceFormatLoaderVideoStreamTheoraplayer : public ResourceFormatLoader {
|
|
public:
|
|
virtual RES load(const String &p_path,const String& p_original_path="",Error *r_error=NULL);
|
|
virtual void get_recognized_extensions(List<String> *p_extensions) const;
|
|
virtual bool handles_type(const String& p_type) const;
|
|
virtual String get_resource_type(const String &p_path) const;
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|