[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-datatype-cvs
Subject:    [Datatype-cvs] mpg/common/pub mpgvidcommon.h,NONE,1.2.2.2
From:       kliu () helixcommunity ! org
Date:       2011-04-29 2:15:30
Message-ID: 201104290215.p3T2FFve011118 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/datatype/mpg/common/pub
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv15380/common/pub

Added Files:
      Tag: hxclient_3_6_5_atlas
	mpgvidcommon.h 
Log Message:
Modified by: kliu@real.com 
Date: 04/29/2011
Project: RealPlayer for LephoneTD

Synopsis: Porting MPEG1/2 TS support to 365 from HEAD

Overview: Porting files for MPEG1/2 TS support to 365 from HEAD based on Jamie's \
                recommendations.  Files were gathered based on the following commited \
                CR's:
CR: mpeg-1/2 video TS support in producer
CR: add log 4cc for MPEG video
CR: MPEG-1/2 video in TS streams and files
CR: MPEG-1/2 video depacketizer

Files Added:
datatype/mpg/common/pub/mpgvidcommon.h
datatype/mpg/common/mpgvidcommon.cpp
datatype/mpg/payload/mpvespyld.cpp
datatype/mpg/payload/Umakefil
datatype/mpg/payload/pub/mpvespyld.h
datatype/mpeg2ts/demuxer/payload/mpvpayload.cpp
datatype/mpeg2ts/demuxer/pub/mpvpayload.h
datatype/mpeg2ts/stream/guids.cpp
datatype/mpeg2ts/stream/tsstreamff.cpp
datatype/mpeg2ts/stream/tsstreamff.ver
datatype/mpeg2ts/stream/Umakefil
datatype/mpeg2ts/stream/pub
datatype/mpeg2ts/stream/pub/tsstreamff.h

Files Modified:
datatype/mp4/video/renderer/dllumakefil
datatype/mp4/video/renderer/libumakefil
datatype/mp4/video/renderer/mp4vdec.cpp
datatype/mp4/video/renderer/mp4vdfmt.cpp
datatype/mp4/video/renderer/mp4video.cpp

datatype/mpeg2ts/demuxer/payload/aacpayload.cpp
datatype/mpeg2ts/demuxer/payload/h264payload.cpp
datatype/mpeg2ts/demuxer/pub/aacpayload.h
datatype/mpeg2ts/demuxer/pub/h264payload.h
datatype/mpeg2ts/demuxer/pub/tsdemuxer.h
datatype/mpeg2ts/demuxer/tsdemuxer.cpp
datatype/mpeg2ts/demuxer/Umakefil
datatype/mpeg2ts/fileformat/tsfformat.cpp
datatype/mpeg2ts/fileformat/Umakefil

common/include/ihxtlogsystem.h
client/build/BIF/hxclient_3_6_5_atlas.bif

Image Size and Heap Use impact (Client -Only): 
None

Platforms and Profiles Affected: 
Platform: android-2.3-arm-smdk_c110
Profile: helix-client-android-full

Distribution Libraries Affected: 
None 

Distribution library impact and planned action: 
None 

Platforms and Profiles Build Verified: 
Platform: android-2.3-arm-smdk_c110
Profile: helix-client-android-full

Platforms and Profiles Functionality verified: 
Platform: android-2.3-arm-smdk_c110
Profile: helix-client-android-full

Branch: 365atlas
 
Copyright assignment: I am a RealNetworks employee or contractor


--- NEW FILE: mpgvidcommon.h ---
/* ***** BEGIN LICENSE BLOCK *****
 * Source last modified: $Id: mpgvidcommon.h,v 1.2.2.2 2011/04/29 02:15:28 kliu Exp $
 * 
 * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.
 * 
 * The contents of this file, and the files included with this file,
 * are subject to the current version of the RealNetworks Public
 * Source License (the "RPSL") available at
 * http://www.helixcommunity.org/content/rpsl unless you have licensed
 * the file under the current version of the RealNetworks Community
 * Source License (the "RCSL") available at
 * http://www.helixcommunity.org/content/rcsl, in which case the RCSL
 * will apply. You may also obtain the license terms directly from
 * RealNetworks.  You may not use this file except in compliance with
 * the RPSL or, if you have a valid RCSL with RealNetworks applicable
 * to this file, the RCSL.  Please see the applicable RPSL or RCSL for
 * the rights, obligations and limitations governing use of the
 * contents of the file.
 * 
 * Alternatively, the contents of this file may be used under the
 * terms of the GNU General Public License Version 2 (the
 * "GPL") in which case the provisions of the GPL are applicable
 * instead of those above. If you wish to allow use of your version of
 * this file only under the terms of the GPL, and not to allow others
 * to use your version of this file under the terms of either the RPSL
 * or RCSL, indicate your decision by deleting the provisions above
 * and replace them with the notice and other provisions required by
 * the GPL. If you do not delete the provisions above, a recipient may
 * use your version of this file under the terms of any one of the
 * RPSL, the RCSL or the GPL.
 * 
 * This file is part of the Helix DNA Technology. RealNetworks is the
 * developer of the Original Code and owns the copyrights in the
 * portions it created.
 * 
 * This file, and the files included with this file, is distributed
 * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
 * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
 * ENJOYMENT OR NON-INFRINGEMENT.
 * 
 * Technology Compatibility Kit Test Suite(s) Location:
 *    http://www.helixcommunity.org/content/tck
 * 
 * Contributor(s):
 * 
 * ***** END LICENSE BLOCK ***** */

#ifndef _MPGVIDCOMMON_H_
#define _MPGVIDCOMMON_H_

enum MPEG_VIDEO_START_CODE
{ 
    PICTURE_START_CODE  = 0x00000100,
    USER_DATA_CODE      = 0x000001b2,
    SEQ_START_CODE      = 0x000001b3,
    SEQ_ERROR_CODE      = 0x000001b4,
    EXT_DATA_START_CODE = 0x000001b5,
    SEQUENCE_CODE_END   = 0x000001b7,
    GROUP_START_CODE    = 0x000001b8,
    ISO_END_CODE        = 0x000001b9,
    PACK_HEADER         = 0x000001ba,
    SYSTEM_HEADER       = 0x000001bb,
    PRIVATE_STREAM_1    = 0x000001bd,
    PADDING_PACKET      = 0x000001be,
    PRIVATE_STREAM_2    = 0x000001bf,
    VIDEO_PACKET        = 0x000001e0,
    AUDIO_PACKET        = 0x000001c0,

    NO_START_CODE       = 0xffffffff
};        

enum MPEG_VIDEO_EXTENSION_ID
{
    SEQUENCE_EXT_ID     = 0x10,
    SEQ_DISPLAY_EXT_ID  = 0x20,
    QUANT_MATRIX_EXT_ID = 0x30,
    COPYRIGHT_EXT_ID    = 0x40,
    SEQ_SCALABLE_EXT_ID = 0x50,
    PIC_DISPLAY_EXT_ID  = 0x70,
    PIC_CODING_EXT_ID   = 0x80,
    PIC_SPATIAL_EXT_ID  = 0x90,
    PIC_TEMPORAL_EXT_ID = 0xa0,

    NO_EXTENSION_ID     = 0xff
};

struct MPEGVideoSeq
{
    UINT32      ulBufSize;
    UINT32      ulWidth;
    UINT32      ulHeight;
    UINT32      ulBitRate;
    UINT32      ulFirstPacketTime;
    UINT32      ulLastScr;
    HXBOOL      bMPEG2;

    UINT32      ulFramesPerMSec;
    double      dFrameTime;

};


BYTE* FindNextStartCode(BYTE* pData, UINT32 ulSize);
UINT32 GetStartCode(BYTE** ppBuffer, UINT32& ulBytes);
UINT32 ParseSequenceHeader(BYTE* pBuffer, UINT32 ulSize, MPEGVideoSeq* pInfo);
HXBOOL ParseSequenceExtHeader(BYTE* pBuffer, UINT32 ulSize, MPEGVideoSeq* pInfo);

#endif /* _MPGVIDCOMMON_H_ */



_______________________________________________
Datatype-cvs mailing list
Datatype-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/datatype-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic