Play-/Source/IPU_MacroblockTypeITable.cpp
jpd002 0c5fb983fd Moved remotely
git-svn-id: http://svn.purei.org/purei/trunk@40 b36208d7-6611-0410-8bec-b1987f11c4a2
2006-06-15 04:19:30 +00:00

36 lines
658 B
C++

#include <string.h>
#include "IPU_MacroblockTypeITable.h"
using namespace IPU;
using namespace MPEG2;
VLCTABLEENTRY CMacroblockTypeITable::m_pTable[ENTRYCOUNT] =
{
{ 0x0001, 1, 0x00010001 },
{ 0x0001, 2, 0x00020011 },
};
unsigned int CMacroblockTypeITable::m_pIndexTable[MAXBITS] =
{
0,
1,
};
CVLCTable* CMacroblockTypeITable::m_pInstance = NULL;
CMacroblockTypeITable::CMacroblockTypeITable() :
CVLCTable(MAXBITS, m_pTable, ENTRYCOUNT, m_pIndexTable)
{
}
CVLCTable* CMacroblockTypeITable::GetInstance()
{
if(m_pInstance == NULL)
{
m_pInstance = new CMacroblockTypeITable();
}
return m_pInstance;
}