📄 dh263gob.cpp
字号:
#include "stdafx.h"
#include "color.h"
#include "DBitstream.h"
#include "sactable.h"
#include "sad.h"
#include "Dh263class.h"
DH263GOB::DH263GOB(void)
{
GOBBits.TotalBits=0;
GOBBits.GBSCBits=17;
GOBBits.GNBits=5;
GOBBits.GLCIBits=2;
GOBBits.GFIDBits=2;
GOBBits.GQUANTBits=5;
}
int DH263GOB::DecodeGOBHeader(BOOL CPM,DBitStream *InputStream)
{
do
{GOBInfo.GBSC=InputStream->ReadVarible(GOBBits.GBSCBits);
if (GOBInfo.GBSC==GOB_GBSC)
{InputStream->FlushBits(GOBBits.GBSCBits);
break;
}
else
InputStream->FlushBits(1);
}while (1);
GOBInfo.GroupNumber=InputStream->GetVarible(GOBBits.GNBits);
if (CPM)
GOBInfo.GLCI=InputStream->GetVarible(GOBBits.GLCIBits);
GOBInfo.GFID=InputStream->GetVarible(GOBBits.GFIDBits);
GOBInfo.GQUANT=InputStream->GetVarible(GOBBits.GQUANTBits);
return GOBInfo.GroupNumber;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -