ChunkAdapterU3V.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2013 by Groget
00003 //  Project:  GenApi
00004 //    Author:  Jan Becvar
00005 //  $Header$
00006 //
00007 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00008 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00009 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00010 //  (http://www.genicam.org) for a full copy.
00011 //
00012 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00013 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00014 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00015 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00016 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00017 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00018 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00019 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00020 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00021 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00022 //  POSSIBILITY OF SUCH DAMAGE.
00023 //-----------------------------------------------------------------------------
00029 #ifndef GENAPI_CHUNKADAPTERU3V_H
00030 #define GENAPI_CHUNKADAPTERU3V_H
00031 
00032 #include <GenApi/ChunkAdapter.h>
00033 
00034 namespace GENAPI_NAMESPACE
00035 {
00036 
00037     /* ------------------------------------------- */
00038     // Declartion of USB3 Vision Chunk trailer
00039 
00040     // make sure everything is properly packed
00041 #   pragma pack(push, 1)
00042 
00044     typedef struct U3V_CHUNK_TRAILER
00045     {
00046         uint32_t ChunkID;
00047         uint32_t ChunkLength;
00048     } U3V_CHUNK_TRAILER;
00049 
00050     // restore the previous packing
00051 #   pragma pack(pop)
00052     /* ------------------------------------------- */
00053 
00054 
00056     class GENAPI_DECL CChunkAdapterU3V : public  CChunkAdapter
00057     {
00058 
00059     public:
00061         CChunkAdapterU3V(INodeMap* pNodeMap = NULL, int64_t MaxChunkCacheSize = -1);
00062 
00064         virtual ~CChunkAdapterU3V();
00065 
00067         virtual bool CheckBufferLayout(uint8_t *pBuffer, int64_t BufferLength);
00068 
00070         virtual void AttachBuffer(uint8_t *pBuffer, int64_t BufferLength, AttachStatistics_t *pAttachStatistics = NULL);
00071 
00072     };
00073 
00074 }
00075 
00076 #endif // GENAPI_CHUNKADAPTERU3V_H


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02