From becf9abfca17ec567cfdc1757ff8fb0ae6d67dea Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 12 Mar 2013 13:34:46 +0000 Subject: avcodec compiling --- rotord/rotor.h | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'rotord/rotor.h') 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; -- cgit v1.2.3