字幕解碼庫概要設(shè)計報告_第1頁
字幕解碼庫概要設(shè)計報告_第2頁
字幕解碼庫概要設(shè)計報告_第3頁
字幕解碼庫概要設(shè)計報告_第4頁
字幕解碼庫概要設(shè)計報告_第5頁
已閱讀5頁,還剩10頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

(decoder如圖2所示。其中:2.字幕碼流解碼出來,進(jìn)而將解碼出來的字幕交給subDispManager進(jìn)行管理。Decoder字幕解碼器internaldecoder,idxsub字幕解碼器。流進(jìn)行解碼,將解碼出來的字幕存放到subDispManager模塊進(jìn)行管理。Idxsub是一種比較特殊的字幕,嚴(yán)格上說它是一種外掛字幕,但與普通的外掛字幕不4.了兩個變量validSubNum(有效的字幕數(shù)目)nEmptySubNum(空閑的字幕buffer數(shù)目)來控制著6buffer,解碼器每解碼出來一條字幕時,validSubNum1,nEmptySubNum1request一條字幕時,validSubNum1request到的字幕flush到字幕庫時,nEmptySubNum加1.12探測字幕文件的基本信息(輸入為文件句柄3456789如果外掛字幕,應(yīng)用程序首先調(diào)用ProbeSubtitleStreamProbeSubtitleStreamFdFlushSubtitleItem將圖像Buffer歸還解碼器。不斷地調(diào)用RequestSubtitleItem函數(shù)獲取字幕,并將顯示完的字幕通過調(diào)用FlushSubtitleItem函數(shù)還回給字幕庫。下文詳細(xì)介紹各個APIintProbeSubtitleStream(constchar*int*pStreamCount)strFilePath:字幕文件的路徑,成功:0失?。?1intProbeSubtitleStreamFd(intintoffset,intlen,SubtitleStreamInfo**int*Fd:字幕文件句柄len:有效數(shù)據(jù)的長度0失?。?1SubtitleDecoder*成功則返回解碼器指針SubtitleDecoder*;失敗則返回NULL失敗則返回NULL; voidResetSubtitleDecoder(SubtitleDecoder*p,int64_t通過無intDecodeSubtitleStream(SubtitleDecoder*SubtitleStreamDataInfo*通過 2 1 0:解碼ok 1SDECODE_RESULT_NO_FRAME_BUFFER4:無FRAMEBUFFER對于內(nèi)嵌字幕,因?yàn)樽帜淮a流是從parserSubtitleItem*NextSubtitleItem(SubtitleDecoder*通過該字幕在字幕顯示隊(duì)列即FRAMEBUFFERSubtitleItem*RequestSubtitleItem(SubtitleDecoder*通過無voidFlushSubtitleItem(SubtitleDecoder*p,SubtitleItem*通過無無unsigned外掛字幕的文件內(nèi)容的offset5.2字幕顯示的unsignedunsignedbufferbuffert當(dāng)前這一筆字幕碼流的當(dāng)前這一筆字幕碼流的當(dāng)前這一筆字幕碼流的UnsignedUnsignedUnsignedUnsigned空閑的bufferUnsigned當(dāng)前字幕的當(dāng)前字幕的中間subdispbufdvdsubDivxA或DivxB針外掛字幕:"sub","srt","smi", "txt","ssa","aqt","jss","ass","vsf","tts","stl","zeg","ovr","dks","lrc","sbt","vkt","pjs","mpl","scr","psb","asc","s2k","sst","son","ssts",內(nèi)嵌字幕:ThisdocumentistheoriginalworkandcopyrightedpropertyofAllwinnerTechnology(“Allwinner”).ReproductioninwholeorinpartmustobtainthewrittenapprovalofAllwinnerandgiveclearacknowledgementtothecopyrightowner.TheinformationfurnishedbyAllwinnerisbelievedtobeaccurateandreliable.Allwinnerreservestherighttomakechangesincircuitdesignand/orspecificationsatanytimewithoutnotice.Allwinnerdoesnotassumeanyresponsibilityandliabilityforitsuse.Norforanyinfringementsofpatentsorotherrightsofthethirdpartieswhichmayresultfromitsuse.NolicenseisgrantedbyimplicationorotherwiseunderanypatentorpatentrightsofAllwinner.Thisdatasheetneitherstatesnorimplieswarrantyofanykind,includingfitnessforanyparticularapplication.7.ThisdocumentistheoriginalworkandcopyrightedpropertyofAllwinnerTechnology(“Allwinner”).ReproductioninwholeorinpartmustobtainthewrittenapprovalofAllwinnerandgiveclearacknowledgementtothecopyrightowner.TheinformationfurnishedbyAllwinnerisbelievedtobeaccurateandreliable.Allwinnerreservestherighttomakechangesincircuitdesignand/orspecificationsatanytimewithoutnotice.Allwinnerdoesnotassumeanyresponsibilityandliabilityforitsuse.Norforanyinfringementsofpatentsorotherrightsofthethirdpartieswhichmayresultfromitsuse.Nolicenseisgrantedbyimplicationorothe

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論