亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? commontypes.h

?? JMVM MPEG MVC/3DAV 測試平臺 國際通用標準
?? H
字號:
/*
********************************************************************************

NOTE - One of the two copyright statements below may be chosen
       that applies for the software.

********************************************************************************

This software module was originally developed by

Heiko Schwarz    (Fraunhofer HHI),
Tobias Hinz      (Fraunhofer HHI),
Karsten Suehring (Fraunhofer HHI)

in the course of development of the ISO/IEC 14496-10:2005 Amd.1 (Scalable Video
Coding) for reference purposes and its performance may not have been optimized.
This software module is an implementation of one or more tools as specified by
the ISO/IEC 14496-10:2005 Amd.1 (Scalable Video Coding).

Those intending to use this software module in products are advised that its
use may infringe existing patents. ISO/IEC have no liability for use of this
software module or modifications thereof.

Assurance that the originally developed software module can be used
(1) in the ISO/IEC 14496-10:2005 Amd.1 (Scalable Video Coding) once the
ISO/IEC 14496-10:2005 Amd.1 (Scalable Video Coding) has been adopted; and
(2) to develop the ISO/IEC 14496-10:2005 Amd.1 (Scalable Video Coding): 

To the extent that Fraunhofer HHI owns patent rights that would be required to
make, use, or sell the originally developed software module or portions thereof
included in the ISO/IEC 14496-10:2005 Amd.1 (Scalable Video Coding) in a
conforming product, Fraunhofer HHI will assure the ISO/IEC that it is willing
to negotiate licenses under reasonable and non-discriminatory terms and
conditions with applicants throughout the world.

Fraunhofer HHI retains full right to modify and use the code for its own
purpose, assign or donate the code to a third party and to inhibit third
parties from using the code for products that do not conform to MPEG-related
ITU Recommendations and/or ISO/IEC International Standards. 

This copyright notice must be included in all copies or derivative works.
Copyright (c) ISO/IEC 2005. 

********************************************************************************

COPYRIGHT AND WARRANTY INFORMATION

Copyright 2005, International Telecommunications Union, Geneva

The Fraunhofer HHI hereby donate this source code to the ITU, with the following
understanding:
    1. Fraunhofer HHI retain the right to do whatever they wish with the
       contributed source code, without limit.
    2. Fraunhofer HHI retain full patent rights (if any exist) in the technical
       content of techniques and algorithms herein.
    3. The ITU shall make this code available to anyone, free of license or
       royalty fees.

DISCLAIMER OF WARRANTY

These software programs are available to the user without any license fee or
royalty on an "as is" basis. The ITU disclaims any and all warranties, whether
express, implied, or statutory, including any implied warranties of
merchantability or of fitness for a particular purpose. In no event shall the
contributor or the ITU be liable for any incidental, punitive, or consequential
damages of any kind whatsoever arising from the use of these programs.

This disclaimer of warranty extends to the user of these programs and user's
customers, employees, agents, transferees, successors, and assigns.

The ITU does not represent or warrant that the programs furnished hereunder are
free of infringement of any third-party patents. Commercial implementations of
ITU-T Recommendations, including shareware, may be subject to royalty fees to
patent holders. Information regarding the ITU-T patent policy is available from 
the ITU Web site at http://www.itu.int.

THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE ITU-T PATENT POLICY.

********************************************************************************
*/




#if !defined(AFX_COMMONTYPES_H__CBFE313E_2382_4ECC_9D41_416668E3507D__INCLUDED_)
#define AFX_COMMONTYPES_H__CBFE313E_2382_4ECC_9D41_416668E3507D__INCLUDED_



H264AVC_NAMESPACE_BEGIN


class CostData
{
public:
  CostData( Double fRdCost = 0.0, UInt uiAddBits = 0, UInt uiBits = 0, UInt uiYDist = 0, UInt uiUDist = 0, UInt uiVDist = 0):  m_fRdCost(fRdCost),  m_uiAddBits(uiAddBits), m_uiBits(uiBits),  m_uiYDist(uiYDist),  m_uiUDist(uiUDist),  m_uiVDist(uiVDist) {}
  virtual ~CostData() {}

  CostData( const CostData& rcCostData)  { CostData( rcCostData.m_fRdCost, rcCostData.m_uiBits, rcCostData.m_uiYDist, rcCostData.m_uiUDist, rcCostData.m_uiVDist); }

  Void add( const CostData& rcCostData ) const
  {
    const_cast<CostData*>(this)->m_uiYDist += rcCostData.m_uiYDist;
    const_cast<CostData*>(this)->m_uiUDist += rcCostData.m_uiUDist;
    const_cast<CostData*>(this)->m_uiVDist += rcCostData.m_uiVDist;
    const_cast<CostData*>(this)->m_uiBits  += rcCostData.m_uiBits;
    const_cast<CostData*>(this)->m_fRdCost += rcCostData.m_fRdCost;
  }
  const UInt   distY()      const { return m_uiYDist; }
  const UInt   distU()      const { return m_uiUDist; }
  const UInt   distV()      const { return m_uiVDist; }
  const UInt   bits()       const { return m_uiBits; }
  const UInt   coeffCost()  const { return m_uiCoeffCost; }
  const Double rdCost()     const { return m_fRdCost; }
  const UInt&  addBits()    const { return m_uiAddBits; }

  UInt&   distY()       { return m_uiYDist; }
  UInt&   distU()       { return m_uiUDist; }
  UInt&   distV()       { return m_uiVDist; }
  UInt&   bits()        { return m_uiBits; }
  UInt&   addBits()     { return m_uiAddBits; }
  UInt&   coeffCost()   { return m_uiCoeffCost; }
  Double& rdCost()      { return m_fRdCost; }

  Bool operator < ( const CostData& rcCostData) { return m_fRdCost < rcCostData.m_fRdCost; }
  Bool operator > ( const CostData& rcCostData) { return m_fRdCost > rcCostData.m_fRdCost; }
  CostData& operator=( const CostData& rcCostData)
  {
    m_fRdCost       = rcCostData.m_fRdCost;
    m_uiCoeffCost   = rcCostData.m_uiCoeffCost;
    m_uiAddBits     = rcCostData.m_uiAddBits;
    m_uiBits        = rcCostData.m_uiBits;
    m_uiVDist       = rcCostData.m_uiVDist;
    m_uiUDist       = rcCostData.m_uiUDist;
    m_uiYDist       = rcCostData.m_uiYDist;
    return *this;
  }
  Void clear()
  {
    m_fRdCost     = DOUBLE_MAX;
    m_uiAddBits    = 0;
    m_uiBits       = 0;
    m_uiYDist      = 0;
    m_uiUDist      = 0;
    m_uiVDist      = 0;
    m_uiCoeffCost  = 0;
  }
protected:
  Double m_fRdCost;
  UInt   m_uiAddBits;
  UInt   m_uiBits;
  UInt   m_uiYDist;
  UInt   m_uiUDist;
  UInt   m_uiVDist;
  UInt   m_uiCoeffCost;
};


const UChar g_aucConvertBlockOrder[17] =
{
   0,  1,  4,  5,
   2,  3,  6,  7,
   8,  9, 12, 13,
  10, 11, 14, 15, 0xff,
};

// TMM_ESS {
const UChar g_aucConvertTo8x8Idx[16]=
{		
    0 ,0 ,1 , 1,
    0 ,0 ,1 , 1,
    2 ,2 ,3 , 3,
    2 ,2 ,3 ,3
};

const UChar g_aucConvertTo4x4Idx[4]=
{  0,2,8,10 };
// TMM_ESS }

class LumaIdx
{
protected:
  LumaIdx( Int iIdx = 0 )          : m_iIdx( iIdx )       {}

public:
  __inline LumaIdx   operator + ( SParIdx4x4     eSParIdx )  const { return LumaIdx( m_iIdx + eSParIdx ); }
  __inline LumaIdx   operator + ( NeighbourBlock eBlock )    const { return LumaIdx( m_iIdx + eBlock ); }
  __inline LumaIdx   operator + ( ParIdx8x8      eParIdx )   const { return LumaIdx( m_iIdx + eParIdx ); }

  operator Int()                                    const { return m_iIdx;    }
  Int x()                                           const { return m_iIdx&3;  }
  Int y()                                           const { return m_iIdx>>2; }
  Int b4x4()                                        const { return m_iIdx;    }

protected:
  Int m_iIdx;
};


class ChromaIdx
{
protected:
  ChromaIdx( Int iIdx = 0 ) : m_iIdx( iIdx )              {}
public:
  operator Int()                                    const { return m_iIdx;        }
  ChromaIdx   operator + ( Int i )                  const { return ChromaIdx( m_iIdx + i ); }
  ChromaIdx   operator - ( Int i )                  const { return ChromaIdx( m_iIdx - i ); }
  ChromaIdx&  operator+= ( Int i )                        { m_iIdx+=i; return *this; }
  ChromaIdx&  operator-= ( Int i )                        { m_iIdx-=i; return *this; }
  Int x()                                           const { return m_iIdx&1;      }
  Int y()                                           const { return (m_iIdx>>1)&1; }
  Int plane()                                       const { return m_iIdx>>2;     }

protected:
  Int m_iIdx;
};


class B8x8Idx :
public LumaIdx
{
public:
  B8x8Idx( Par8x8 ePar8x8 ) : m_iSIdx( ePar8x8<<2 )       { convert(); }
  B8x8Idx()  : m_iSIdx( 0 )                               { convert(); }
  B8x8Idx  operator + (Int i)                       const { return B8x8Idx( (m_iSIdx>>2) + i ); }
  B8x8Idx& operator +=(Int i)                             { m_iSIdx+=i<<2; convert(); return *this; }
  B8x8Idx& operator ++(Int)                               { m_iSIdx+=4;    convert(); return *this; }
  B8x8Idx& operator --(Int)                               { m_iSIdx-=4;    convert(); return *this; }
  Bool      isLegal()                               const { return m_iSIdx < 16; }
  const Int xxxgetSIdx()                            const { return m_iSIdx; }
  ParIdx8x8 b8x8()                                  const { return ParIdx8x8(m_iIdx); }
  Par8x8    b8x8Index()                             const { return Par8x8(m_iSIdx>>2); }

protected:
  Int convert()                                           { return m_iIdx = g_aucConvertBlockOrder[m_iSIdx]; }
  B8x8Idx(Int i) : m_iSIdx( i<<2 )                        { convert(); }

protected:
  Int m_iSIdx;
};


class B4x4Idx :
public LumaIdx
{
public:
  B4x4Idx( UInt ui4x4Idx = 0)  : LumaIdx( ui4x4Idx )      {}
  B4x4Idx& operator ++(Int)                               { m_iIdx++; return *this; }
  Bool isLegal()                                    const { return m_iIdx < 16; }
};


class S4x4Idx :
public LumaIdx
{
public:
  S4x4Idx( B8x8Idx& rcB8x8Idx) : m_iSIdx( rcB8x8Idx.xxxgetSIdx() )  { convert(); }
  S4x4Idx()                    : m_iSIdx( 0 )                       { convert(); }
  S4x4Idx& operator ++(Int)                                         { m_iSIdx++; convert(); return *this; }
  Bool isLegal()                                              const { return m_iSIdx <16; }
  Bool isLegal( B8x8Idx& rcB8x8Idx )                          const { return m_iSIdx <(4+rcB8x8Idx.xxxgetSIdx()); }
protected:
  Void convert()                                                    { m_iIdx = g_aucConvertBlockOrder[m_iSIdx]; }

protected:
  Int m_iSIdx;
};


class CIdx :
public ChromaIdx
{
public:
  CIdx( UInt uiIdx = 0)     : ChromaIdx( uiIdx )      {}
  CIdx& operator ++(Int)                              { m_iIdx++; return *this; }
  Bool isLegal()                                const { return m_iIdx < 8; }
  Bool isLegal( Int i)                          const { return m_iIdx < i; }
};



template< class T, UInt uiMemSize = 64 >
class RefPicList
{
public:
  RefPicList() : m_uiBufSize( 0 ), m_uiSize( 0 )
  {
  }
  Void reset( UInt uiBufSize = uiMemSize )
  {
    AOT_DBG( uiBufSize > uiMemSize );
    m_uiBufSize = uiBufSize;
    m_uiSize    = 0;
  }
  ErrVal restrict( UInt uiBufSize )
  {
    ROT( uiBufSize > m_uiSize );
    m_uiBufSize = m_uiSize = uiBufSize;
    return Err::m_nOK;
  }
  Void add( const T& rcT )
  {
    AOT_DBG( full() );
    m_acT[ m_uiSize++ ] = rcT;
  }
  T& getElementAndRemove( UInt uiIPos, UInt uiRPos = MSYS_UINT_MAX )
  {
    AOT_DBG( uiIPos >= m_uiBufSize );
    AOT_DBG( uiIPos >  m_uiSize    );
    AOT_DBG( uiIPos >  uiRPos      );
    if( uiIPos != uiRPos )
    {
      if( uiRPos >= m_uiSize && ! full() )
      {
        m_uiSize++;
      }
      ::memmove( &(m_acT[uiIPos+1]), &(m_acT[uiIPos]), ( min( uiRPos, m_uiSize-1 ) - uiIPos ) * sizeof(T) );
    }
    return m_acT[uiIPos];
  }
  T& next()
  {
    AOT_DBG( full() );
    return m_acT[ m_uiSize++ ];
  }
  Bool full() const
  {
    return ( m_uiSize >= m_uiBufSize );
  }
  UInt size() const
  {
    return m_uiSize;
  }
  UInt bufSize() const
  {
    return m_uiBufSize;
  }
  const T& get( UInt uiPos ) const
  {
    AOT_DBG( uiPos >= m_uiSize );
    return m_acT[ uiPos ];
  }

  const SChar find( const T& rcT ) const
  {
    SChar nMax = size();
    for( SChar n = 0; n < nMax; n++ )
    {
      if( rcT == m_acT[n] )
      {
        return n + 1;
      }
    }
    return 0;
  }
  Void switchFirstEntries()
  {
    AOT_DBG( m_uiSize < 2 );
    T cT0old = m_acT[0];
    m_acT[0] = m_acT[1];
    m_acT[1] = cT0old;
  }
  T* begin()
  {
    return m_acT;
  }
  T* end()
  {
    return m_acT + m_uiSize;
  }

private:
  UInt  m_uiBufSize;
  UInt  m_uiSize;
  T     m_acT[uiMemSize];
};



H264AVC_NAMESPACE_END


#endif //!defined(AFX_COMMONTYPES_H__CBFE313E_2382_4ECC_9D41_416668E3507D__INCLUDED_)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线播放不卡一区| 免费成人在线观看视频| 久久久久久久久久电影| 欧洲人成人精品| 国产夫妻精品视频| 亚洲精品免费看| 26uuu色噜噜精品一区| 欧美精品一二三| 色哟哟精品一区| 国产成人免费视频一区| 麻豆精品久久精品色综合| 一区二区三区高清在线| 中文字幕一区二区三| 日本一区二区三区dvd视频在线| 欧美美女黄视频| 欧美亚州韩日在线看免费版国语版| 成人国产精品免费观看动漫| 久久se这里有精品| 蜜桃视频一区二区三区在线观看| 亚洲一区二区三区视频在线 | 国模无码大尺度一区二区三区| 香蕉久久夜色精品国产使用方法 | 欧美一区二区播放| 欧美日韩免费视频| 欧洲日韩一区二区三区| 在线观看亚洲一区| 欧美少妇xxx| 欧美日韩精品一区二区| 91传媒视频在线播放| 在线国产亚洲欧美| 91精品免费在线| 久久久久久**毛片大全| 国产亚洲精品免费| 欧美极品少妇xxxxⅹ高跟鞋| 国产亚洲一本大道中文在线| 久久精品免费在线观看| 中文字幕在线一区| 亚洲成人777| 蜜桃av一区二区| 午夜精品一区二区三区电影天堂| 夜夜嗨av一区二区三区四季av| 亚洲欧美视频在线观看视频| 亚洲妇女屁股眼交7| 九九精品视频在线看| 成人av动漫在线| 成年人国产精品| 国产成人精品午夜视频免费 | 精品粉嫩超白一线天av| 精品噜噜噜噜久久久久久久久试看| 日本一区二区三区高清不卡| 亚洲影院久久精品| 久久99国产精品麻豆| 成人免费黄色在线| 欧美色综合天天久久综合精品| 欧美刺激脚交jootjob| 亚洲国产精品激情在线观看| 亚洲成人激情av| 国产福利视频一区二区三区| 色欲综合视频天天天| 欧美成人在线直播| 亚洲乱码国产乱码精品精小说| 2欧美一区二区三区在线观看视频| 7777精品伊人久久久大香线蕉最新版| 国产欧美一区二区三区网站| 午夜精品久久久久久久久久| 国产成人av网站| 欧美成人一级视频| 天堂精品中文字幕在线| 成人国产在线观看| 久久综合色综合88| 丝袜诱惑亚洲看片| 在线一区二区三区| 中文天堂在线一区| 国产一区二区三区精品视频| 欧美日本在线观看| 亚洲欧美区自拍先锋| 成人午夜免费av| 中文字幕不卡的av| 国产传媒欧美日韩成人| 欧美一级片免费看| 麻豆成人久久精品二区三区红 | 欧美三级日本三级少妇99| 综合电影一区二区三区 | 激情综合网av| 99精品久久99久久久久| 精品国产一二三区| 美女视频黄 久久| 欧美男女性生活在线直播观看| 亚洲国产日韩a在线播放 | 狠狠色狠狠色综合系列| 日韩一级片网站| 美女视频黄 久久| 精品区一区二区| 国产成人精品亚洲777人妖| 日本一区二区视频在线观看| av电影一区二区| 亚洲女人****多毛耸耸8| 欧美亚洲一区二区三区四区| 香蕉成人啪国产精品视频综合网 | 91天堂素人约啪| 一二三区精品福利视频| 91麻豆精品国产无毒不卡在线观看| 麻豆国产一区二区| 日本一区二区久久| 欧美在线你懂得| 日本伊人色综合网| 国产女同性恋一区二区| 一本久久综合亚洲鲁鲁五月天 | 国产精品美日韩| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 日本在线不卡视频| 国产三级欧美三级日产三级99 | 精品国产露脸精彩对白| 91视频你懂的| 麻豆精品久久精品色综合| 久久久久久久久久久久久久久99 | 欧美国产日韩亚洲一区| 精品成人a区在线观看| 欧美日韩国产片| 欧美日韩精品一区二区三区| 色婷婷精品久久二区二区蜜臂av| 国产999精品久久久久久绿帽| 国产一区二区三区黄视频| 蜜臀av亚洲一区中文字幕| 日本成人超碰在线观看| 国产精品久久久久久一区二区三区| 国产精品66部| 日本v片在线高清不卡在线观看| 亚洲欧洲精品一区二区三区不卡 | 久久精品人人爽人人爽| 欧美一级理论性理论a| 欧美女孩性生活视频| 欧美在线不卡视频| 91视视频在线直接观看在线看网页在线看| 久久99久久99| 蜜臀99久久精品久久久久久软件| 亚洲国产一区视频| 亚洲综合一二三区| 亚洲精品乱码久久久久| 亚洲欧洲成人精品av97| 国产日韩v精品一区二区| 欧美精品一区二区三区蜜桃| 欧美一区二区女人| 日韩一级黄色大片| 51精品久久久久久久蜜臀| 欧美日韩成人在线一区| 欧美日韩日本视频| 欧美丰满少妇xxxxx高潮对白| 色妹子一区二区| 欧美性生交片4| 精品1区2区3区| 欧美一区二区三区免费| 日韩精品一区二区三区三区免费| 精品国产制服丝袜高跟| 久久影院电视剧免费观看| 国产欧美精品国产国产专区| 国产精品高清亚洲| 亚洲免费在线视频一区 二区| 国产精品视频免费| 91精品国产免费| 欧美一区二区三区男人的天堂| 欧美综合欧美视频| 99久久国产综合色|国产精品| 精品在线亚洲视频| 国内精品写真在线观看| 精品一区二区在线观看| 国模无码大尺度一区二区三区| 国内成+人亚洲+欧美+综合在线| 成人一级片在线观看| 色综合一个色综合亚洲| 欧美日韩国产一区二区三区地区| 91精品国产免费| 欧美激情在线观看视频免费| 亚洲一级二级三级在线免费观看| 欧美aaa在线| 91女神在线视频| 制服.丝袜.亚洲.中文.综合| 2021国产精品久久精品| 一区二区三区欧美在线观看| 日韩av在线免费观看不卡| 成人综合激情网| 欧美一级片在线| 一区二区在线观看不卡| 国内精品写真在线观看| 欧美在线视频不卡| 国产精品女主播在线观看| 婷婷久久综合九色综合伊人色| 成人小视频在线观看| 91麻豆精品国产91| 亚洲精品视频免费观看| 国产99精品国产| 欧美一区二区福利在线| 亚洲男人天堂av| 成人免费观看av| 26uuu欧美日本| 免费人成黄页网站在线一区二区| 色爱区综合激月婷婷| 国产精品你懂的在线欣赏| 九一久久久久久| 精品少妇一区二区三区在线视频|