Changeset 4994
- Timestamp:
- 09/09/07 16:27:08 (6 years ago)
- Location:
- components/CVSD/trunk/CVSD
- Files:
-
- 7 modified
-
Makefile.am (modified) (3 diffs)
-
documentation.txt (modified) (2 diffs)
-
genDocs.py (modified) (1 diff)
-
src/main_decoder.cpp (modified) (3 diffs)
-
src/main_encoder.cpp (modified) (3 diffs)
-
xml/CVSDDecoder.spd.xml (modified) (1 diff)
-
xml/CVSDEncoder.spd.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
components/CVSD/trunk/CVSD/Makefile.am
r4507 r4994 5 5 CVSDDecoder 6 6 7 bindir = $(prefix)/ dom/bin7 bindir = $(prefix)/bin 8 8 9 9 # ---------- CVSD Encoder ---------- … … 17 17 18 18 ossieName1 = CVSDEncoder 19 xml1dir = $(prefix)/ dom/xml/$(ossieName1)19 xml1dir = $(prefix)/xml/$(ossieName1) 20 20 21 21 dist_xml1_DATA = \ … … 36 36 37 37 ossieName2 = CVSDDecoder 38 xml2dir = $(prefix)/ dom/xml/$(ossieName2)38 xml2dir = $(prefix)/xml/$(ossieName2) 39 39 40 40 dist_xml2_DATA = \ -
components/CVSD/trunk/CVSD/documentation.txt
r4507 r4994 3 3 Copyright 2007 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE Multi-rate Synchronization ComponentLibrary.5 This file is part of the OSSIE CVSD Audo Codec Library. 6 6 7 OSSIE SymbolSyncPolyis free software; you can redistribute it and/or modify7 OSSIE CVSD is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE SymbolSyncPolyis distributed in the hope that it will be useful,12 OSSIE CVSD is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE SymbolSyncPoly; if not, write to the Free Software18 along with OSSIE CVSD; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 -
components/CVSD/trunk/CVSD/genDocs.py
r4507 r4994 8 8 epsfilename = imgfilename 9 9 pngfilename = os.path.splitext(imgfilename)[0] + '.png' 10 if os.system('convert ' + epsfilename + ' ' + pngfilename) != 0:10 if os.system('convert ' + epsfilename + ' -resize 60% ' + pngfilename) != 0: 11 11 print "could not convert " + epsfilename + " using ImageMagick" 12 12 return False -
components/CVSD/trunk/CVSD/src/main_decoder.cpp
r4506 r4994 22 22 23 23 #include <iostream> 24 25 24 #include "ossie/ossieSupport.h" 26 #include "ossie/debug.h"27 25 28 26 #include "CVSDDecoder.h" 27 28 using namespace std; 29 using namespace standardInterfaces; // For standard OSSIE interface classes 29 30 30 31 … … 32 33 33 34 { 34 ossieDebugLevel = 3;35 36 35 ossieSupport::ORB *orb = new ossieSupport::ORB; 37 36 omni_mutex component_running_mutex; 38 37 omni_condition *component_running = new omni_condition(&component_running_mutex); 39 38 40 ossieSupport::ossieComponent cvsddecoder(orb, argc, argv); 39 if (argc != 3) { 40 cout << argv[0] << " <id> <usage name> " << endl; 41 exit (-1); 42 } 41 43 42 CVSDDecoder_i* cvsddecoder_servant;43 CF::Resource_var cvsddecoder_var;44 char *uuid = argv[1]; 45 char *label = argv[2]; 44 46 45 // Create the cvsddecoder component servant and object reference47 cout << "Identifier - " << uuid << " Label - " << label << endl; 46 48 47 cvsddecoder_servant = new CVSDDecoder_i(cvsddecoder.getUuid(), component_running);48 cvsddecoder_var = cvsddecoder_servant->_this();49 CVSDDecoder_i* cvsd_decoder_servant; 50 CF::Resource_var cvsd_decoder_var; 49 51 50 PortableServer::ObjectId_var servantId = orb->poa->reference_to_id(cvsddecoder_var);52 // Create the cvsd_decoder component servant and object reference 51 53 52 cvsddecoder.bind(cvsddecoder_var); 54 cvsd_decoder_servant = new CVSDDecoder_i(uuid, component_running); 55 cvsd_decoder_var = cvsd_decoder_servant->_this(); 56 57 orb->bind_object_to_name((CORBA::Object_ptr) cvsd_decoder_var, label); 53 58 54 59 // This bit is ORB specific … … 58 63 59 64 component_running->wait(); 60 61 cvsddecoder.unbind(); 62 63 DEBUG(4, CVSDDecoder, "Deactivate object."); 64 orb->poa->deactivate_object(servantId); 65 66 DEBUG(4, CVSDDecoder, "Destroy POA."); 67 orb->poa->destroy(false, false); 68 69 DEBUG(4, CVSDDecoder, "Shutdown orb."); 65 orb->unbind_name(label); 70 66 orb->orb->shutdown(0); 71 67 -
components/CVSD/trunk/CVSD/src/main_encoder.cpp
r4506 r4994 22 22 23 23 #include <iostream> 24 25 24 #include "ossie/ossieSupport.h" 26 #include "ossie/debug.h"27 25 28 26 #include "CVSDEncoder.h" 27 28 using namespace std; 29 using namespace standardInterfaces; // For standard OSSIE interface classes 29 30 30 31 … … 32 33 33 34 { 34 ossieDebugLevel = 3;35 36 35 ossieSupport::ORB *orb = new ossieSupport::ORB; 37 36 omni_mutex component_running_mutex; 38 37 omni_condition *component_running = new omni_condition(&component_running_mutex); 39 38 40 ossieSupport::ossieComponent cvsdencoder(orb, argc, argv); 39 if (argc != 3) { 40 cout << argv[0] << " <id> <usage name> " << endl; 41 exit (-1); 42 } 41 43 42 CVSDEncoder_i* cvsdencoder_servant;43 CF::Resource_var cvsdencoder_var;44 char *uuid = argv[1]; 45 char *label = argv[2]; 44 46 45 // Create the cvsdencoder component servant and object reference47 cout << "Identifier - " << uuid << " Label - " << label << endl; 46 48 47 cvsdencoder_servant = new CVSDEncoder_i(cvsdencoder.getUuid(), component_running);48 cvsdencoder_var = cvsdencoder_servant->_this();49 CVSDEncoder_i* cvsd_encoder_servant; 50 CF::Resource_var cvsd_encoder_var; 49 51 50 PortableServer::ObjectId_var servantId = orb->poa->reference_to_id(cvsdencoder_var);52 // Create the cvsd_encoder component servant and object reference 51 53 52 cvsdencoder.bind(cvsdencoder_var); 54 cvsd_encoder_servant = new CVSDEncoder_i(uuid, component_running); 55 cvsd_encoder_var = cvsd_encoder_servant->_this(); 56 57 orb->bind_object_to_name((CORBA::Object_ptr) cvsd_encoder_var, label); 53 58 54 59 // This bit is ORB specific … … 58 63 59 64 component_running->wait(); 60 61 cvsdencoder.unbind(); 62 63 DEBUG(4, CVSDEncoder, "Deactivate object."); 64 orb->poa->deactivate_object(servantId); 65 66 DEBUG(4, CVSDEncoder, "Destroy POA."); 67 orb->poa->destroy(false, false); 68 69 DEBUG(4, CVSDEncoder, "Shutdown orb."); 65 orb->unbind_name(label); 70 66 orb->orb->shutdown(0); 71 67 -
components/CVSD/trunk/CVSD/xml/CVSDDecoder.spd.xml
r4507 r4994 12 12 </author> 13 13 <propertyfile type="PRF"> 14 <localfile name=" CVSDDecoder.prf.xml"/>14 <localfile name="xml/CVSDDecoder/CVSDDecoder.prf.xml"/> 15 15 </propertyfile> 16 16 <descriptor> 17 <localfile name=" CVSDDecoder.scd.xml"/>17 <localfile name="xml/CVSDDecoder/CVSDDecoder.scd.xml"/> 18 18 </descriptor> 19 19 <implementation id="DCE:64f72a80-491e-11db-b490-00123f63025f" aepcompliance="aep_compliant"> 20 20 <description>Default implementation description</description> 21 21 <code type="Executable"> 22 <localfile name=" /bin/CVSDDecoder"/>22 <localfile name="bin/CVSDDecoder"/> 23 23 </code> 24 24 <processor name="x86"/> -
components/CVSD/trunk/CVSD/xml/CVSDEncoder.spd.xml
r4507 r4994 12 12 </author> 13 13 <propertyfile type="PRF"> 14 <localfile name=" CVSDEncoder.prf.xml"/>14 <localfile name="xml/CVSDEncoder/CVSDEncoder.prf.xml"/> 15 15 </propertyfile> 16 16 <descriptor> 17 <localfile name=" CVSDEncoder.scd.xml"/>17 <localfile name="xml/CVSDEncoder/CVSDEncoder.scd.xml"/> 18 18 </descriptor> 19 19 <implementation id="DCE:919e5248-4919-11db-a618-00123f63025f" aepcompliance="aep_compliant"> 20 20 <description>Default implementation description</description> 21 21 <code type="Executable"> 22 <localfile name=" /bin/CVSDEncoder"/>22 <localfile name="bin/CVSDEncoder"/> 23 23 </code> 24 24 <processor name="x86"/>