source: 3DVCSoftware/branches/HTM-DEV-0.3-dev0/source/App/TAppDecoder/TAppDecTop.cpp @ 483

Last change on this file since 483 was 483, checked in by tech, 11 years ago

Merged fixes from other dev-branches.

  • Property svn:eol-style set to native
File size: 19.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-2013, ITU/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 ITU/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/** \file     TAppDecTop.cpp
35    \brief    Decoder application class
36*/
37
38#include <list>
39#include <vector>
40#include <stdio.h>
41#include <fcntl.h>
42#include <assert.h>
43
44#include "TAppDecTop.h"
45#include "TLibDecoder/AnnexBread.h"
46#include "TLibDecoder/NALread.h"
47
48//! \ingroup TAppDecoder
49//! \{
50
51// ====================================================================================================================
52// Constructor / destructor / initialization / destroy
53// ====================================================================================================================
54
55TAppDecTop::TAppDecTop()
56#if !H_MV
57: m_iPOCLastDisplay(-MAX_INT)
58#else
59: m_numDecoders( 0 )
60#endif
61{
62  ::memset (m_abDecFlag, 0, sizeof (m_abDecFlag));
63#if H_MV
64  for (Int i = 0; i < MAX_NUM_LAYER_IDS; i++) m_layerIdToDecIdx[i] = -1; 
65#endif
66#if H_3D
67    m_pScaleOffsetFile  = 0;
68#endif
69}
70
71Void TAppDecTop::create()
72{
73}
74
75Void TAppDecTop::destroy()
76{
77  if (m_pchBitstreamFile)
78  {
79    free (m_pchBitstreamFile);
80    m_pchBitstreamFile = NULL;
81  }
82#if H_MV
83  for (Int decIdx = 0; decIdx < m_numDecoders; decIdx++)
84  {
85    if (m_pchReconFiles[decIdx])
86    {
87      free (m_pchReconFiles[decIdx]);
88      m_pchReconFiles[decIdx] = NULL;
89    }
90  }
91#endif
92  if (m_pchReconFile)
93  {
94    free (m_pchReconFile);
95    m_pchReconFile = NULL;
96  }
97#if H_3D_FIX
98  if (m_pchScaleOffsetFile)
99  {
100    free (m_pchScaleOffsetFile);
101    m_pchScaleOffsetFile = NULL; 
102  }
103#endif
104}
105
106// ====================================================================================================================
107// Public member functions
108// ====================================================================================================================
109
110/**
111 - create internal class
112 - initialize internal class
113 - until the end of the bitstream, call decoding function in TDecTop class
114 - delete allocated buffers
115 - destroy internal class
116 .
117 */
118Void TAppDecTop::decode()
119{
120  Int                 poc;
121#if H_MV
122  poc = -1; 
123#endif
124  TComList<TComPic*>* pcListPic = NULL;
125
126  ifstream bitstreamFile(m_pchBitstreamFile, ifstream::in | ifstream::binary);
127  if (!bitstreamFile)
128  {
129    fprintf(stderr, "\nfailed to open bitstream file `%s' for reading\n", m_pchBitstreamFile);
130    exit(EXIT_FAILURE);
131  }
132
133#if H_3D
134  if( m_pchScaleOffsetFile ) 
135  { 
136    m_pScaleOffsetFile = ::fopen( m_pchScaleOffsetFile, "wt" ); 
137    AOF( m_pScaleOffsetFile ); 
138  }
139  m_cCamParsCollector.init( m_pScaleOffsetFile );
140#endif
141  InputByteStream bytestream(bitstreamFile);
142
143  // create & initialize internal classes
144  xCreateDecLib();
145  xInitDecLib  ();
146#if !H_MV
147  m_iPOCLastDisplay += m_iSkipFrame;      // set the last displayed POC correctly for skip forward.
148
149  // main decoder loop
150  Bool recon_opened = false; // reconstruction file not yet opened. (must be performed after SPS is seen)
151#else
152  Int  pocCurrPic        = -MAX_INT;     
153  Int  pocLastPic        = -MAX_INT;   
154 
155  Int  layerIdLastPic    = 0; 
156  Int  layerIdCurrPic    = 0; 
157
158  Int  decIdxLastPic     = 0; 
159  Int  decIdxCurrPic     = 0; 
160
161  Bool firstSlice        = true; 
162#endif
163 
164  while (!!bitstreamFile)
165  {
166    /* location serves to work around a design fault in the decoder, whereby
167     * the process of reading a new slice that is the first slice of a new frame
168     * requires the TDecTop::decode() method to be called again with the same
169     * nal unit. */
170    streampos location = bitstreamFile.tellg();
171#if H_MV
172#if ENC_DEC_TRACE
173    Int64 symCount = g_nSymbolCounter;
174#endif
175#endif
176    AnnexBStats stats = AnnexBStats();
177#if !H_MV
178    Bool bPreviousPictureDecoded = false;
179#endif
180
181    vector<uint8_t> nalUnit;
182    InputNALUnit nalu;
183    byteStreamNALUnit(bytestream, nalUnit, stats);
184
185    // call actual decoding function
186    Bool bNewPicture = false;
187#if H_MV
188    Bool newSliceDiffPoc   = false;
189    Bool newSliceDiffLayer = false;
190    Bool allLayersDecoded  = false;     
191#endif
192    if (nalUnit.empty())
193    {
194      /* this can happen if the following occur:
195       *  - empty input file
196       *  - two back-to-back start_code_prefixes
197       *  - start_code_prefix immediately followed by EOF
198       */
199      fprintf(stderr, "Warning: Attempt to decode an empty NAL unit\n");
200    }
201    else
202    {
203      read(nalu, nalUnit);
204#if H_MV     
205      Int decIdx     = xGetDecoderIdx( nalu.m_layerId , true );
206     
207      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu) )
208      {
209        bNewPicture = false;
210      }
211      else
212      { 
213        newSliceDiffLayer = nalu.isSlice() && ( nalu.m_layerId != layerIdCurrPic ) && !firstSlice;
214        newSliceDiffPoc   = m_tDecTop[decIdx]->decode(nalu, m_iSkipFrame, m_pocLastDisplay[decIdx], newSliceDiffLayer );
215        // decode function only returns true when all of the following conditions are true
216        // - poc in particular layer changes
217        // - nalu does not belong to first slice in layer
218        // - nalu.isSlice() == true     
219
220        bNewPicture       = newSliceDiffLayer || newSliceDiffPoc; 
221
222        if ( nalu.isSlice() && firstSlice )
223        {
224          layerIdCurrPic = nalu.m_layerId; 
225          pocCurrPic     = m_tDecTop[decIdx]->getCurrPoc(); 
226          decIdxCurrPic  = decIdx; 
227          firstSlice     = false; 
228        }
229
230        if ( bNewPicture || !bitstreamFile )
231        { 
232          layerIdLastPic    = layerIdCurrPic; 
233          layerIdCurrPic    = nalu.m_layerId; 
234         
235          pocLastPic        = pocCurrPic; 
236          pocCurrPic        = m_tDecTop[decIdx]->getCurrPoc(); 
237         
238          decIdxLastPic     = decIdxCurrPic; 
239          decIdxCurrPic     = decIdx; 
240
241          allLayersDecoded = ( pocCurrPic != pocLastPic );
242        }
243
244       
245#else
246      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu)  )
247      {
248        if(bPreviousPictureDecoded)
249        {
250          bNewPicture = true;
251          bPreviousPictureDecoded = false;
252        }
253        else
254        {
255          bNewPicture = false;
256        }
257      }
258      else
259      {
260        bNewPicture = m_cTDecTop.decode(nalu, m_iSkipFrame, m_iPOCLastDisplay);
261#endif
262        if (bNewPicture)
263        {
264          bitstreamFile.clear();
265          /* location points to the current nalunit payload[1] due to the
266           * need for the annexB parser to read three extra bytes.
267           * [1] except for the first NAL unit in the file
268           *     (but bNewPicture doesn't happen then) */
269          bitstreamFile.seekg(location-streamoff(3));
270          bytestream.reset();
271#if H_MV
272#if ENC_DEC_TRACE
273          g_nSymbolCounter = symCount;
274#endif
275#endif
276        }
277#if !H_MV
278        bPreviousPictureDecoded = true; 
279#endif
280      }
281    }
282    if (bNewPicture || !bitstreamFile)
283    {
284#if H_MV
285      assert( decIdxLastPic != -1 ); 
286      m_tDecTop[decIdxLastPic]->endPicDecoding(poc, pcListPic, m_targetDecLayerIdSet );
287#else
288      m_cTDecTop.executeLoopFilters(poc, pcListPic);
289#endif
290    }
291#if H_3D
292    if ( allLayersDecoded || !bitstreamFile )
293    {
294      for( Int dI = 0; dI < m_numDecoders; dI++ )
295      {
296        TComPic* picLastCoded = m_ivPicLists.getPic( m_tDecTop[dI]->getLayerId(), pocLastPic );
297        assert( picLastCoded != NULL );       
298        picLastCoded->compressMotion();         
299      }
300    }
301#endif
302
303    if( pcListPic )
304    {
305#if H_MV
306      if ( m_pchReconFiles[decIdxLastPic] && !m_reconOpen[decIdxLastPic] )
307#else
308      if ( m_pchReconFile && !recon_opened )
309#endif
310      {
311        if (!m_outputBitDepthY) { m_outputBitDepthY = g_bitDepthY; }
312        if (!m_outputBitDepthC) { m_outputBitDepthC = g_bitDepthC; }
313
314#if H_MV
315        m_tVideoIOYuvReconFile[decIdxLastPic]->open( m_pchReconFiles[decIdxLastPic], true, m_outputBitDepthY, m_outputBitDepthC, g_bitDepthY, g_bitDepthC ); // write mode
316        m_reconOpen[decIdxLastPic] = true;
317      }
318      if ( bNewPicture && newSliceDiffPoc && 
319#else
320        m_cTVideoIOYuvReconFile.open( m_pchReconFile, true, m_outputBitDepthY, m_outputBitDepthC, g_bitDepthY, g_bitDepthC ); // write mode
321        recon_opened = true;
322      }
323      if ( bNewPicture && 
324#endif
325           (   nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL
326            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP
327            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_N_LP
328            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_RADL
329            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_LP ) )
330      {
331#if H_MV
332        xFlushOutput( pcListPic, decIdxLastPic );
333#else
334        xFlushOutput( pcListPic );
335#endif
336      }
337      // write reconstruction to file
338      if(bNewPicture)
339      {
340#if H_MV
341        xWriteOutput( pcListPic, decIdxLastPic, nalu.m_temporalId );
342      }
343    }
344  }
345
346#if H_3D
347  if( m_cCamParsCollector.isInitialized() )
348  {
349    m_cCamParsCollector.setSlice( 0 );
350  }
351#endif
352  for(UInt decIdx = 0; decIdx < m_numDecoders; decIdx++)
353  {
354    xFlushOutput( m_tDecTop[decIdx]->getListPic(), decIdx );
355  }
356#else
357        xWriteOutput( pcListPic, nalu.m_temporalId );
358      }
359    }
360  }
361 
362  xFlushOutput( pcListPic );
363  // delete buffers
364  m_cTDecTop.deletePicBuffer();
365#endif
366     
367  // destroy internal classes
368  xDestroyDecLib();
369}
370
371// ====================================================================================================================
372// Protected member functions
373// ====================================================================================================================
374
375Void TAppDecTop::xCreateDecLib()
376{
377#if H_MV
378  // initialize global variables
379  initROM(); 
380#else
381  // create decoder class
382  m_cTDecTop.create();
383#endif
384}
385
386Void TAppDecTop::xDestroyDecLib()
387{
388#if H_MV
389  // destroy ROM
390  destroyROM();
391
392  for(Int decIdx = 0; decIdx < m_numDecoders ; decIdx++)
393  {
394    if( m_tVideoIOYuvReconFile[decIdx] )
395    {
396      m_tVideoIOYuvReconFile[decIdx]->close();
397      delete m_tVideoIOYuvReconFile[decIdx]; 
398      m_tVideoIOYuvReconFile[decIdx] = NULL ;
399    }
400
401    if( m_tDecTop[decIdx] )
402    {
403      m_tDecTop[decIdx]->deletePicBuffer();
404      m_tDecTop[decIdx]->destroy() ;
405    }
406    delete m_tDecTop[decIdx] ; 
407    m_tDecTop[decIdx] = NULL ;
408  }
409#else
410  if ( m_pchReconFile )
411  {
412    m_cTVideoIOYuvReconFile. close();
413  }
414 
415  // destroy decoder class
416  m_cTDecTop.destroy();
417#endif
418#if H_3D
419  m_cCamParsCollector.uninit();
420  if( m_pScaleOffsetFile ) 
421  { 
422    ::fclose( m_pScaleOffsetFile ); 
423  }
424#endif
425}
426
427Void TAppDecTop::xInitDecLib()
428{
429#if !H_MV
430  // initialize decoder class
431  m_cTDecTop.init();
432  m_cTDecTop.setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
433#endif
434}
435
436/** \param pcListPic list of pictures to be written to file
437    \todo            DYN_REF_FREE should be revised
438 */
439#if H_MV
440Void TAppDecTop::xWriteOutput( TComList<TComPic*>* pcListPic, Int decIdx, Int tId )
441#else
442Void TAppDecTop::xWriteOutput( TComList<TComPic*>* pcListPic, UInt tId )
443#endif
444{
445  TComList<TComPic*>::iterator iterPic   = pcListPic->begin();
446  Int not_displayed = 0;
447
448  while (iterPic != pcListPic->end())
449  {
450    TComPic* pcPic = *(iterPic);
451#if H_MV
452    if(pcPic->getOutputMark() && pcPic->getPOC() > m_pocLastDisplay[decIdx])
453#else
454    if(pcPic->getOutputMark() && pcPic->getPOC() > m_iPOCLastDisplay)
455#endif
456    {
457       not_displayed++;
458    }
459    iterPic++;
460  }
461  iterPic   = pcListPic->begin();
462 
463  while (iterPic != pcListPic->end())
464  {
465    TComPic* pcPic = *(iterPic);
466   
467#if H_MV
468    if ( pcPic->getOutputMark() && (not_displayed >  pcPic->getNumReorderPics(tId) && pcPic->getPOC() > m_pocLastDisplay[decIdx]))
469#else
470    if ( pcPic->getOutputMark() && (not_displayed >  pcPic->getNumReorderPics(tId) && pcPic->getPOC() > m_iPOCLastDisplay))
471#endif
472    {
473      // write to file
474       not_displayed--;
475#if H_MV
476      if ( m_pchReconFiles[decIdx] )
477#else
478      if ( m_pchReconFile )
479#endif
480      {
481        const Window &conf = pcPic->getConformanceWindow();
482        const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window();
483#if H_MV
484        m_tVideoIOYuvReconFile[decIdx]->write( pcPic->getPicYuvRec(),
485#else
486        m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec(),
487#endif
488                                       conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),
489                                       conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),
490                                       conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),
491                                       conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() );
492      }
493     
494      // update POC of display order
495#if H_MV
496      m_pocLastDisplay[decIdx] = pcPic->getPOC();
497#else
498      m_iPOCLastDisplay = pcPic->getPOC();
499#endif
500     
501      // erase non-referenced picture in the reference picture list after display
502      if ( !pcPic->getSlice(0)->isReferenced() && pcPic->getReconMark() == true )
503      {
504#if !DYN_REF_FREE
505        pcPic->setReconMark(false);
506       
507        // mark it should be extended later
508        pcPic->getPicYuvRec()->setBorderExtension( false );
509       
510#else
511        pcPic->destroy();
512        pcListPic->erase( iterPic );
513        iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!
514        continue;
515#endif
516      }
517      pcPic->setOutputMark(false);
518    }
519   
520    iterPic++;
521  }
522}
523
524/** \param pcListPic list of pictures to be written to file
525    \todo            DYN_REF_FREE should be revised
526 */
527#if H_MV
528Void TAppDecTop::xFlushOutput( TComList<TComPic*>* pcListPic, Int decIdx )
529#else
530Void TAppDecTop::xFlushOutput( TComList<TComPic*>* pcListPic )
531#endif
532{
533  if(!pcListPic)
534  {
535    return;
536  } 
537  TComList<TComPic*>::iterator iterPic   = pcListPic->begin();
538
539  iterPic   = pcListPic->begin();
540 
541  while (iterPic != pcListPic->end())
542  {
543    TComPic* pcPic = *(iterPic);
544
545    if ( pcPic->getOutputMark() )
546    {
547      // write to file
548#if H_MV
549      if ( m_pchReconFiles[decIdx] )
550#else
551      if ( m_pchReconFile )
552#endif
553      {
554        const Window &conf = pcPic->getConformanceWindow();
555        const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window();
556#if H_MV
557        m_tVideoIOYuvReconFile[decIdx]->write( pcPic->getPicYuvRec(),
558#else
559        m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec(),
560#endif
561                                       conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),
562                                       conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),
563                                       conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),
564                                       conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() );
565      }
566     
567      // update POC of display order
568#if H_MV
569      m_pocLastDisplay[decIdx] = pcPic->getPOC();
570#else
571      m_iPOCLastDisplay = pcPic->getPOC();
572#endif
573     
574      // erase non-referenced picture in the reference picture list after display
575      if ( !pcPic->getSlice(0)->isReferenced() && pcPic->getReconMark() == true )
576      {
577#if !DYN_REF_FREE
578        pcPic->setReconMark(false);
579       
580        // mark it should be extended later
581        pcPic->getPicYuvRec()->setBorderExtension( false );
582       
583#else
584        pcPic->destroy();
585        pcListPic->erase( iterPic );
586        iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!
587        continue;
588#endif
589      }
590      pcPic->setOutputMark(false);
591    }
592#if !H_MV
593#if !DYN_REF_FREE
594    if(pcPic)
595    {
596      pcPic->destroy();
597      delete pcPic;
598      pcPic = NULL;
599    }
600#endif
601#endif
602    iterPic++;
603  }
604#if H_MV
605  m_pocLastDisplay[decIdx] = -MAX_INT;
606#else
607  pcListPic->clear();
608  m_iPOCLastDisplay = -MAX_INT;
609#endif
610}
611
612/** \param nalu Input nalu to check whether its LayerId is within targetDecLayerIdSet
613 */
614Bool TAppDecTop::isNaluWithinTargetDecLayerIdSet( InputNALUnit* nalu )
615{
616  if ( m_targetDecLayerIdSet.size() == 0 ) // By default, the set is empty, meaning all LayerIds are allowed
617  {
618    return true;
619  }
620  for (std::vector<Int>::iterator it = m_targetDecLayerIdSet.begin(); it != m_targetDecLayerIdSet.end(); it++)
621  {
622#if H_MV
623    if ( nalu->m_layerId == (*it) )
624#else
625    if ( nalu->m_reservedZero6Bits == (*it) )
626#endif
627    {
628      return true;
629    }
630  }
631  return false;
632}
633
634#if H_MV
635Int TAppDecTop::xGetDecoderIdx( Int layerId, Bool createFlag /*= false */ )
636{
637  Int decIdx = -1; 
638  if ( m_layerIdToDecIdx[ layerId ] != -1 ) 
639  {     
640    decIdx = m_layerIdToDecIdx[ layerId ]; 
641  }
642  else
643  {     
644    assert ( createFlag ); 
645    assert( m_numDecoders < MAX_NUM_LAYERS ); 
646
647    decIdx = m_numDecoders; 
648
649    // Init decoder
650    m_tDecTop[ decIdx ] =  new TDecTop;
651    m_tDecTop[ decIdx ]->create();
652    m_tDecTop[ decIdx ]->init( );
653    m_tDecTop[ decIdx ]->setLayerId( layerId );
654    m_tDecTop[ decIdx ]->setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
655    m_tDecTop[ decIdx ]->setIvPicLists( &m_ivPicLists ); 
656#if H_3D
657   m_tDecTop[ decIdx ]->setCamParsCollector( &m_cCamParsCollector );
658#endif
659
660    // append pic list of new decoder to PicLists
661    assert( m_ivPicLists.size() == m_numDecoders );
662    m_ivPicLists.push_back( m_tDecTop[ decIdx ]->getListPic() );
663
664    // create recon file related stuff     
665    Char* pchTempFilename = NULL;
666    if ( m_pchReconFile )
667    {     
668      Char buffer[4];     
669      sprintf(buffer,"_%i", layerId );
670      assert ( m_pchReconFile ); 
671      xAppendToFileNameEnd( m_pchReconFile , buffer, pchTempFilename );
672      assert( m_pchReconFiles.size() == m_numDecoders );
673    }
674
675    m_pchReconFiles.push_back( pchTempFilename );   
676
677    m_tVideoIOYuvReconFile[ decIdx ] = new TVideoIOYuv;
678    m_reconOpen           [ decIdx ] = false;
679
680    // set others
681    m_pocLastDisplay      [ decIdx ] = -MAX_INT;
682    m_layerIdToDecIdx     [ layerId ] = decIdx; 
683
684    m_numDecoders++; 
685  };
686  return decIdx;
687}
688#endif
689//! \}
Note: See TracBrowser for help on using the repository browser.