Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/NALread.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibDecoder/NALread.h
r1179 r1313 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 34 34 /** 35 35 \file NALread.h 36 \brief reading fun tionality for NAL units36 \brief reading functionality for NAL units 37 37 */ 38 38 39 39 #pragma once 40 40 41 #include "../TLibCommon/TypeDef.h" 42 #include "../TLibCommon/TComBitStream.h" 43 #include "../TLibCommon/NAL.h" 44 41 #ifndef __NALREAD__ 42 #define __NALREAD__ 43 #include "TLibCommon/CommonDef.h" 44 #include "TLibCommon/TComBitStream.h" 45 #include "TLibCommon/NAL.h" 45 46 //! \ingroup TLibDecoder 46 47 //! \{ … … 50 51 * bitstream object. 51 52 */ 52 structInputNALUnit : public NALUnit53 class InputNALUnit : public NALUnit 53 54 { 54 InputNALUnit() : m_Bitstream(0) {};55 ~InputNALUnit() { delete m_Bitstream; }55 private: 56 TComInputBitstream m_Bitstream; 56 57 57 TComInputBitstream* m_Bitstream; 58 public: 59 InputNALUnit(const InputNALUnit &src) : NALUnit(src), m_Bitstream(src.m_Bitstream) {}; 60 InputNALUnit() : m_Bitstream() {}; 61 virtual ~InputNALUnit() { } 62 const TComInputBitstream &getBitstream() const { return m_Bitstream; } 63 TComInputBitstream &getBitstream() { return m_Bitstream; } 58 64 }; 59 65 60 void read(InputNALUnit& nalu, std::vector<uint8_t>& nalUnitBuf); 66 Void read(InputNALUnit& nalu); 67 Void readNalUnitHeader(InputNALUnit& nalu); 61 68 62 69 //! \} 70 71 #endif
Note: See TracChangeset for help on using the changeset viewer.