Changeset 608 in 3DVCSoftware for trunk/source/Lib/TLibVideoIO/TVideoIOYuv.h


Ignore:
Timestamp:
1 Sep 2013, 22:47:26 (11 years ago)
Author:
tech
Message:

Merged DEV-2.0-dev0@604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibVideoIO/TVideoIOYuv.h

    r296 r608  
    44 * granted under this license. 
    55 *
    6  * Copyright (c) 2010-2012, ITU/ISO/IEC
     6 * Copyright (c) 2010-2013, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    4242#include <fstream>
    4343#include <iostream>
    44 #include "../TLibCommon/CommonDef.h"
    45 #include "../TLibCommon/TComPicYuv.h"
     44#include "TLibCommon/CommonDef.h"
     45#include "TLibCommon/TComPicYuv.h"
    4646
    4747using namespace std;
     
    5656private:
    5757  fstream   m_cHandle;                                      ///< file handle
    58   unsigned int m_fileBitdepth; ///< bitdepth of input/output video file
    59   int m_bitdepthShift;  ///< number of bits to increase or decrease image by before/after write/read
     58  Int m_fileBitDepthY; ///< bitdepth of input/output video file luma component
     59  Int m_fileBitDepthC; ///< bitdepth of input/output video file chroma component
     60  Int m_bitDepthShiftY;  ///< number of bits to increase or decrease luma by before/after write/read
     61  Int m_bitDepthShiftC;  ///< number of bits to increase or decrease chroma by before/after write/read
    6062 
    6163public:
     
    6365  virtual ~TVideoIOYuv()  {}
    6466 
    65   Void  open  ( char* pchFile, Bool bWriteMode, unsigned int fileBitDepth, unsigned int internalBitDepth ); ///< open or create file
     67  Void  open  ( Char* pchFile, Bool bWriteMode, Int fileBitDepthY, Int fileBitDepthC, Int internalBitDepthY, Int internalBitDepthC ); ///< open or create file
    6668  Void  close ();                                           ///< close file
    6769
    68   void skipFrames(unsigned int numFrames, unsigned int width, unsigned int height);
     70  void skipFrames(UInt numFrames, UInt width, UInt height);
    6971 
    70   bool  read  ( TComPicYuv*   pPicYuv, Int aiPad[2], Bool bRewind = false );     ///< read  one YUV frame with padding parameter
    71   Bool  write( TComPicYuv*    pPicYuv, Int cropLeft=0, Int cropRight=0, Int cropTop=0, Int cropBottom=0 );
     72  Bool  read  ( TComPicYuv*   pPicYuv, Int aiPad[2] );     ///< read  one YUV frame with padding parameter
     73  Bool  write( TComPicYuv*    pPicYuv, Int confLeft=0, Int confRight=0, Int confTop=0, Int confBottom=0 );
    7274 
    73   bool  isEof ();                                           ///< check for end-of-file
    74   bool  isFail();                                           ///< check for failure
     75  Bool  isEof ();                                           ///< check for end-of-file
     76  Bool  isFail();                                           ///< check for failure
    7577 
    7678};
Note: See TracChangeset for help on using the changeset viewer.