| OLD | NEW |
| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // retained after all 'mdat' information has been read. | 57 // retained after all 'mdat' information has been read. |
| 58 // Returns 'true' on success, 'false' if there was an error. | 58 // Returns 'true' on success, 'false' if there was an error. |
| 59 bool ReadAndDiscardMDATsUntil(const int64 offset); | 59 bool ReadAndDiscardMDATsUntil(const int64 offset); |
| 60 | 60 |
| 61 void ChangeState(State new_state); | 61 void ChangeState(State new_state); |
| 62 | 62 |
| 63 bool EmitConfigs(); | 63 bool EmitConfigs(); |
| 64 bool PrepareAVCBuffer(const AVCDecoderConfigurationRecord& avc_config, | 64 bool PrepareAVCBuffer(const AVCDecoderConfigurationRecord& avc_config, |
| 65 std::vector<uint8>* frame_buf, | 65 std::vector<uint8>* frame_buf, |
| 66 std::vector<SubsampleEntry>* subsamples) const; | 66 std::vector<SubsampleEntry>* subsamples) const; |
| 67 bool PrepareAACBuffer(const AAC& aac_config, |
| 68 std::vector<uint8>* frame_buf, |
| 69 std::vector<SubsampleEntry>* subsamples) const; |
| 67 bool EnqueueSample(BufferQueue* audio_buffers, | 70 bool EnqueueSample(BufferQueue* audio_buffers, |
| 68 BufferQueue* video_buffers, | 71 BufferQueue* video_buffers, |
| 69 bool* err); | 72 bool* err); |
| 70 bool SendAndFlushSamples(BufferQueue* audio_buffers, | 73 bool SendAndFlushSamples(BufferQueue* audio_buffers, |
| 71 BufferQueue* video_buffers); | 74 BufferQueue* video_buffers); |
| 72 | 75 |
| 73 void Reset(); | 76 void Reset(); |
| 74 | 77 |
| 75 State state_; | 78 State state_; |
| 76 InitCB init_cb_; | 79 InitCB init_cb_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 102 uint32 video_track_id_; | 105 uint32 video_track_id_; |
| 103 bool has_sbr_; | 106 bool has_sbr_; |
| 104 | 107 |
| 105 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); | 108 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); |
| 106 }; | 109 }; |
| 107 | 110 |
| 108 } // namespace mp4 | 111 } // namespace mp4 |
| 109 } // namespace media | 112 } // namespace media |
| 110 | 113 |
| 111 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_ | 114 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_ |
| OLD | NEW |