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
qtpktasmstub.cpp
Package: helix.src.0812.rar [view]
Upload User: zhongxx05
Upload Date: 2007-06-06
Package Size: 33641k
Code Size: 3k
Category:
Symbian
Development Platform:
C/C++
- /****************************************************************************
- *
- * $Id: qtpktasmstub.cpp,v 1.5 2003/08/01 22:36:56 jbloedow Exp $
- *
- * Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
- *
- * http://www.real.com/devzone
- *
- * This program contains proprietary
- * information of Progressive Networks, Inc, and is licensed
- * subject to restrictions on use and distribution.
- *
- *
- * Packet Assembler
- *
- */
- /****************************************************************************
- * Includes
- */
- #define QTASM_MAX_SEGMENT_FRAG 20
- /****************************************************************************
- * Includes
- */
- #include "qtffplin.h"
- #include "qtpktasm.h"
- #include "qtffrefcounter.h"
- /****************************************************************************
- * Class CQTPacketAssembler
- */
- /****************************************************************************
- * Constructor/Destructor
- */
- CQTPacketAssembler::CQTPacketAssembler(void)
- : m_lRefCount(0)
- , m_pSample(NULL)
- , m_pHintTrack(NULL)
- , m_pDataTrack(NULL)
- , m_pClassFactory(NULL)
- , m_pFileFormat(NULL)
- , m_pPacket(NULL)
- , m_pCurrentSegmentStart(NULL)
- , m_ulCurrentSegmentSize(0)
- , m_ulCurrentSegmentIdx(0)
- , m_ulSegmentFragments(0)
- {
- g_nRefCount_qtff++;
- }
- CQTPacketAssembler::~CQTPacketAssembler()
- {
- g_nRefCount_qtff--;
- }
- /****************************************************************************
- * Main Interface
- */
- /****************************************************************************
- * Init
- */
- HX_RESULT CQTPacketAssembler::Init(CQTFileFormat* pFileFormat)
- {
- return HXR_OK;
- }
- /****************************************************************************
- * SegmentReady
- */
- HX_RESULT CQTPacketAssembler::SegmentReady(HX_RESULT status,
- IHXBuffer *pBuffer,
- ULONG32 ulOffset,
- ULONG32 ulSize)
- {
- return HXR_NOTIMPL;
- }
- /****************************************************************************
- * IUnknown methods
- */
- /////////////////////////////////////////////////////////////////////////
- // Method:
- // IUnknown::QueryInterface
- //
- STDMETHODIMP CQTPacketAssembler::QueryInterface(REFIID riid, void** ppvObj)
- {
- if (IsEqualIID(riid, IID_IUnknown))
- {
- AddRef();
- *ppvObj = this;
- return HXR_OK;
- }
- *ppvObj = NULL;
- return HXR_NOINTERFACE;
- }
- /////////////////////////////////////////////////////////////////////////
- // Method:
- // IUnknown::AddRef
- //
- STDMETHODIMP_(ULONG32) CQTPacketAssembler::AddRef()
- {
- return InterlockedIncrement(&m_lRefCount);
- }
- /////////////////////////////////////////////////////////////////////////
- // Method:
- // IUnknown::Release
- //
- STDMETHODIMP_(ULONG32) CQTPacketAssembler::Release()
- {
- if (InterlockedDecrement(&m_lRefCount) > 0)
- {
- return m_lRefCount;
- }
- delete this;
- return 0;
- }