summaryrefslogtreecommitdiffstats
path: root/media/mp4/es_descriptor.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-17 00:08:40 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-17 00:08:40 +0000
commit7ae09bee4a843369b1a5b8a459ddb2b556ae24fd (patch)
tree7726f5e5f1fdfee15ae98817e7c255b5254943f9 /media/mp4/es_descriptor.h
parent17bcc311f6e378e7c47389a073de53a4d798c7e8 (diff)
downloadchromium_src-7ae09bee4a843369b1a5b8a459ddb2b556ae24fd.zip
chromium_src-7ae09bee4a843369b1a5b8a459ddb2b556ae24fd.tar.gz
chromium_src-7ae09bee4a843369b1a5b8a459ddb2b556ae24fd.tar.bz2
Revert 145769 (broke test stream, removed needed HasMoreRBSPData, added extra ops) - Add HE AAC support to ISO BMFF.
Also abstract common code in H264BitReader into BitReader for reusing. Was: https://chromiumcodereview.appspot.com/10710002/ In the submitted patch of the last issue, the media.gyp included a non-existing file. This error hadn't been caught by try but later got caught by the build process and reverted the commit. So I create this issue to submit the fixed patch. BUG=134445 TEST=BitReaderTest, AACTest Review URL: https://chromiumcodereview.appspot.com/10753005 TBR=xiaomings@google.com Review URL: https://chromiumcodereview.appspot.com/10779025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/mp4/es_descriptor.h')
-rw-r--r--media/mp4/es_descriptor.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/media/mp4/es_descriptor.h b/media/mp4/es_descriptor.h
deleted file mode 100644
index daddbc0..0000000
--- a/media/mp4/es_descriptor.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_MP4_ES_DESCRIPTOR_H_
-#define MEDIA_MP4_ES_DESCRIPTOR_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "media/base/media_export.h"
-
-namespace media {
-
-class BitReader;
-
-namespace mp4 {
-
-// The following values are extracted from ISO 14496 Part 1 Table 5 -
-// objectTypeIndication Values. Only values currently in use are included.
-enum ObjectType {
- kForbidden = 0,
- kISO_14496_3 = 0x40 // MPEG4 AAC
-};
-
-// This class parse object type and decoder specific information from an
-// elementary stream descriptor, which is usually contained in an esds box.
-// Please refer to ISO 14496 Part 1 7.2.6.5 for more details.
-class MEDIA_EXPORT ESDescriptor {
- public:
- ESDescriptor();
- ~ESDescriptor();
-
- bool Parse(const std::vector<uint8>& data);
-
- uint8 object_type() const;
- const std::vector<uint8>& decoder_specific_info() const;
-
- private:
- enum Tag {
- kESDescrTag = 0x03,
- kDecoderConfigDescrTag = 0x04,
- kDecoderSpecificInfoTag = 0x05
- };
-
- bool ParseDecoderConfigDescriptor(BitReader* reader);
- bool ParseDecoderSpecificInfo(BitReader* reader);
-
- uint8 object_type_;
- std::vector<uint8> decoder_specific_info_;
-};
-
-} // namespace mp4
-
-} // namespace media
-
-#endif // MEDIA_MP4_ES_DESCRIPTOR_H_