VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNvQueue.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
11 #ifndef DtNvQueue_H_
12 #define DtNvQueue_H_
13 
15 #include <stdlib.h>
16 
17 namespace makVrv
18 {
21  template<class T>
22  class DtNvQueue
23  {
24  public:
26  DtNvQueue();
27 
29  virtual ~DtNvQueue();
30 
32  void deinitialize();
33 
35  bool initialize(T *pItems, unsigned int uSize);
36 
38  T* available();
39 
41  T* pending();
42 
44  unsigned int size();
45 
46  protected:
47 
49  T * * myBuffer;
50 
52  unsigned int mySize;
53 
55  unsigned int myPendingCount;
56 
58  unsigned int myAvailableIdx;
59 
61  unsigned int myPendingIdx;
62  };
63 }
64 #define DtNvQueue_INL_
65 #include "DtNvQueue.inl"
66 #undef DtNvQueue_INL_
67 
68 #endif
unsigned int myAvailableIdx
available item index
Definition: DtNvQueue.h:58
Nvidia encoding queue.
Definition: DtNvQueue.h:22
void deinitialize()
un-initialized the encoding queue
T * pending()
get pending item from queue
T * available()
get available item from queue
unsigned int size()
get size from queue
virtual ~DtNvQueue()
DTOR.
bool initialize(T *pItems, unsigned int uSize)
initialized the encoding queue
unsigned int mySize
buffer queue size
Definition: DtNvQueue.h:52
unsigned int myPendingIdx
pending item index
Definition: DtNvQueue.h:61
Contains DLL export macros.
T ** myBuffer
item buffer
Definition: DtNvQueue.h:49
unsigned int myPendingCount
item pending count
Definition: DtNvQueue.h:55

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)