[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-datatype-cvs
Subject: [Datatype-cvs] avi/fileformat avistrm.cpp,1.10.2.8,1.10.2.9
From: jrathore () helixcommunity ! org
Date: 2008-12-24 0:56:00
Message-ID: 200812240057.mBO0vbjg010114 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/datatype/avi/fileformat
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv5117
Modified Files:
Tag: hxclient_3_1_0_atlas
avistrm.cpp
Log Message:
Modified by: jrathore@real.com
Date: 12/18/08
Project: Helix DNA Client
Synopsis: Adding support for H.264 in AVI file format
Overview: This change enables playback of H.264 video inside an AVI file. There is no \
AVC Decoder Configuration Record found in such type of files and the Sequence \
Parameter Set (SPS) and Picture Parameter Set (PPS) are within the frames. However \
this means that we do not have the NALUSizeField available and we have to compute the \
appropriate number of bytes for decoding differently.
Files Added: None
Files Modified:
avistrm.cpp (/datatype/avi/fileformat/avistrm.cpp)
avcconfig.cpp (/datatype/mp4/common/avcconfig.cpp)
avcconfig.h (/datatype/mp4/common/pub/avcconfig.h)
mp4vpyld.cpp (/datatype/mp4/payload/mp4vpyld.cpp)
mp4vdec.cpp (/datatype/mp4/video/renderer/mp4vdec.cpp)
avc1dstm.cpp (datatype-restricted/h264/codec/decoder/frontend/avc1dstm.cpp)
avc1dstm.h (datatype-restricted/h264/codec/decoder/frontend/pub/avc1dstm.h)
Image Size and Heap Use impact (Client -Only): None
Platforms and Profiles Affected:
Platform: win32-i386-vc7
Profile: helix-client-all-defines
Platforms and Profiles Build and Functionality Verified:
Platform: win32-i386-vc7
Profile: helix-client-all-defines
target(s): splay
Branch: hxclient_3_1_0_atlas, HEAD
Copyright assignment: I am a RealNetworks employee.
Files Attached: avc-in-avi.diff
-
Index: avistrm.cpp
===================================================================
RCS file: /cvsroot/datatype/avi/fileformat/avistrm.cpp,v
retrieving revision 1.10.2.8
retrieving revision 1.10.2.9
diff -u -d -r1.10.2.8 -r1.10.2.9
--- avistrm.cpp 3 Dec 2008 01:35:01 -0000 1.10.2.8
+++ avistrm.cpp 24 Dec 2008 00:55:57 -0000 1.10.2.9
@@ -254,6 +254,9 @@
#define VIDEO_FORMAT_DV50 HX_MAKE4CC('0', '5', 'V', 'D')
#define VIDEO_FORMAT_XVID HX_MAKE4CC('D', 'I', 'V', 'X')
#define VIDEO_FORMAT_xvid HX_MAKE4CC('d', 'i', 'v', 'x')
+#define VIDEO_FORMAT_H264 HX_MAKE4CC('4', '6', '2', 'H')
+#define VIDEO_FORMAT_AVC1 HX_MAKE4CC('1', 'C', 'V', 'A')
+
#define AVI_LIST_OBJECT 0x4c495354 /* 'LIST' */
#define AVI_RECORD_TYPE 0x72656320 /* 'rec ' */
@@ -682,6 +685,12 @@
{
strcpy(szStreamName, "Video Track");
strcpy (szMimeType, "video/X-HX-DIVX");
+ }
+ else if ((m_header.ulHandler == VIDEO_FORMAT_H264) ||
+ (m_header.ulHandler == VIDEO_FORMAT_AVC1))
+ {
+ strcpy(szStreamName, "Video Track");
+ strcpy(szMimeType, "video/X-HX-AVC1");
}
else if (m_header.ulHandler == AVI_H261_VIDEO)
{
_______________________________________________
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