OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BASE_ANDROID_MEDIA_DECODER_JOB_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // Callback to run when the current Decode() operation completes. | 145 // Callback to run when the current Decode() operation completes. |
146 DecoderCallback decode_cb_; | 146 DecoderCallback decode_cb_; |
147 | 147 |
148 // The current access unit being processed. | 148 // The current access unit being processed. |
149 size_t access_unit_index_; | 149 size_t access_unit_index_; |
150 | 150 |
151 // Data received over IPC from last RequestData() operation. | 151 // Data received over IPC from last RequestData() operation. |
152 DemuxerData received_data_; | 152 DemuxerData received_data_; |
153 | 153 |
| 154 // The index of input buffer that can be used by QueueInputBuffer(). |
| 155 // If the index is uninitialized or invalid, it must be -1. |
| 156 int input_buf_index_; |
| 157 |
154 bool stop_decode_pending_; | 158 bool stop_decode_pending_; |
155 | 159 |
156 // Indicates that this object should be destroyed once the current | 160 // Indicates that this object should be destroyed once the current |
157 // Decode() has completed. This gets set when Release() gets called | 161 // Decode() has completed. This gets set when Release() gets called |
158 // while there is a decode in progress. | 162 // while there is a decode in progress. |
159 bool destroy_pending_; | 163 bool destroy_pending_; |
160 | 164 |
161 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaDecoderJob); | 165 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaDecoderJob); |
162 }; | 166 }; |
163 | 167 |
164 } // namespace media | 168 } // namespace media |
165 | 169 |
166 #endif // MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ | 170 #endif // MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ |
OLD | NEW |