#include <input.h>
  
  
      
        
          | virtual Mist::Input::~Input  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | virtual void Mist::Input::argumentsParsed  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | bool Mist::Input::atKeyFrame  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
  
  
      
        
          | void Mist::InOutBase::bufferFinalize  | 
          ( | 
          unsigned long  | 
          tid | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Wraps up the buffering of a shared memory data page. 
Registers the data page on the track index page as well 
- Parameters
 - 
  
    | tid | The trackid of the page to finalize  | 
  
   
 
 
  
  
      
        
          | bool Mist::Input::bufferFrame  | 
          ( | 
          unsigned int  | 
          track,  | 
         
        
           | 
           | 
          unsigned int  | 
          keyNum  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void Mist::InOutBase::bufferLivePacket  | 
          ( | 
          JSON::Value &  | 
          packet | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Buffers a live packet to a page. 
Handles both buffering and creation of new pages
Initiates/continues negotiation with the buffer as well 
- Parameters
 - 
  
    | packet | The packet to buffer  | 
  
   
 
 
  
  
      
        
          | void Mist::InOutBase::bufferLivePacket  | 
          ( | 
          DTSC::Packet &  | 
          packet | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Buffers a live packet to a page. 
Handles both buffering and creation of new pages
Initiates/continues negotiation with the buffer as well 
- Parameters
 - 
  
    | packet | The packet to buffer  | 
  
   
 
 
Buffers the next packet on the currently opened page. 
- Parameters
 - 
  
  
 
 
 
  
  
      
        
          | void Mist::InOutBase::bufferRemove  | 
          ( | 
          unsigned long  | 
          tid,  | 
         
        
           | 
           | 
          unsigned long  | 
          pageNumber  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
Removes a fully buffered page. 
Does not do anything if the process is not standalone, in this case the master process will have an overloaded version of this function. 
- Parameters
 - 
  
    | tid | The trackid to remove the page from  | 
    | pageNumber | The number of the page to remove  | 
  
   
 
 
  
  
      
        
          | bool Mist::InOutBase::bufferStart  | 
          ( | 
          unsigned long  | 
          tid,  | 
         
        
           | 
           | 
          unsigned long  | 
          pageNumber  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
 
  
  
      
        
          | void Mist::Input::callbackWrapper  | 
          ( | 
          char *  | 
          data,  | 
         
        
           | 
           | 
          size_t  | 
          len,  | 
         
        
           | 
           | 
          unsigned int  | 
          id  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | void Mist::Input::checkHeaderTimes  | 
          ( | 
          std::string  | 
          streamFile | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void Mist::InOutBase::continueNegotiate  | 
          ( | 
          unsigned long  | 
          tid | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
 
  
  
      
        
          | void Mist::Input::convert  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
  
  
      
        
          | void Mist::Input::finish  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
  
  
      
        
          | virtual void Mist::Input::getNext  | 
          ( | 
          bool  | 
          smart = true | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
  
  
      
        
          | void Mist::InOutBase::initiateMeta  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Opens a shared memory page for the stream metadata. 
Assumes myMeta contains the metadata to write. 
 
 
  
  
      
        
          | void Mist::Input::parseHeader  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
  
  
      
        
          | void Mist::Input::play  | 
          ( | 
          int  | 
          until = 0 | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void Mist::Input::playOnce  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void Mist::Input::quitPlay  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | virtual bool Mist::Input::readHeader  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedpure virtual   | 
  
 
Implemented in Mist::inputMP4, Mist::inputOGG, Mist::inputISMV, Mist::inputAV, Mist::inputBuffer, Mist::inputMP3, Mist::inputTS, Mist::inputFLV, Mist::inputDTSC, Mist::inputDTSC, and Mist::inputFolder.
 
 
  
  
      
        
          | void Mist::Input::removeUnused  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
  
  
      
        
          | virtual void Mist::Input::seek  | 
          ( | 
          int  | 
          seekTime | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
  
  
      
        
          | void Mist::Input::serve  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
The main loop for inputs in stream serving mode. 
- Trigger:
 - The 
"STREAM_READY" trigger is stream-specific, and is ran whenever an input finished loading and started serving a stream. If cancelled, the input is immediately shut down again. Its payload is:  The "STREAM_UNLOAD" trigger is stream-specific, and is ran right before an input shuts down and stops serving a stream. If cancelled, the shut down is delayed. Its payload is:  
 
 
  
  
      
        
          | virtual bool Mist::Input::setup  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedpure virtual   | 
  
 
Implemented in Mist::inputMP4, Mist::inputOGG, Mist::inputISMV, Mist::inputAV, Mist::inputBuffer, Mist::inputMP3, Mist::inputTS, Mist::inputFLV, Mist::inputDTSC, Mist::inputDTSC, and Mist::inputFolder.
 
 
  
  
      
        
          | virtual void Mist::Input::trackSelect  | 
          ( | 
          std::string  | 
          trackSpec | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
  
  
      
        
          | void Mist::Input::userCallback  | 
          ( | 
          char *  | 
          data,  | 
         
        
           | 
           | 
          size_t  | 
          len,  | 
         
        
           | 
           | 
          unsigned int  | 
          id  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
  
  
      
        
          | unsigned int Mist::Input::benchMark | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int Mist::Input::initialTime | 
         
       
   | 
  
protected   | 
  
 
Timestamp of the last time we received or sent something. 
 
 
  
  
      
        
          | bool Mist::Input::isBuffer | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::map<int,std::set<int> > Mist::Input::keyTimes | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int Mist::Input::lastActive | 
         
       
   | 
  
protected   | 
  
 
Media-timestamp of the last packet. 
 
 
Stores either the input or output metadata. 
 
 
  
  
      
        
          | unsigned int Mist::Input::packTime | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::map<unsigned int, std::map<unsigned int, unsigned int> > Mist::Input::pageCounter | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | unsigned int Mist::Input::playUntil | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::set<unsigned long> Mist::InOutBase::selectedTracks | 
         
       
   | 
  
protectedinherited   | 
  
 
Stores the track id's that are either selected for playback or input. 
 
 
  
  
      
        
          | Input * Mist::Input::singleton = NULL | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | bool Mist::InOutBase::standAlone | 
         
       
   | 
  
protectedinherited   | 
  
 
 
  
  
      
        
          | std::string Mist::InOutBase::streamName | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following files: