Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: media/mp4/mp4_stream_parser.h

Issue 10710002: Add HE AAC support to ISO BMFF. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove unused entry from media.gyp Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mp4/es_descriptor_unittest.cc ('k') | media/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_MP4_MP4_STREAM_PARSER_H_ 5 #ifndef MEDIA_MP4_MP4_STREAM_PARSER_H_
6 #define MEDIA_MP4_MP4_STREAM_PARSER_H_ 6 #define MEDIA_MP4_MP4_STREAM_PARSER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/stream_parser.h" 13 #include "media/base/stream_parser.h"
14 #include "media/mp4/aac.h"
14 #include "media/mp4/offset_byte_queue.h" 15 #include "media/mp4/offset_byte_queue.h"
15 #include "media/mp4/track_run_iterator.h" 16 #include "media/mp4/track_run_iterator.h"
16 17
17 namespace media { 18 namespace media {
18 namespace mp4 { 19 namespace mp4 {
19 20
20 struct Movie; 21 struct Movie;
21 class BoxReader; 22 class BoxReader;
22 23
23 class MEDIA_EXPORT MP4StreamParser : public StreamParser { 24 class MEDIA_EXPORT MP4StreamParser : public StreamParser {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 79
79 mp4::TrackRunIterator runs_; 80 mp4::TrackRunIterator runs_;
80 81
81 scoped_ptr<mp4::Movie> moov_; 82 scoped_ptr<mp4::Movie> moov_;
82 83
83 bool has_audio_; 84 bool has_audio_;
84 bool has_video_; 85 bool has_video_;
85 uint32 audio_track_id_; 86 uint32 audio_track_id_;
86 uint32 video_track_id_; 87 uint32 video_track_id_;
87 88
88 // We keep this around to avoid having to go digging through the moov with 89 // We keep them around to avoid having to go digging through the moov with
89 // every frame. 90 // every frame.
91 AAC aac_;
90 uint8 size_of_nalu_length_; 92 uint8 size_of_nalu_length_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); 94 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser);
93 }; 95 };
94 96
95 } // namespace mp4 97 } // namespace mp4
96 } // namespace media 98 } // namespace media
97 99
98 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_ 100 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « media/mp4/es_descriptor_unittest.cc ('k') | media/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698