| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 // The TimeTuple struct is used to hold the needed timestamp data needed for | 66 // The TimeTuple struct is used to hold the needed timestamp data needed for |
| 67 // enqueuing a video frame. | 67 // enqueuing a video frame. |
| 68 struct TimeTuple { | 68 struct TimeTuple { |
| 69 base::TimeDelta timestamp; | 69 base::TimeDelta timestamp; |
| 70 base::TimeDelta duration; | 70 base::TimeDelta duration; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 enum DecoderState { | 73 enum DecoderState { |
| 74 kUnInitialized, | 74 kUnInitialized, |
| 75 kInitializing, |
| 75 kNormal, | 76 kNormal, |
| 76 kFlushCodec, | 77 kFlushCodec, |
| 77 kDecodeFinished, | 78 kDecodeFinished, |
| 78 kPausing, | 79 kPausing, |
| 79 kFlushing, | 80 kFlushing, |
| 80 kStopped | 81 kStopped |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 void OnFlushComplete(FilterCallback* callback); | 84 void OnFlushComplete(FilterCallback* callback); |
| 84 void OnSeekComplete(FilterCallback* callback); | 85 void OnSeekComplete(FilterCallback* callback); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 // Pointer to the demuxer stream that will feed us compressed buffers. | 133 // Pointer to the demuxer stream that will feed us compressed buffers. |
| 133 scoped_refptr<DemuxerStream> demuxer_stream_; | 134 scoped_refptr<DemuxerStream> demuxer_stream_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); | 136 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace media | 139 } // namespace media |
| 139 | 140 |
| 140 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 141 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| OLD | NEW |