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

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

Fixes to RefPicList modification.

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