cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlStreamBranchSource.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Balazs Vagvolgyi
7  Created on: 2007
8 
9  (C) Copyright 2006-2007 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _svlStreamBranchSource_h
23 #define _svlStreamBranchSource_h
24 
27 
28 // Always include last!
30 
31 
33 {
34 friend class svlStreamManager;
35 friend class svlFilterOutput;
36 friend class svlStreamProc;
37 
38 private:
39  svlStreamBranchSource(svlStreamType type, unsigned int buffersize);
42 
43  int Initialize(svlSample* &syncOutput);
44  int Process(svlProcInfo* procInfo, svlSample* &syncOutput);
45 
46  static bool IsTypeSupported(svlStreamType type);
47  void SetInput(svlSample* syncInput);
48  void PushSample(const svlSample* syncInput);
49 
50  bool InputBlocked;
51  svlSampleQueue SampleQueue;
52  svlSample* OutputSample;
53 
54 public:
55  int GetBufferUsage();
56  double GetBufferUsageRatio();
57  unsigned int GetDroppedSampleCount();
58  int BlockInput(bool block);
59 };
60 
61 #endif // _svlStreamBranchSource_h
62 
svlStreamType
Definition: svlDefinitions.h:193
Definition: svlFilterSourceBase.h:38
void Initialize(void)
unsigned int GetDroppedSampleCount()
double GetBufferUsageRatio()
Definition: svlStreamProc.h:31
Macros to export the symbols of cisstStereoVision (in a Dll).
Definition: svlSampleQueue.h:33
Definition: svlProcInfo.h:33
Definition: svlStreamBranchSource.h:32
Definition: svlFilterOutput.h:35
Definition: svlStreamManager.h:42
int BlockInput(bool block)
Definition: svlSample.h:31