📄 ancillarypacket.h
字号:
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* This software is provided "AS IS" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of noninfringement, merchantability and/or
* fitness for a particular purpose.
* ---------------------------------------------------------------
*
* Copyright (c) 2008 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
#ifndef _ANCILLARY_PACKET_H_
#define _ANCILLARY_PACKET_H_
extern "C"
{
#include <wdm.h>
}
#include <windef.h>
#include <ks.h>
#include <ksmedia.h>
#define MAX_ANCILLARY_PACKET_BYTES 64 //Max audio packet is 23
//Max teletext packet is 51 bytes
class AncillaryPacket
{
public:
AncillaryPacket();
DWORD submitData(PBYTE p_data, DWORD bytes_available);
//Check if the current packet is complete
BOOLEAN isPacketComplete();
//Get the buffer to give to one of the parse buffer classes
PBYTE getBuffer(PDWORD p_buffer_size);
//Clear any part of a buffer left in the class
VOID clearData();
BYTE getDataID();
protected:
BOOLEAN verifyHeader();
private:
BYTE _data_buffer[MAX_ANCILLARY_PACKET_BYTES];
DWORD _bytes_in_buffer;
DWORD _bytes_expected;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -