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

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

?? h264avcencoder.cpp

?? JMVM MPEG MVC/3DAV 測試平臺 國際通用標準
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
/*
********************************************************************************

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 "GOPEncoder.h"
#include "CreaterH264AVCEncoder.h"
#include "ControlMngH264AVCEncoder.h"
#include "H264AVCCommonLib/ParameterSetMng.h"
#include "H264AVCCommonLib/FrameMng.h"

#include <math.h>




H264AVC_NAMESPACE_BEGIN


H264AVCEncoder::H264AVCEncoder():
  m_pcParameterSetMng ( NULL ),
  m_pcPocCalculator   ( NULL ),
  m_pcNalUnitEncoder  ( NULL ),
  m_pcControlMng      ( NULL ),
  m_pcCodingParameter ( NULL ),
  m_pcFrameMng        ( NULL ),
  m_bVeryFirstCall    ( true ),
  m_bScalableSeiMessage( false ),
  m_bInitDone         ( false ),
  m_bTraceEnable      ( false )  
{
  ::memset( m_apcMCTFEncoder, 0x00, MAX_LAYERS*sizeof(Void*) );
  ::memset( m_dFinalFramerate, 0x00,MAX_LAYERS*MAX_DSTAGES*MAX_QUALITY_LEVELS*sizeof(Double) );
	::memset( m_dFinalBitrate,	0x00, MAX_LAYERS*MAX_DSTAGES*MAX_QUALITY_LEVELS*sizeof(Double) );
	for( UInt ui = 0; ui < MAX_LAYERS; ui++ )
	for( UInt uj = 0; uj < MAX_TEMP_LEVELS; uj++ )
		for( UInt uk = 0; uk < MAX_QUALITY_LEVELS; uk++ ){

		  m_aaauidSeqBits[ui][uj][uk] = 0;                   
		  m_aaadSingleLayerBitrate[ui][uj][uk] = 0;            // BUG_FIX Shenqiu (06-04-08)
		  m_aaauiScalableLayerId[ui][uj][uk] = MSYS_UINT_MAX;  // BUG_FIX Shenqiu (06-04-08)
		}

}

H264AVCEncoder::~H264AVCEncoder()
{
}


ErrVal
H264AVCEncoder::create( H264AVCEncoder*& rpcH264AVCEncoder )
{
  rpcH264AVCEncoder = new H264AVCEncoder;

  ROT( NULL == rpcH264AVCEncoder );

  return Err::m_nOK;
}


ErrVal
H264AVCEncoder::destroy()
{
  delete this;
  return Err::m_nOK;
}



ErrVal
H264AVCEncoder::getBaseLayerStatus( UInt&   ruiBaseLayerId,
                                    UInt&   ruiBaseLayerIdMotionOnly,
                                    Int &   riSpatialScalabilityType,
                                    UInt    uiLayerId,
                                    Int     iPoc )
{
  //===== get spatial resolution ratio =====
 
// TMM_ESS 
  riSpatialScalabilityType = m_apcMCTFEncoder[uiLayerId]->getSpatialScalabilityType();

  //===== check data availability =====
  if( ruiBaseLayerId < m_pcCodingParameter->getNumberOfLayers() )
  {
    Bool  bExists = false;
    Bool  bMotion = false;

    RNOK( m_apcMCTFEncoder[ruiBaseLayerId]->getBaseLayerStatus( bExists, bMotion, iPoc ) );

    ruiBaseLayerIdMotionOnly  = ( bMotion ? ruiBaseLayerId : MSYS_UINT_MAX );
    ruiBaseLayerId            = ( bExists ? ruiBaseLayerId : MSYS_UINT_MAX );
    return Err::m_nOK;
  }

  ruiBaseLayerId              = MSYS_UINT_MAX;
  ruiBaseLayerIdMotionOnly    = MSYS_UINT_MAX;
  return Err::m_nOK;
}


ErrVal
H264AVCEncoder::getBaseLayerData( IntFrame*&    pcFrame,
                                  IntFrame*&    pcResidual,
                                  MbDataCtrl*&  pcMbDataCtrl,
																	MbDataCtrl*&  pcMbDataCtrlEL,		// ICU/ETRI FGS_MOT_USE
                                  Bool&         bConstrainedIPredBL,
                                  Bool&         bForCopyOnly,
                                  Int           iSpatialScalability,
                                  UInt          uiBaseLayerId,
                                  Int           iPoc,
                                  Bool          bMotion )
{
  ROF ( uiBaseLayerId < MAX_LAYERS );

	// ICU/ETRI FGS_MOT_USE
	RNOK( m_apcMCTFEncoder[uiBaseLayerId]->getBaseLayerData( pcFrame, pcResidual, pcMbDataCtrl
	  , pcMbDataCtrlEL, bConstrainedIPredBL, bForCopyOnly, iSpatialScalability, iPoc, bMotion ) );

	LayerParameters& rcBaseLayer = m_pcCodingParameter->getLayerParameters ( uiBaseLayerId );
    UInt uiFgsMotionMode = rcBaseLayer.getFGSMotionMode();

  if (!uiFgsMotionMode)
  {	
		pcMbDataCtrlEL = pcMbDataCtrl;
  }

  return Err::m_nOK;
}

ErrVal
H264AVCEncoder::getBaseLayerSH( SliceHeader*& rpcSliceHeader,
                                UInt          uiBaseLayerId,
                                Int           iPoc )
{
  ROF( uiBaseLayerId < MAX_LAYERS );

  RNOK( m_apcMCTFEncoder[uiBaseLayerId]->getBaseLayerSH( rpcSliceHeader, iPoc ) );
  return Err::m_nOK;
}


UInt*
H264AVCEncoder::getGOPBitsBase( UInt uiBaseLayerId )
{
  ROFRS( uiBaseLayerId < MAX_LAYERS, 0 );
  return m_apcMCTFEncoder[uiBaseLayerId]->getGOPBitsBase();
}

UInt*
H264AVCEncoder::getGOPBitsFGS( UInt uiBaseLayerId )
{
  ROFRS( uiBaseLayerId < MAX_LAYERS, 0 );
  return m_apcMCTFEncoder[uiBaseLayerId]->getGOPBitsFGS();
}

UInt*
H264AVCEncoder::getGOPBits( UInt uiBaseLayerId )
{
	ROFRS( uiBaseLayerId < MAX_LAYERS , 0 );
	return m_apcMCTFEncoder[uiBaseLayerId]->getGOPBits();
}


ErrVal
H264AVCEncoder::init( MCTFEncoder*      apcMCTFEncoder[MAX_LAYERS],
                      ParameterSetMng*  pcParameterSetMng,
                      PocCalculator*    pcPocCalculator,
                      NalUnitEncoder*   pcNalUnitEncoder,
                      ControlMngIf*     pcControlMng,
                      CodingParameter*  pcCodingParameter,
                      FrameMng*         pcFrameMng)
{
  ROT( NULL == apcMCTFEncoder );
  ROT( NULL == pcFrameMng );
  ROT( NULL == pcParameterSetMng );
  ROT( NULL == pcPocCalculator );
  ROT( NULL == pcNalUnitEncoder );
  ROT( NULL == pcControlMng );
  ROT( NULL == pcCodingParameter );

  m_pcFrameMng        = pcFrameMng;
  m_pcParameterSetMng = pcParameterSetMng;
  m_pcPocCalculator   = pcPocCalculator;
  m_pcNalUnitEncoder  = pcNalUnitEncoder;
  m_pcControlMng      = pcControlMng;
  m_pcCodingParameter = pcCodingParameter;

  UInt uiLayer;
  for( uiLayer = 0; uiLayer < m_pcCodingParameter->getNumberOfLayers(); uiLayer++ )
  {
    ROT( NULL == apcMCTFEncoder[uiLayer] );
    m_apcMCTFEncoder[uiLayer] = apcMCTFEncoder[uiLayer];
  }
  for( ; uiLayer < MAX_LAYERS; uiLayer++ )
  {
    m_apcMCTFEncoder[uiLayer] = 0;
  }

  m_cAccessUnitList.clear();

  return Err::m_nOK;
}


ErrVal
H264AVCEncoder::uninit()
{
  m_cUnWrittenSPS.clear();
  m_cUnWrittenPPS.clear();
  m_pcParameterSetMng           = NULL;
  m_pcPocCalculator             = NULL;
  m_pcNalUnitEncoder            = NULL;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱理伦片在线观看夜一区| 亚洲欧洲av色图| 在线成人午夜影院| 亚洲成人一区二区在线观看| 欧美精品黑人性xxxx| 国产一区二区免费在线| 亚洲欧美日韩系列| 国产一区二区久久| 国产91富婆露脸刺激对白| 久久―日本道色综合久久| 波多野结衣精品在线| 亚洲综合999| 国产日韩精品一区| 欧美极品少妇xxxxⅹ高跟鞋 | 国产精品18久久久| 免费成人性网站| 五月婷婷综合激情| 日本在线观看不卡视频| 国产黄色成人av| 播五月开心婷婷综合| 91丨porny丨中文| 欧美精品视频www在线观看| 国产精品福利一区| 蜜臀av一区二区在线免费观看| 成人激情小说乱人伦| 777奇米四色成人影色区| 亚洲国产成人在线| 奇米影视7777精品一区二区| 色婷婷久久久久swag精品| 欧美乱熟臀69xxxxxx| 亚洲欧美日韩在线不卡| 粉嫩欧美一区二区三区高清影视| 99re成人精品视频| 国产精品白丝在线| 欧美日韩不卡视频| 国产馆精品极品| 性做久久久久久免费观看| 欧美变态tickle挠乳网站| 成人手机电影网| 色婷婷久久久综合中文字幕| 亚洲欧洲美洲综合色网| 99re这里都是精品| 亚洲人被黑人高潮完整版| av电影在线不卡| 一区二区三区在线视频免费| 欧美日韩在线播放一区| 午夜精品福利一区二区蜜股av| 欧美性猛交xxxx黑人交| 亚洲成av人片观看| 精品粉嫩aⅴ一区二区三区四区| 国产一本一道久久香蕉| 亚洲丝袜自拍清纯另类| 欧美日本国产一区| 国产制服丝袜一区| 夜夜操天天操亚洲| 欧美成人乱码一区二区三区| 极品少妇xxxx精品少妇偷拍| 国产亲近乱来精品视频| 在线视频国内自拍亚洲视频| 精品一区二区三区香蕉蜜桃| 欧美激情在线免费观看| 3d动漫精品啪啪| 国产91富婆露脸刺激对白| 日韩av电影天堂| 国产精品乱子久久久久| 欧美一区二区啪啪| 在线免费不卡视频| 成人午夜av影视| 激情欧美日韩一区二区| 婷婷国产v国产偷v亚洲高清| 中文字幕欧美激情一区| 亚洲精品一区在线观看| 777奇米成人网| 欧美精品xxxxbbbb| 在线免费亚洲电影| 色哟哟在线观看一区二区三区| 国产一区二区三区四区五区美女 | 蜜臀av性久久久久蜜臀aⅴ流畅| 国产精品国产三级国产有无不卡| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲一区二区三区自拍| 亚洲日本丝袜连裤袜办公室| 国产精品你懂的| 日韩精品一区二区三区三区免费| 国产成人在线网站| 国产精品18久久久久久久久久久久 | 在线欧美一区二区| 欧美电影影音先锋| 日韩一区二区三区四区五区六区| 日韩午夜在线观看视频| 日韩欧美精品在线| 久久午夜国产精品| 国产精品欧美一区二区三区| 亚洲精品中文字幕乱码三区| 天堂一区二区在线| 久久精品999| 99久久久免费精品国产一区二区| 91网址在线看| 日韩免费电影一区| 综合久久国产九一剧情麻豆| 亚洲高清一区二区三区| 激情都市一区二区| 欧洲激情一区二区| 欧美精品一区男女天堂| 亚洲一区在线观看免费| 国产乱码一区二区三区| 在线一区二区视频| 国产精品视频麻豆| 亚洲成人激情社区| 国产高清一区日本| 欧美三级韩国三级日本一级| 精品免费99久久| 人人精品人人爱| 色噜噜狠狠色综合中国| 欧美国产一区在线| 免费视频最近日韩| 欧美肥妇free| 一区二区在线免费观看| 成人免费的视频| 欧美高清在线一区| 国产91丝袜在线18| 国产欧美日韩久久| 九色|91porny| 日韩欧美国产成人一区二区| 亚洲国产精品一区二区www在线| 菠萝蜜视频在线观看一区| 亚洲国产精品传媒在线观看| 激情综合色丁香一区二区| 91精品国产综合久久久久久久 | 中文字幕欧美激情一区| 国产999精品久久久久久| 欧美r级在线观看| 久久99精品久久久| 久久综合色8888| 成人性生交大片免费看视频在线| www久久精品| 色婷婷久久久亚洲一区二区三区| 亚洲欧美另类小说| 91精品国产全国免费观看| 老色鬼精品视频在线观看播放| 日韩精品一区在线| www.亚洲激情.com| 亚洲高清免费视频| 久久久精品免费免费| 色综合婷婷久久| 蜜桃在线一区二区三区| 久久久99精品久久| 欧美日韩精品一区二区三区蜜桃 | 欧洲一区二区三区免费视频| 午夜电影一区二区三区| 欧美成人一区二区三区在线观看| 欧美日韩亚洲综合一区二区三区| 久久精品噜噜噜成人88aⅴ| 中文字幕在线观看一区二区| 91精品国产福利在线观看| 成人精品免费看| 久久精品国产精品亚洲红杏| 亚洲美女在线国产| 久久久久国产精品免费免费搜索| 色婷婷综合久久| 成人精品视频一区二区三区| 麻豆成人av在线| 亚洲自拍偷拍图区| 国产精品久久久久久久蜜臀| 欧美精品一区二区三区高清aⅴ| 色噜噜偷拍精品综合在线| 不卡一区二区三区四区| 国产精品一区在线观看你懂的| 亚洲午夜电影在线| 一区二区三区精品在线| 中文字幕亚洲视频| 久久先锋影音av| 国产日韩综合av| 国产清纯美女被跳蛋高潮一区二区久久w| 5858s免费视频成人| 欧美精品在线视频| 欧美精品成人一区二区三区四区| 91福利在线看| 欧美丰满嫩嫩电影| 欧美va亚洲va国产综合| 久久精品视频在线看| 国产亚洲精品精华液| 亚洲日本va在线观看| 五月天视频一区| 久久精品国产在热久久| 国产成人精品三级麻豆| 久久成人免费网| 日韩黄色免费网站| 国产一区日韩二区欧美三区| 成人黄色在线视频| www..com久久爱| 欧美伊人久久久久久久久影院| 在线综合亚洲欧美在线视频| 欧美不卡一二三| 亚洲在线中文字幕| 国内精品不卡在线| 欧美色精品天天在线观看视频| 欧美大片国产精品| 一区二区三区国产精华| 精品亚洲aⅴ乱码一区二区三区|