Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
fyf_demux.h
Package: sql_for_ali.rar [view]
Upload User: sunhongbo
Upload Date: 2022-01-25
Package Size: 3010k
Code Size: 8k
Category:
Database system
Development Platform:
C/C++
- /******************************************************************************/
- /* Copyright (c) 2008 Embedded Internet Solutions, Inc */
- /* All rights reserved. You are not allowed to copy or distribute */
- /* the code without permission. */
- /* This is the demo implenment of the Porting APIs needed by */
- /* MiddleWare. */
- /* Maybe you should modify it accorrding to Platform. */
- /* */
- /* $author szhy 2008/09/18 */
- /******************************************************************************/
- #ifndef __FYF_DEMUX_H__
- #define __FYF_DEMUX_H__
- typedef void (*FYF_DEMUX_NOTIFY_FUNC)(BU32 ch, BU32 filter, BU08 *buf, BS32 len);
- /* demux channel types */
- typedef enum {
- FYF_DEMUX_DATA_PSI_CHANNEL = 0,
- FYF_DEMUX_DATA_PES_CHANNEL,
- FYF_DEMUX_VIDEO_CHANNEL,
- FYF_DEMUX_AUDIO_CHANNEL,
- FYF_DEMUX_PCR_CHANNEL
- } FYF_DEMUX_CHANNEL_TYPE_e;
- typedef struct
- {
- BS32 (*FYF_CPI_demux_set_notify)(FYF_DEMUX_NOTIFY_FUNC func);
- BU32 (*FYF_CPI_demux_create_channel)(BS32 poolsize, FYF_DEMUX_CHANNEL_TYPE_e type);
- BS32 (*FYF_CPI_demux_set_channel_pid)(BU32 channel, BS16 pid);
- BS32 (*FYF_CPI_demux_destroy_channel)(BU32 channel);
- BS32 (*FYF_CPI_demux_start_channel)(BU32 channel);
- BS32 (*FYF_CPI_demux_stop_channel)(BU32 channel);
- BU32 (*FYF_CPI_demux_create_filter)(BU32 channel);
- BS32 (*FYF_CPI_demux_set_filter)(BU32 channel, BU32 filter, BU32 wide, BU08 coef[], BU08 mask[], BU08 excl[]);
- BS32 (*FYF_CPI_demux_destroy_filter)(BU32 channel, BU32 filter);
- BS32 (*FYF_CPI_demux_enable_filter)(BU32 channel, BU32 filter);
- BS32 (*FYF_CPI_demux_disable_filter)(BU32 channel, BU32 filter);
- }FYF_DEMUX_PORTING;
- /******************************************************************************/
- /*Description: register demux */
- /*Input : porting */
- /*Output : no */
- /*Return : no */
- /******************************************************************************/
- void FYF_API_demux_register(FYF_DEMUX_PORTING *porting);
- /******************************************************************************/
- /*Description: set notify func */
- /*Input : func */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_set_notify(FYF_DEMUX_NOTIFY_FUNC func);
- /******************************************************************************/
- /*Description: create channel */
- /*Input : poolsize,type */
- /*Output : no */
- /*Return : >0 success, 0 failure */
- /******************************************************************************/
- BU32 FYF_API_demux_create_channel(BS32 poolsize, FYF_DEMUX_CHANNEL_TYPE_e type);
- /******************************************************************************/
- /*Description: set channel pid */
- /*Input : channel,pid */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_set_channel_pid(BU32 channel, BS16 pid);
- /******************************************************************************/
- /*Description: set channel pid */
- /*Input : channel,pid */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_destroy_channel(BU32 channel);
- /******************************************************************************/
- /*Description: start channel */
- /*Input : channel */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_start_channel(BU32 channel);
- /******************************************************************************/
- /*Description: stop channel */
- /*Input : channel */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_stop_channel(BU32 channel);
- /******************************************************************************/
- /*Description: create filter */
- /*Input : channel */
- /*Output : no */
- /*Return : >0 success, 0 failure */
- /******************************************************************************/
- BU32 FYF_API_demux_create_filter(BU32 channel);
- /******************************************************************************/
- /*Description: set filter */
- /*Input : channel,filter,wide,coef,mask,excl */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_set_filter(BU32 channel, BU32 filter, BU32 wide, BU08 coef[], BU08 mask[], BU08 excl[]);
- /******************************************************************************/
- /*Description: destroy filter */
- /*Input : channel,filter */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_destroy_filter(BU32 channel, BU32 filter);
- /******************************************************************************/
- /*Description: enable filter */
- /*Input : channel,filter */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_enable_filter(BU32 channel, BU32 filter);
- /******************************************************************************/
- /*Description: disable filter */
- /*Input : channel,filter */
- /*Output : no */
- /*Return : 0 success, -1 failure */
- /******************************************************************************/
- BS32 FYF_API_demux_disable_filter(BU32 channel, BU32 filter);
- #endif