mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 06:07:56 +03:00
35 lines
658 B
C++
35 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;
|
|
}
|