Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/NALread.h


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibDecoder/NALread.h

    r1179 r1313  
    44 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    3434/**
    3535 \file     NALread.h
    36  \brief    reading funtionality for NAL units
     36 \brief    reading functionality for NAL units
    3737 */
    3838
    3939#pragma once
    4040
    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"
    4546//! \ingroup TLibDecoder
    4647//! \{
     
    5051 * bitstream object.
    5152 */
    52 struct InputNALUnit : public NALUnit
     53class InputNALUnit : public NALUnit
    5354{
    54   InputNALUnit() : m_Bitstream(0) {};
    55   ~InputNALUnit() { delete m_Bitstream; }
     55  private:
     56    TComInputBitstream m_Bitstream;
    5657
    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; }
    5864};
    5965
    60 void read(InputNALUnit& nalu, std::vector<uint8_t>& nalUnitBuf);
     66Void read(InputNALUnit& nalu);
     67Void readNalUnitHeader(InputNALUnit& nalu);
    6168
    6269//! \}
     70
     71#endif
Note: See TracChangeset for help on using the changeset viewer.