mirror of https://github.com/tongzx/nt5src
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.
53 lines
1.4 KiB
53 lines
1.4 KiB
//***************************************************************************
|
|
//
|
|
// Title : CCData.h
|
|
//
|
|
// Date : 1998.03.26 1st making
|
|
//
|
|
// Author : Toshiba [NPC](NP2) Hiroyuki Oka
|
|
//
|
|
// Copyright 1998 Toshiba Corporation. All Rights Reserved.
|
|
//
|
|
// -------------------------------------------------------------------------
|
|
//
|
|
// Change Log :
|
|
//
|
|
// Date Revision Description
|
|
// ------------ ---------- -----------------------------------------------
|
|
//
|
|
//***************************************************************************
|
|
// $Header: /DVD Drivers/Sources/ZiVAHAL/userdata.h 1 98/04/20 7:30p Hero $
|
|
// $Modtime: 98/03/30 7:13p $
|
|
// $Nokeywords: $
|
|
//***************************************************************************
|
|
|
|
#ifndef _CCDATA_H_
|
|
#define _CCDATA_H_
|
|
|
|
// 1GOP分のline21データ領域の確保(header + 36field * data_size + alpha)
|
|
// data_sizeに応じてデータ領域を確保したほうがいいかも
|
|
#define USER_DATA_SIZE (5+36*3+10)
|
|
|
|
// クローズドキャプション用リングバッファのサイズ(DWORD)
|
|
#define CC_DATA_SIZE 90
|
|
|
|
class CUserData
|
|
{
|
|
public:
|
|
CUserData(void);
|
|
~CUserData(void);
|
|
|
|
BOOL Init();
|
|
BOOL Set(DWORD data);
|
|
BYTE Get(DWORD number);
|
|
BOOL DataCopy(PVOID pDestPoint, DWORD dwSize);
|
|
DWORD GetDataSize();
|
|
private:
|
|
BYTE data[USER_DATA_SIZE];
|
|
DWORD m_DataSize;
|
|
DWORD m_DataPoint;
|
|
|
|
//friend CMPEGBoardHAL;
|
|
};
|
|
|
|
#endif // _CCDATA_H_
|