Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.0 KiB

  1. /*
  2. @NXCuobt@iHALɓnj̊ǗNX
  3. @iNP2)@Sachiko Yasukawa
  4. */
  5. #include "stdafx.h"
  6. #include "includes.h"
  7. #include "classlib.h"
  8. CClassLibBuffer::CClassLibBuffer( void )
  9. {
  10. m_pNext = NULL;
  11. m_pStream = NULL;
  12. m_pMPEGBoardBuffer = NULL;
  13. m_fEnd = FALSE;
  14. };
  15. CClassLibBuffer::CClassLibBuffer(IMBoardListItem *pBuffer, CBaseStream *pStream, DWORD PageNum)
  16. {
  17. m_pNext = NULL;
  18. m_PageNum = PageNum;
  19. m_pMPEGBoardBuffer = (IMPEGBuffer *)pBuffer;
  20. m_pStream = pStream;
  21. m_fEnd = FALSE;
  22. };
  23. CClassLibBuffer::CClassLibBuffer(IMBoardListItem *pBuffer, CBaseStream *pStream, DWORD PageNum, DWORD Size, DWORD Add, DWORD LinAdd, DWORD flag)
  24. {
  25. m_pNext = NULL;
  26. m_PageNum = PageNum;
  27. m_Size = Size;
  28. m_Add = (UCHAR *)Add;
  29. m_LinAdd = (UCHAR *)LinAdd;
  30. m_flag = flag;
  31. m_pMPEGBoardBuffer = (IMPEGBuffer *)pBuffer;
  32. m_pStream = pStream;
  33. m_fEnd = FALSE;
  34. };
  35. void CClassLibBuffer::SetParam(IMBoardListItem *pBuffer, CBaseStream *pStream, DWORD PageNum, DWORD Size, DWORD Add, DWORD LinAdd, DWORD flag)
  36. {
  37. m_pNext = NULL;
  38. m_PageNum = PageNum;
  39. m_Size = Size;
  40. m_Add = (UCHAR *)Add;
  41. m_LinAdd = (UCHAR *)LinAdd;
  42. m_flag = flag;
  43. m_pMPEGBoardBuffer = (IMPEGBuffer *)pBuffer;
  44. m_pStream = pStream;
  45. m_fEnd = FALSE;
  46. };
  47. //�T�C�Y�̎擾
  48. DWORD CClassLibBuffer::GetSize()
  49. {
  50. // ASSERT(m_pMPEGBoardBuffer);
  51. // return m_pMPEGBoardBuffer->GetPageSize(m_PageNum);
  52. // DBG_PRINTF(("CLASSLIB: ClassLibBufSize = %u\n", m_Size));
  53. return m_Size;
  54. }
  55. //�t���O�̎擾
  56. DWORD CClassLibBuffer::Flags()
  57. {
  58. //ASSERT(m_pMPEGBoardBuffer);
  59. //return m_pMPEGBoardBuffer->GetBufferFlag();
  60. // DBG_PRINTF(("CLASSLIB: ClassLibBufFlag = %u\n", m_flag));
  61. return m_flag;
  62. }
  63. //�o�b�t�@�ւ̃|�C���^
  64. BYTE *CClassLibBuffer::GetBuffPointer()
  65. {
  66. //ASSERT(m_pMPEGBoardBuffer);
  67. //m_pMPEGBoardBuffer->GetPagePointer(m_PageNum, &pLinear, &pPhys);
  68. //return (BYTE *)pPhys;
  69. // DBG_PRINTF(("CLASSLIB: ClassLibBufPointer = 0x%X\n", (DWORD)m_Add));
  70. return m_Add;
  71. }
  72. //�o�b�t�@�ւ̃|�C���^�����j�A�A�h���X�ł�����
  73. BYTE *CClassLibBuffer::GetLinBuffPointer()
  74. {
  75. return m_LinAdd;
  76. }