Changeset 608 in 3DVCSoftware for trunk/source/Lib/TLibVideoIO/TVideoIOYuv.h
- Timestamp:
- 1 Sep 2013, 22:47:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibVideoIO/TVideoIOYuv.h
r296 r608 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 2, ITU/ISO/IEC6 * Copyright (c) 2010-2013, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 42 42 #include <fstream> 43 43 #include <iostream> 44 #include " ../TLibCommon/CommonDef.h"45 #include " ../TLibCommon/TComPicYuv.h"44 #include "TLibCommon/CommonDef.h" 45 #include "TLibCommon/TComPicYuv.h" 46 46 47 47 using namespace std; … … 56 56 private: 57 57 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 60 62 61 63 public: … … 63 65 virtual ~TVideoIOYuv() {} 64 66 65 Void open ( char* pchFile, Bool bWriteMode, unsigned int fileBitDepth, unsigned int internalBitDepth); ///< open or create file67 Void open ( Char* pchFile, Bool bWriteMode, Int fileBitDepthY, Int fileBitDepthC, Int internalBitDepthY, Int internalBitDepthC ); ///< open or create file 66 68 Void close (); ///< close file 67 69 68 void skipFrames( unsigned int numFrames, unsigned int width, unsigned int height);70 void skipFrames(UInt numFrames, UInt width, UInt height); 69 71 70 bool read ( TComPicYuv* pPicYuv, Int aiPad[2], Bool bRewind = false); ///< read one YUV frame with padding parameter71 Bool write( TComPicYuv* pPicYuv, Int c ropLeft=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 ); 72 74 73 bool isEof (); ///< check for end-of-file74 bool isFail(); ///< check for failure75 Bool isEof (); ///< check for end-of-file 76 Bool isFail(); ///< check for failure 75 77 76 78 };
Note: See TracChangeset for help on using the changeset viewer.