| 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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_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 // Callback to tell client how many and what size of buffers to provide. | 57 // Callback to tell client how many and what size of buffers to provide. |
| 58 virtual void ProvidePictureBuffers( | 58 virtual void ProvidePictureBuffers( |
| 59 uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0; | 59 uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0; |
| 60 | 60 |
| 61 // Callback to dismiss picture buffer that was assigned earlier. | 61 // Callback to dismiss picture buffer that was assigned earlier. |
| 62 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0; | 62 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0; |
| 63 | 63 |
| 64 // Callback to deliver decoded pictures ready to be displayed. | 64 // Callback to deliver decoded pictures ready to be displayed. |
| 65 virtual void PictureReady(const Picture& picture) = 0; | 65 virtual void PictureReady(const Picture& picture) = 0; |
| 66 | 66 |
| 67 // Callback to notify that decoder has decoded end of stream marker and has | |
| 68 // outputted all displayable pictures. | |
| 69 virtual void NotifyEndOfStream() = 0; | |
| 70 | |
| 71 // Callback to notify that decoded has decoded the end of the current | 67 // Callback to notify that decoded has decoded the end of the current |
| 72 // bitstream buffer. | 68 // bitstream buffer. |
| 73 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) = 0; | 69 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) = 0; |
| 74 | 70 |
| 75 // Flush completion callback. | 71 // Flush completion callback. |
| 76 virtual void NotifyFlushDone() = 0; | 72 virtual void NotifyFlushDone() = 0; |
| 77 | 73 |
| 78 // Reset completion callback. | 74 // Reset completion callback. |
| 79 virtual void NotifyResetDone() = 0; | 75 virtual void NotifyResetDone() = 0; |
| 80 | 76 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual void Destroy() = 0; | 131 virtual void Destroy() = 0; |
| 136 | 132 |
| 137 protected: | 133 protected: |
| 138 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; | 134 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; |
| 139 virtual ~VideoDecodeAccelerator(); | 135 virtual ~VideoDecodeAccelerator(); |
| 140 }; | 136 }; |
| 141 | 137 |
| 142 } // namespace media | 138 } // namespace media |
| 143 | 139 |
| 144 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 140 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |