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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? createrh264avcencoder.cpp

?? JMVM MPEG MVC/3DAV 測試平臺 國際通用標(biāo)準(zhǔn)
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/*
********************************************************************************

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.

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




#include "H264AVCEncoderLib.h"
#include "H264AVCEncoder.h"
#include "H264AVCCommonLib/MbData.h"
#include "H264AVCCommonLib/Frame.h"
#include "H264AVCCommonLib/FrameMng.h"
#include "BitWriteBuffer.h"
#include "H264AVCCommonLib/Transform.h"
#include "H264AVCCommonLib/YuvBufferCtrl.h"
#include "H264AVCCommonLib/QuarterPelFilter.h"
#include "H264AVCCommonLib/ParameterSetMng.h"
#include "H264AVCCommonLib/LoopFilter.h"
#include "H264AVCCommonLib/SampleWeighting.h"
#include "H264AVCCommonLib/PocCalculator.h"
#include "H264AVCCommonLib/ReconstructionBypass.h"
#include "SliceEncoder.h"
#include "UvlcWriter.h"
#include "MbCoder.h"
#include "MbEncoder.h"
#include "IntraPredictionSearch.h"
#include "CodingParameter.h"
#include "CabacWriter.h"
#include "NalUnitEncoder.h"
#include "Distortion.h"
#include "MotionEstimation.h"
#include "MotionEstimationQuarterPel.h"
#include "RateDistortion.h"
#include "GOPEncoder.h"
#include "ControlMngH264AVCEncoder.h"
#include "CreaterH264AVCEncoder.h"
#include "H264AVCCommonLib/TraceFile.h"
#include "FGSSubbandEncoder.h"
#include "PicEncoder.h"
#include "Multiview.h"



H264AVC_NAMESPACE_BEGIN



CreaterH264AVCEncoder::CreaterH264AVCEncoder():
  m_pcH264AVCEncoder      ( NULL ), 
  m_pcFrameMng            ( NULL ),
  m_pcSliceEncoder        ( NULL ),
  m_pcControlMng          ( NULL ),
  m_pcBitWriteBuffer      ( NULL ),
  m_pcNalUnitEncoder      ( NULL ),
  m_pcUvlcWriter          ( NULL ),
  m_pcUvlcTester          ( NULL ),
  m_pcMbCoder             ( NULL ),
  m_pcLoopFilter          ( NULL ),
  m_pcMbEncoder           ( NULL ),
  m_pcQuarterPelFilter    ( NULL ),
  m_pcCodingParameter     ( NULL ),
  m_pcParameterSetMng     ( NULL ),
  m_pcSampleWeighting     ( NULL ),
  m_pcCabacWriter         ( NULL ),
  m_pcXDistortion         ( NULL ),
  m_pcMotionEstimation    ( NULL ),
  m_pcRateDistortion      ( NULL ),
  m_pcHistory             ( NULL ),
  m_pcRQFGSEncoder        ( NULL ),
  m_pcPicEncoder          ( NULL ),
  m_bTraceEnable          ( true )
{
  ::memset( m_apcYuvFullPelBufferCtrl, 0x00, MAX_LAYERS*sizeof(Void*) );
  ::memset( m_apcYuvHalfPelBufferCtrl, 0x00, MAX_LAYERS*sizeof(Void*) );
  ::memset( m_apcPocCalculator,        0x00, MAX_LAYERS*sizeof(Void*) );
  ::memset( m_apcMCTFEncoder,          0x00, MAX_LAYERS*sizeof(Void*) );
  m_pcReconstructionBypass = NULL;
}


CreaterH264AVCEncoder::~CreaterH264AVCEncoder()
{

}

Bool
CreaterH264AVCEncoder::getScalableSeiMessage()
{
	return m_pcH264AVCEncoder->bGetScalableSeiMessage();
}

Void
CreaterH264AVCEncoder::SetVeryFirstCall()
{ 
	m_pcH264AVCEncoder->SetVeryFirstCall(); 
}

ErrVal
CreaterH264AVCEncoder::writeParameterSets( ExtBinDataAccessor* pcExtBinDataAccessor,
                                           Bool&               rbMoreSets )
{
  if( m_pcCodingParameter->getMVCmode() )
  {
    RNOK( m_pcPicEncoder->writeAndInitParameterSets( pcExtBinDataAccessor, rbMoreSets ) );
    m_pcH264AVCEncoder->setScalableSEIMessage(); // due to Nokia's (Ye-Kui's) weird implementation
    return Err::m_nOK;
  }
  RNOK( m_pcH264AVCEncoder->writeParameterSets( pcExtBinDataAccessor, rbMoreSets ) );
  return Err::m_nOK;
}
//JVT-W080
ErrVal
CreaterH264AVCEncoder::writePDSSEIMessage( ExtBinDataAccessor* pcExtBinDataAccessor
																				 , const UInt uiSPSId
																				 , const UInt uiNumView																				 
																				 , UInt* num_refs_list0_anc
																				 , UInt* num_refs_list1_anc 																	 
																				 , UInt* num_refs_list0_nonanc
																				 , UInt* num_refs_list1_nonanc 
																				 , UInt  PDSInitialDelayAnc
																				 , UInt  PDSInitialDelayNonAnc
																				 )
{
  RNOK( m_pcH264AVCEncoder->writePDSSEIMessage( pcExtBinDataAccessor
		                                          , uiSPSId
		                                          , uiNumView																							
																							, num_refs_list0_anc
																							, num_refs_list1_anc																		
																							, num_refs_list0_nonanc
																							, num_refs_list1_nonanc 
																							, PDSInitialDelayAnc
																							, PDSInitialDelayNonAnc
																							)
			);
	return Err::m_nOK;
}
//~JVT-W080

//{{Quality level estimation and modified truncation- JVTO044 and m12007
//France Telecom R&D-(nathalie.cammas@francetelecom.com)
ErrVal CreaterH264AVCEncoder::writeQualityLevelInfosSEI(ExtBinDataAccessor* pcExtBinDataAccessor,UInt* uiaQualityLevel, UInt *uiaDelta,UInt uiNumLevels, UInt uiLayer)
{
	RNOK( m_pcH264AVCEncoder->writeQualityLevelInfosSEI( pcExtBinDataAccessor, uiaQualityLevel,uiaDelta, uiNumLevels, uiLayer ) );
  return Err::m_nOK;
}
//}}Quality level estimation and modified truncation- JVTO044 and m12007

// SEI LSJ{
ErrVal CreaterH264AVCEncoder::writeNestingSEIMessage( ExtBinDataAccessor* pcExtBinDataAccessor )
{
  RNOK( m_pcH264AVCEncoder->writeNestingSEIMessage( pcExtBinDataAccessor, m_pcPicEncoder->dMVCGetSeqBits() ) );
  return Err::m_nOK;

}

ErrVal CreaterH264AVCEncoder::writeActiveViewInfoSEIMessage( ExtBinDataAccessor* pcExtBinDataAccessor )
{
  RNOK( m_pcH264AVCEncoder->writeActiveViewInfoSEIMessage( pcExtBinDataAccessor, m_pcPicEncoder->dMVCGetSeqBits() ) );
  return Err::m_nOK;

}

ErrVal CreaterH264AVCEncoder::writeMultiviewSceneInfoSEIMessage( ExtBinDataAccessor* pcExtBinDataAccessor ) // SEI JVT-W060
{
  RNOK( m_pcH264AVCEncoder->writeMultiviewSceneInfoSEIMessage( pcExtBinDataAccessor, m_pcPicEncoder->dMVCGetSeqBits() ) );
  return Err::m_nOK;

}

ErrVal CreaterH264AVCEncoder::writeMultiviewAcquisitionInfoSEIMessage( ExtBinDataAccessor* pcExtBinDataAccessor ) // SEI JVT-W060
{
  RNOK( m_pcH264AVCEncoder->writeMultiviewAcquisitionInfoSEIMessage( pcExtBinDataAccessor, m_pcPicEncoder->dMVCGetSeqBits() ) );
  return Err::m_nOK;

}
ErrVal CreaterH264AVCEncoder::writeViewScalInfoSEIMessage( ExtBinDataAccessor* pcExtBinDataAccessor )
{
  RNOK( m_pcH264AVCEncoder->writeViewScalInfoSEIMessage( pcExtBinDataAccessor, 
														   m_pcPicEncoder->dMVCGetBitrate(),
														   m_pcPicEncoder->dMVCGetFramerate(),
														   m_pcPicEncoder->dGetMaxBitrate() ) );
  return Err::m_nOK;

}
// SEI LSJ}

ErrVal
CreaterH264AVCEncoder::process( ExtBinDataAccessorList&  rcExtBinDataAccessorList, 
                                PicBuffer*               apcOriginalPicBuffer     [MAX_LAYERS],
                                PicBuffer*               apcReconstructPicBuffer  [MAX_LAYERS],
                                PicBufferList*           apcPicBufferOutputList,
                                PicBufferList*           apcPicBufferUnusedList )
{
  if( m_pcCodingParameter->getMVCmode() )
  {
    apcPicBufferUnusedList->push_back( apcReconstructPicBuffer[0] );
    RNOK( m_pcPicEncoder  ->process  ( apcOriginalPicBuffer   [0],
                                      *apcPicBufferOutputList,
                                      *apcPicBufferUnusedList,
                                       rcExtBinDataAccessorList ) );
    return Err::m_nOK;
  }

  RNOK( m_pcH264AVCEncoder->process( rcExtBinDataAccessorList, 
                                     apcOriginalPicBuffer, 
                                     apcReconstructPicBuffer, 
                                     apcPicBufferOutputList, 
                                     apcPicBufferUnusedList ) );
  return Err::m_nOK;
}


ErrVal
CreaterH264AVCEncoder::finish ( ExtBinDataAccessorList&  rcExtBinDataAccessorList, 
                                PicBufferList*           apcPicBufferOutputList,
                                PicBufferList*           apcPicBufferUnusedList,
                                UInt&                    ruiNumCodedFrames,
                                Double&                  rdHighestLayerOutputRate )
{
  if( m_pcCodingParameter->getMVCmode() )
  {
    RNOK( m_pcPicEncoder->finish( *apcPicBufferOutputList,
                                  *apcPicBufferUnusedList ) );
    return Err::m_nOK;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品免费久久| 麻豆精品在线观看| 日韩伦理免费电影| www国产成人| 在线观看不卡一区| 午夜精品久久久久影视| 欧美极品少妇xxxxⅹ高跟鞋| 国产91精品免费| 国产精品免费视频观看| 91黄色激情网站| 视频一区视频二区中文字幕| 欧美一卡二卡在线| 国产一区二区久久| 日韩一区在线播放| 在线观看一区日韩| 久久激情五月婷婷| 国产精品美女一区二区| 欧美在线免费观看亚洲| 久久av资源站| 国产精品不卡一区| 4438成人网| 国产成人综合自拍| 一区2区3区在线看| 精品国产乱码久久久久久久久| 成人黄色在线视频| 丝袜美腿高跟呻吟高潮一区| 国产三级精品视频| 欧美一a一片一级一片| 久久97超碰色| 一区二区视频免费在线观看| 日韩欧美成人一区二区| 成人99免费视频| 天堂久久久久va久久久久| 国产日本欧美一区二区| 日韩专区一卡二卡| 国产精品资源在线看| 亚洲人吸女人奶水| 欧美一级一区二区| aaa欧美大片| 日本vs亚洲vs韩国一区三区| 欧美激情综合五月色丁香| 欧美日韩一区不卡| 8x8x8国产精品| 丁香婷婷综合五月| 无码av中文一区二区三区桃花岛| 国产欧美一区二区三区沐欲| 欧美日韩一区二区三区高清| 国产一区二区日韩精品| 亚洲一区二区中文在线| 久久久久久久久久久久久女国产乱 | 美女网站一区二区| 亚洲视频一二区| 精品粉嫩超白一线天av| 欧洲精品在线观看| 成人网在线播放| 免费成人性网站| 亚洲一线二线三线久久久| 久久午夜国产精品| 欧美精品在线一区二区三区| 99久免费精品视频在线观看 | 一二三四社区欧美黄| 久久精品一区二区三区四区| 欧美人成免费网站| 99久久精品国产网站| 九九九精品视频| 亚洲视频在线一区观看| 成人黄色电影在线| 日韩精品久久久久久| 亚洲精品一二三区| 久久久久久久久一| 欧美一级夜夜爽| 欧美日韩国产另类不卡| 91色九色蝌蚪| 成人免费黄色大片| 狠狠色丁香婷婷综合久久片| 午夜亚洲福利老司机| 亚洲少妇最新在线视频| 国产欧美综合在线观看第十页| 日韩欧美成人一区二区| 在线91免费看| 欧美无砖砖区免费| 91丨porny丨在线| 成人精品免费视频| 国产综合色精品一区二区三区| 青椒成人免费视频| 丝瓜av网站精品一区二区| 亚洲一区二区黄色| 亚洲精品成人悠悠色影视| 国产日韩欧美精品在线| 26uuu另类欧美亚洲曰本| 欧美一区二区三区精品| 欧美欧美欧美欧美| 欧洲视频一区二区| 色综合天天综合在线视频| 成人动漫av在线| 成人精品视频.| 成人av片在线观看| 成人av影院在线| 波多野结衣视频一区| 成人综合婷婷国产精品久久免费| 国产在线播放一区| 国产一区二区视频在线播放| 精品一区在线看| 激情av综合网| 国产一区二区三区四区五区美女| 国产做a爰片久久毛片| 免费成人在线网站| 久久成人免费电影| 激情国产一区二区 | 秋霞av亚洲一区二区三| 日韩精品一二三四| 人人狠狠综合久久亚洲| 美女在线视频一区| 久久91精品久久久久久秒播| 国产一区二区三区免费观看| 国产99久久久久久免费看农村| 国产成人精品亚洲777人妖| 国产91精品精华液一区二区三区 | 日韩欧美中文字幕精品| 777a∨成人精品桃花网| 欧美一区午夜视频在线观看| 精品少妇一区二区三区在线视频| 久久色在线视频| 国产精品久久免费看| 亚洲天堂免费看| 亚洲午夜免费电影| 日韩av不卡一区二区| 精品一区中文字幕| 成人午夜av电影| 91成人免费网站| 91精品国产综合久久福利软件 | 亚欧色一区w666天堂| 日本午夜精品一区二区三区电影| 免费成人美女在线观看.| 国产一区二区三区黄视频| 成人av电影在线| 欧美日韩免费电影| 日韩免费高清av| 欧美国产一区二区在线观看| 亚洲精品日韩一| 蜜臀精品一区二区三区在线观看| 国产一区二区精品久久99| proumb性欧美在线观看| 欧美色网站导航| 精品国产一区a| 中文字幕五月欧美| 亚洲成人动漫在线观看| 久久99久久99小草精品免视看| 处破女av一区二区| 中文字幕一区二区三区四区| 久久综合中文字幕| 精品欧美久久久| 国产精品色婷婷| 性做久久久久久久免费看| 国产乱码精品一区二区三区忘忧草 | 人人狠狠综合久久亚洲| 成人妖精视频yjsp地址| 欧美视频在线观看一区| 久久综合九色综合欧美就去吻| 综合欧美一区二区三区| 三级亚洲高清视频| 成人午夜大片免费观看| 欧美日韩国产在线观看| 久久久蜜桃精品| 亚洲国产精品久久久久秋霞影院| 国内外成人在线| 欧美性生活久久| 国产色91在线| 亚洲国产精品一区二区www | 激情综合五月婷婷| 日本久久精品电影| 久久久久亚洲蜜桃| 亚洲国产欧美在线人成| 国产原创一区二区| 欧美亚洲禁片免费| 久久精品在线观看| 日韩在线a电影| 91网站最新地址| 精品国免费一区二区三区| 亚洲猫色日本管| 国产一区二区网址| 欧美男生操女生| 亚洲欧洲综合另类| 国产精品一卡二卡在线观看| 精品处破学生在线二十三| 一区二区三区四区精品在线视频| 亚洲综合久久久| 国产成人免费视频网站高清观看视频| 欧美日韩精品一区二区在线播放| 国产精品午夜电影| 久久精品国产第一区二区三区| 91国偷自产一区二区三区成为亚洲经典 | 亚洲一区在线观看免费观看电影高清 | 久久久久一区二区三区四区| 偷拍与自拍一区| 91在线视频网址| 欧美极品aⅴ影院| 激情都市一区二区| 欧美一区二区观看视频| 夜色激情一区二区|