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

Last change on this file since 459 was 459, checked in by hhi, 11 years ago

Integation of depth intra methods in macro H_3D_DIM, including:

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