NEW 0.10.0 developer tools : The Codec Toolkit

OpenViBE software releases, jobs and events
Locked
lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

NEW 0.10.0 developer tools : The Codec Toolkit

Post by lbonnet »

Hello OpenViBE developers !

As you may notice the OpenViBE 0.10.0 release is now available with many new features ;)

We implemented for the box developers new templates that will make encoding and decoding process much more simple !
This feature is the Codec Toolkit : a set of classes that you can manipulate easily in order to decode and encode any stream in your openvibe boxes.
Only few lines of code are now necessary, and you don't need to manipulate any trigger, input or output identifier to use it !

We updated the documentation section :
- The Codec Toolkit tutorial. It's still highly advised to do the previous tutorials first !
- The Codec Toolkit Reference page. Quick access to all functionalities.

I hope you will enjoy this time-saving feature as much as we already do here :)

Feel free to ask any upcoming question !
... and as usual any feedback is appreciated ;)

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: NEW 0.10.0 developer tools : The Codec Toolkit

Post by karthiks »

Hey Laurent,

Just wanted to draw your attention to a small error in the files provided in the SVN checkout -

ovpCTestCodecToolkit.h - line 47 and 48 - Instead of

Code: Select all

OpenViBEToolkit::TStimulationDecoder < CTestCodecToolkit > m_oStimDecoder;
OpenViBEToolkit::TStimulationEncoder < CTestCodecToolkit > m_oStimEncoder;
it should be

Code: Select all

OpenViBEToolkit::TStimulationStreamDecoder < CTestCodecToolkit > m_oStimDecoder;
OpenViBEToolkit::TStimulationStreamEncoder < CTestCodecToolkit > m_oStimEncoder;
Also, in ovpCTestCodecToolkit.cpp - line 40 and 42 - Instead of

Code: Select all

TStimulationDecoder < CTestCodecToolkit > * l_oTStimulationDecoder = new TStimulationDecoder < CTestCodecToolkit >(*this);
	delete l_oTStimulationDecoder;
TStimulationEncoder < CTestCodecToolkit > * l_oTStimulationEncoder = new TStimulationEncoder < CTestCodecToolkit >(*this);
	delete l_oTStimulationEncoder;
it should be

Code: Select all

TStimulationStreamDecoder < CTestCodecToolkit > * l_oTStimulationDecoder = new TStimulationStreamDecoder < CTestCodecToolkit >(*this);
	delete l_oTStimulationDecoder;
TStimulationStreamEncoder < CTestCodecToolkit > * l_oTStimulationEncoder = new TStimulationStreamEncoder < CTestCodecToolkit >(*this);
	delete l_oTStimulationEncoder;
- Karthik

Update: Now it seems to show me an error for StimulationStreamEncoder and compiles with StimulationEncoder and Decoder. Disregard this post of mine. Sorry about the mixx-up.

Edited by yrenard: format code text :)
Regards,

Karthik

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: NEW 0.10.0 developer tools : The Codec Toolkit

Post by lbonnet »

oops my mistake ! :oops:

I suppose you compared the code given in the tutorial with the code on the SVN.
Indeed it does not match, but the good file is the one on the SVN, as it is compiling and producing the box you can see in the designer (samples/Codec Toolkit testbox).

It seems like I didn't update the tutorial after my last modification...
The stimulation codecs were the only ones ending with the word "Stream", I removed this word to unify the naming.

It should be ok now.

Thanks for the feedback, it is much appreciated !

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

Locked