diff options
| author | Comment <tim@gray.(none)> | 2013-03-12 13:34:46 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-03-12 13:34:46 +0000 |
| commit | becf9abfca17ec567cfdc1757ff8fb0ae6d67dea (patch) | |
| tree | a78654a2b747c72aa56596cb5c5a96a52f1d3f26 /rotord/rotor.h | |
| parent | b8d793ccd8c98dfb5edb7808f6e67cb913d7967a (diff) | |
avcodec compiling
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index c4f5c38..546e6f5 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -63,9 +63,24 @@ using Poco::UUID; using Poco::UUIDGenerator; using Poco::Net::HTTPResponse; + +extern "C" { + #include "libavcodec/avcodec.h" + #include "libavutil/opt.h" + #include "libavutil/channel_layout.h" + #include "libavutil/common.h" + #include "libavutil/imgutils.h" + #include "libavutil/mathematics.h" + #include "libavutil/samplefmt.h" +} + +#define AUDIO_INBUF_SIZE 20480 +#define AUDIO_REFILL_THRESH 4096 + #include "vampHost.h" #include "xmlIO.h" - +#include "avCodec.h" + namespace Rotor { #define IDLE 0 #define ANALYSING_AUDIO 1 @@ -292,11 +307,11 @@ namespace Rotor { void cancel(); //interrupt locking process int make_preview(int nodeID, float time); //starts a frame preview - returns status code - how to retrieve? int load_graph(Poco::UUID uid); - bool load_graph(string graph_filename); //should eventually be as above + bool load_graph(string &graph_filename); //should eventually be as above UUID save_graph(); //returns UUID of saved graph - int load_audio(string filename); + bool load_audio(string &filename); Render_requirements get_requirements(); - int load_video(int num,string filename); //can be performance or clip + int load_video(int num,string &filename); //can be performance or clip private: int state; |
