⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transportstream.h

📁 完整的基于Conxant平台的USB电视棒的WIN驱动程序。
💻 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 _TRANSPORT_STREAM_DATA_H_
#define _TRANSPORT_STREAM_DATA_H_

extern "C"
{
    #include <wdm.h>
}
#include <windef.h>
#include <ks.h>
#include <ksmedia.h>
#include "BasePin.h"
class PolarisUsbInterface;

class TransportStream
{
public:
	TransportStream();
	~TransportStream();
    VOID submitDataBuffer(PBYTE buffer, DWORD buffer_size);
    VOID setPin(BasePin* p_pin);
    VOID releasePin(BasePin* p_pin);
    VOID Initialize(PolarisUsbInterface*);
    VOID notifyPinFormatChange(BasePin* p_pin);
    VOID dumpfile(PBYTE p_data, DWORD buffer_size);
 
protected:
  
private:

	BasePin*            _p_pin;
	KMUTEX              _mutex;
	PKSSTREAM_POINTER   _p_current_buffer;
	ULONG				_buffer_offset;
    BOOL                _ts_stream_state; // 0 - resume , 1 - pause
    PolarisUsbInterface*        _p_usb_firmware;
    UCHAR               _reset_streaming_counter;
    UCHAR               _p_zero_data_buf[188];

   HANDLE     _file_handle;

};

#endif  //_TRANSPORT_STREAM_DATA_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -