Changeset 4994

Show
Ignore:
Timestamp:
09/09/07 16:27:08 (6 years ago)
Author:
jgaeddert
Message:

moving CVSD to sdrf2007 framework, adjusting documentation

Location:
components/CVSD/trunk/CVSD
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • components/CVSD/trunk/CVSD/Makefile.am

    r4507 r4994  
    55    CVSDDecoder 
    66 
    7 bindir = $(prefix)/dom/bin 
     7bindir = $(prefix)/bin 
    88 
    99# ---------- CVSD Encoder ---------- 
     
    1717 
    1818ossieName1 = CVSDEncoder 
    19 xml1dir = $(prefix)/dom/xml/$(ossieName1) 
     19xml1dir = $(prefix)/xml/$(ossieName1) 
    2020 
    2121dist_xml1_DATA =                        \ 
     
    3636 
    3737ossieName2 = CVSDDecoder 
    38 xml2dir = $(prefix)/dom/xml/$(ossieName2) 
     38xml2dir = $(prefix)/xml/$(ossieName2) 
    3939 
    4040dist_xml2_DATA =                        \ 
  • components/CVSD/trunk/CVSD/documentation.txt

    r4507 r4994  
    33Copyright 2007 Virginia Polytechnic Institute and State University 
    44 
    5 This file is part of the OSSIE Multi-rate Synchronization Component Library. 
     5This file is part of the OSSIE CVSD Audo Codec Library. 
    66 
    7 OSSIE SymbolSyncPoly is free software; you can redistribute it and/or modify 
     7OSSIE CVSD is free software; you can redistribute it and/or modify 
    88it under the terms of the GNU General Public License as published by 
    99the Free Software Foundation; either version 2 of the License, or 
    1010(at your option) any later version. 
    1111 
    12 OSSIE SymbolSyncPoly is distributed in the hope that it will be useful, 
     12OSSIE CVSD is distributed in the hope that it will be useful, 
    1313but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1414MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     
    1616 
    1717You should have received a copy of the GNU General Public License 
    18 along with OSSIE SymbolSyncPoly; if not, write to the Free Software 
     18along with OSSIE CVSD; if not, write to the Free Software 
    1919Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    2020 
  • components/CVSD/trunk/CVSD/genDocs.py

    r4507 r4994  
    88    epsfilename = imgfilename 
    99    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: 
    1111        print "could not convert " + epsfilename + " using ImageMagick" 
    1212        return False 
  • components/CVSD/trunk/CVSD/src/main_decoder.cpp

    r4506 r4994  
    2222 
    2323#include <iostream> 
    24  
    2524#include "ossie/ossieSupport.h" 
    26 #include "ossie/debug.h" 
    2725 
    2826#include "CVSDDecoder.h" 
     27 
     28using namespace std; 
     29using namespace standardInterfaces;  // For standard OSSIE interface classes 
    2930 
    3031 
     
    3233 
    3334{ 
    34     ossieDebugLevel = 3; 
    35  
    3635    ossieSupport::ORB *orb = new ossieSupport::ORB; 
    3736    omni_mutex component_running_mutex; 
    3837    omni_condition *component_running = new omni_condition(&component_running_mutex); 
    3938 
    40     ossieSupport::ossieComponent cvsddecoder(orb, argc, argv); 
     39    if (argc != 3) { 
     40        cout << argv[0] << " <id> <usage name> " << endl; 
     41        exit (-1); 
     42    } 
    4143 
    42     CVSDDecoder_i* cvsddecoder_servant; 
    43     CF::Resource_var cvsddecoder_var; 
     44    char *uuid = argv[1]; 
     45    char *label = argv[2]; 
    4446 
    45     // Create the cvsddecoder component servant and object reference 
     47    cout << "Identifier - " << uuid << "  Label - " << label << endl; 
    4648 
    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; 
    4951 
    50     PortableServer::ObjectId_var servantId = orb->poa->reference_to_id(cvsddecoder_var); 
     52    // Create the cvsd_decoder component servant and object reference 
    5153 
    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); 
    5358 
    5459    // This bit is ORB specific 
     
    5863 
    5964    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); 
    7066    orb->orb->shutdown(0); 
    7167 
  • components/CVSD/trunk/CVSD/src/main_encoder.cpp

    r4506 r4994  
    2222 
    2323#include <iostream> 
    24  
    2524#include "ossie/ossieSupport.h" 
    26 #include "ossie/debug.h" 
    2725 
    2826#include "CVSDEncoder.h" 
     27 
     28using namespace std; 
     29using namespace standardInterfaces;  // For standard OSSIE interface classes 
    2930 
    3031 
     
    3233 
    3334{ 
    34     ossieDebugLevel = 3; 
    35  
    3635    ossieSupport::ORB *orb = new ossieSupport::ORB; 
    3736    omni_mutex component_running_mutex; 
    3837    omni_condition *component_running = new omni_condition(&component_running_mutex); 
    3938 
    40     ossieSupport::ossieComponent cvsdencoder(orb, argc, argv); 
     39    if (argc != 3) { 
     40        cout << argv[0] << " <id> <usage name> " << endl; 
     41        exit (-1); 
     42    } 
    4143 
    42     CVSDEncoder_i* cvsdencoder_servant; 
    43     CF::Resource_var cvsdencoder_var; 
     44    char *uuid = argv[1]; 
     45    char *label = argv[2]; 
    4446 
    45     // Create the cvsdencoder component servant and object reference 
     47    cout << "Identifier - " << uuid << "  Label - " << label << endl; 
    4648 
    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; 
    4951 
    50     PortableServer::ObjectId_var servantId = orb->poa->reference_to_id(cvsdencoder_var); 
     52    // Create the cvsd_encoder component servant and object reference 
    5153 
    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); 
    5358 
    5459    // This bit is ORB specific 
     
    5863 
    5964    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); 
    7066    orb->orb->shutdown(0); 
    7167 
  • components/CVSD/trunk/CVSD/xml/CVSDDecoder.spd.xml

    r4507 r4994  
    1212    </author> 
    1313    <propertyfile type="PRF"> 
    14         <localfile name="CVSDDecoder.prf.xml"/> 
     14        <localfile name="xml/CVSDDecoder/CVSDDecoder.prf.xml"/> 
    1515    </propertyfile> 
    1616    <descriptor> 
    17         <localfile name="CVSDDecoder.scd.xml"/> 
     17        <localfile name="xml/CVSDDecoder/CVSDDecoder.scd.xml"/> 
    1818    </descriptor> 
    1919    <implementation id="DCE:64f72a80-491e-11db-b490-00123f63025f" aepcompliance="aep_compliant"> 
    2020        <description>Default implementation description</description>  
    2121        <code type="Executable"> 
    22             <localfile name="/bin/CVSDDecoder"/> 
     22            <localfile name="bin/CVSDDecoder"/> 
    2323        </code> 
    2424        <processor name="x86"/> 
  • components/CVSD/trunk/CVSD/xml/CVSDEncoder.spd.xml

    r4507 r4994  
    1212    </author> 
    1313    <propertyfile type="PRF"> 
    14         <localfile name="CVSDEncoder.prf.xml"/> 
     14        <localfile name="xml/CVSDEncoder/CVSDEncoder.prf.xml"/> 
    1515    </propertyfile> 
    1616    <descriptor> 
    17         <localfile name="CVSDEncoder.scd.xml"/> 
     17        <localfile name="xml/CVSDEncoder/CVSDEncoder.scd.xml"/> 
    1818    </descriptor> 
    1919    <implementation id="DCE:919e5248-4919-11db-a618-00123f63025f" aepcompliance="aep_compliant"> 
    2020        <description>Default implementation description</description>  
    2121        <code type="Executable"> 
    22             <localfile name="/bin/CVSDEncoder"/> 
     22            <localfile name="bin/CVSDEncoder"/> 
    2323        </code> 
    2424        <processor name="x86"/>