91 lines
2 KiB
C++
91 lines
2 KiB
C++
|
/*
|
|||
|
<EFBFBD>@<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>b<EFBFBD>t<EFBFBD>@<EFBFBD>iHAL<EFBFBD>ɓn<EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>̊Ǘ<EFBFBD><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>X
|
|||
|
<EFBFBD>@<EFBFBD>iNP2)<EFBFBD>@Sachiko Yasukawa
|
|||
|
*/
|
|||
|
#include "stdafx.h"
|
|||
|
|
|||
|
#include "includes.h"
|
|||
|
#include "classlib.h"
|
|||
|
|
|||
|
CClassLibBuffer::CClassLibBuffer( void )
|
|||
|
{
|
|||
|
m_pNext = NULL;
|
|||
|
m_pStream = NULL;
|
|||
|
m_pMPEGBoardBuffer = NULL;
|
|||
|
m_fEnd = FALSE;
|
|||
|
};
|
|||
|
|
|||
|
CClassLibBuffer::CClassLibBuffer(IMBoardListItem *pBuffer, CBaseStream *pStream, DWORD PageNum)
|
|||
|
{
|
|||
|
m_pNext = NULL;
|
|||
|
m_PageNum = PageNum;
|
|||
|
m_pMPEGBoardBuffer = (IMPEGBuffer *)pBuffer;
|
|||
|
m_pStream = pStream;
|
|||
|
m_fEnd = FALSE;
|
|||
|
};
|
|||
|
|
|||
|
CClassLibBuffer::CClassLibBuffer(IMBoardListItem *pBuffer, CBaseStream *pStream, DWORD PageNum, DWORD Size, DWORD Add, DWORD LinAdd, DWORD flag)
|
|||
|
{
|
|||
|
m_pNext = NULL;
|
|||
|
m_PageNum = PageNum;
|
|||
|
m_Size = Size;
|
|||
|
m_Add = (UCHAR *)Add;
|
|||
|
m_LinAdd = (UCHAR *)LinAdd;
|
|||
|
m_flag = flag;
|
|||
|
m_pMPEGBoardBuffer = (IMPEGBuffer *)pBuffer;
|
|||
|
m_pStream = pStream;
|
|||
|
m_fEnd = FALSE;
|
|||
|
};
|
|||
|
|
|||
|
void CClassLibBuffer::SetParam(IMBoardListItem *pBuffer, CBaseStream *pStream, DWORD PageNum, DWORD Size, DWORD Add, DWORD LinAdd, DWORD flag)
|
|||
|
{
|
|||
|
m_pNext = NULL;
|
|||
|
m_PageNum = PageNum;
|
|||
|
m_Size = Size;
|
|||
|
m_Add = (UCHAR *)Add;
|
|||
|
m_LinAdd = (UCHAR *)LinAdd;
|
|||
|
m_flag = flag;
|
|||
|
m_pMPEGBoardBuffer = (IMPEGBuffer *)pBuffer;
|
|||
|
m_pStream = pStream;
|
|||
|
m_fEnd = FALSE;
|
|||
|
};
|
|||
|
|
|||
|
//<2F>T<EFBFBD>C<EFBFBD>Y<EFBFBD>̎擾
|
|||
|
DWORD CClassLibBuffer::GetSize()
|
|||
|
{
|
|||
|
// ASSERT(m_pMPEGBoardBuffer);
|
|||
|
|
|||
|
// return m_pMPEGBoardBuffer->GetPageSize(m_PageNum);
|
|||
|
// DBG_PRINTF(("CLASSLIB: ClassLibBufSize = %u\n", m_Size));
|
|||
|
return m_Size;
|
|||
|
}
|
|||
|
|
|||
|
//<2F>t<EFBFBD><74><EFBFBD>O<EFBFBD>̎擾
|
|||
|
DWORD CClassLibBuffer::Flags()
|
|||
|
{
|
|||
|
//ASSERT(m_pMPEGBoardBuffer);
|
|||
|
|
|||
|
//return m_pMPEGBoardBuffer->GetBufferFlag();
|
|||
|
// DBG_PRINTF(("CLASSLIB: ClassLibBufFlag = %u\n", m_flag));
|
|||
|
return m_flag;
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
//<2F>o<EFBFBD>b<EFBFBD>t<EFBFBD>@<40>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^
|
|||
|
BYTE *CClassLibBuffer::GetBuffPointer()
|
|||
|
{
|
|||
|
//ASSERT(m_pMPEGBoardBuffer);
|
|||
|
|
|||
|
//m_pMPEGBoardBuffer->GetPagePointer(m_PageNum, &pLinear, &pPhys);
|
|||
|
//return (BYTE *)pPhys;
|
|||
|
|
|||
|
// DBG_PRINTF(("CLASSLIB: ClassLibBufPointer = 0x%X\n", (DWORD)m_Add));
|
|||
|
return m_Add;
|
|||
|
}
|
|||
|
|
|||
|
//<2F>o<EFBFBD>b<EFBFBD>t<EFBFBD>@<40>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>A<EFBFBD>A<EFBFBD>h<EFBFBD><68><EFBFBD>X<EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
BYTE *CClassLibBuffer::GetLinBuffPointer()
|
|||
|
{
|
|||
|
return m_LinAdd;
|
|||
|
}
|