source: 3DVCSoftware/trunk/source/Lib/TLibCommon/TComMVDRefData.h @ 21

Last change on this file since 21 was 5, checked in by hhi, 13 years ago

Clean version with cfg-files

  • Property svn:eol-style set to native
File size: 5.3 KB
Line 
1/* The copyright in this software is being made available under the BSD
2 * License, included below. This software may be subject to other third party
3 * and contributor rights, including patent rights, and no such rights are
4 * granted under this license.
5 *
6 * Copyright (c) 2010-2011, ISO/IEC
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 *  * Redistributions of source code must retain the above copyright notice,
13 *    this list of conditions and the following disclaimer.
14 *  * Redistributions in binary form must reproduce the above copyright notice,
15 *    this list of conditions and the following disclaimer in the documentation
16 *    and/or other materials provided with the distribution.
17 *  * Neither the name of the ISO/IEC nor the names of its contributors may
18 *    be used to endorse or promote products derived from this software without
19 *    specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34
35
36#ifndef __TCOMMVDREFDATA__
37#define __TCOMMVDREFDATA__
38
39
40// Include files
41
42#include "CommonDef.h"
43#include "TComPicYuv.h"
44#include <vector>
45#if HHI_VSO
46// ====================================================================================================================
47// Class definition
48// ====================================================================================================================
49
50
51class TComMVDRefData
52{
53private:
54  // PicYuvs
55  TComPicYuv* m_apcVideoOrg[3];
56  TComPicYuv* m_apcDepthOrg[3];
57  TComPicYuv* m_apcVideoRec[3];
58  TComPicYuv* m_apcDepthRec[3];
59
60  // LUTs
61  Double**    m_adBaseViewShiftLUT[3];
62  Int**       m_aiBaseViewShiftLUT[3];
63
64  //PicYuvs
65  std::vector<TComPicYuv*> m_apcExternalReferenceViews;
66
67  // LUTs
68  Double***   m_adERViewShiftLUT;
69  Int***      m_aiERViewShiftLUT;
70
71  // Indices
72  std::vector<Int> m_aiBaseViewRefInd;
73  std::vector<Int> m_aiExtViewRefInd;
74  std::vector<Int> m_aiExtViewRefLUTInd;
75
76public:
77  TComMVDRefData();
78
79  //  PicYuvs
80  TComPicYuv* getPicYuvRecVideo   ( InterViewReference eIVRef )  { return m_apcVideoRec[eIVRef]; };
81  TComPicYuv* getPicYuvOrgVideo   ( InterViewReference eIVRef )  { return m_apcVideoOrg[eIVRef]; };
82  TComPicYuv* getPicYuvRecDepth   ( InterViewReference eIVRef )  { return m_apcDepthRec[eIVRef]; };
83  TComPicYuv* getPicYuvOrgDepth   ( InterViewReference eIVRef )  { return m_apcDepthOrg[eIVRef]; };
84  Void        setPicYuvBaseView   ( InterViewReference eView, Bool bDepth, TComPicYuv* pcOrgView, TComPicYuv* pcRecView );
85
86
87  TComPicYuv* getPicYuvVideo      ( ) { return getPicYuvOrgVideo( CURRVIEW ); /*return getRecVideo( CURRVIEW ) ?  getRecVideo( CURRVIEW ) : getOrgVideo( CURRVIEW ); */ };
88  //TComPicYuv* getVideoData( ) { return getRecVideo( CURRVIEW ) ?  getRecVideo( CURRVIEW ) : getOrgVideo( CURRVIEW );  };
89
90  // Luts
91  Int**       getShiftLUTLBaseView       ( InterViewReference eIVRef ) { return m_aiBaseViewShiftLUT[eIVRef]; };
92  Double**    getShiftLUTDBaseView       ( InterViewReference eIVRef ) { return m_adBaseViewShiftLUT[eIVRef]; };
93  Void        setShiftLUTsBaseView       ( InterViewReference eView, Double** adInLut, Int** alInLut );
94
95//  Void render( TComPicYuv* pOut ) /*Void render( TComPicYuv* pIn, TComPicYuv* pOut, TComPicYuv* pDepth, Long** aalLUT ) */;
96
97
98  //  PicYuvs
99  TComPicYuv* getPicYuvERView   ( UInt uiReferenceNum )              { return m_apcExternalReferenceViews[uiReferenceNum]; };
100  Void        setPicYuvERViews  ( std::vector<TComPicYuv*> papcIn  ) { m_apcExternalReferenceViews = papcIn; };
101
102  //  LUTS
103  Int**       getShiftLUTIERView         ( UInt uiTargetViewNum )      { return (m_aiERViewShiftLUT)[uiTargetViewNum]; };
104  Double**    getShiftLUTDERView         ( UInt uiTargetViewNum )      { return (m_adERViewShiftLUT)[uiTargetViewNum]; };
105
106  Void        setShiftLUTsERView    ( Double*** adInLut, Int***   aiInLut) { m_aiERViewShiftLUT = aiInLut; m_adERViewShiftLUT = adInLut; };
107
108  // Set Indices of actually used references
109  Void setRefViewInd  ( std::vector<Int> aiBaseViewRef, std::vector<Int> aiEViewRef, std::vector<Int> aiEViewRefLut  ) { m_aiBaseViewRefInd = aiBaseViewRef, m_aiExtViewRefInd = aiEViewRef, m_aiExtViewRefLUTInd = aiEViewRefLut; }
110
111  // Get Reference Data
112  UInt getNumOfRefViews() { return (UInt) m_aiExtViewRefInd.size() + (UInt) m_aiBaseViewRefInd.size(); };
113  Void getRefPicYuvAndLUT     ( TComPicYuv**& rpacDistRefPicList, Int***& rppalShiftLut);
114  Void getRefPicYuvAndLUTMode1( TComPicYuv**& rpacDistRefPicList, Int***& rppaiShiftLut );
115
116}; // END CLASS DEFINITION TComMVDRefData
117#endif // HHI_VSO
118#endif // __TCOMMVDREFDATA__
119
120
121
Note: See TracBrowser for help on using the repository browser.