Chromium Code Reviews| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 | 83 |
| 84 // Video decoder functions. | 84 // Video decoder functions. |
| 85 | 85 |
| 86 // Initializes the video decoder with specific configuration. | 86 // Initializes the video decoder with specific configuration. |
| 87 // Parameters: | 87 // Parameters: |
| 88 // |profile| is the video stream's format profile. | 88 // |profile| is the video stream's format profile. |
| 89 // | 89 // |
| 90 // Returns true when command successfully accepted. Otherwise false. | 90 // Returns true when command successfully accepted. Otherwise false. |
| 91 virtual bool Initialize(VideoCodecProfile profile) = 0; | 91 virtual bool Initialize(VideoCodecProfile profile) = 0; |
| 92 | 92 |
| 93 // Decodes given bitstream buffer. Once decoder is done with processing | 93 // Decodes given bitstream buffer that contains only one frame. Once decoder |
|
Ami GONE FROM CHROMIUM
2013/10/28 16:05:56
s/only/at most/
yuli
2013/10/28 16:38:40
Done.
| |
| 94 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the | 94 // is done with processing |bitstream_buffer| it will call |
| 95 // bitstream buffer id. | 95 // NotifyEndOfBitstreamBuffer() with the bitstream buffer id. |
| 96 // Parameters: | 96 // Parameters: |
| 97 // |bitstream_buffer| is the input bitstream that is sent for decoding. | 97 // |bitstream_buffer| is the input bitstream that is sent for decoding. |
| 98 virtual void Decode(const BitstreamBuffer& bitstream_buffer) = 0; | 98 virtual void Decode(const BitstreamBuffer& bitstream_buffer) = 0; |
| 99 | 99 |
| 100 // Assigns a set of texture-backed picture buffers to the video decoder. | 100 // Assigns a set of texture-backed picture buffers to the video decoder. |
| 101 // | 101 // |
| 102 // Ownership of each picture buffer remains with the client, but the client | 102 // Ownership of each picture buffer remains with the client, but the client |
| 103 // is not allowed to deallocate the buffer before the DismissPictureBuffer | 103 // is not allowed to deallocate the buffer before the DismissPictureBuffer |
| 104 // callback has been initiated for a given buffer. | 104 // callback has been initiated for a given buffer. |
| 105 // | 105 // |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 131 // component is freed. This call may asynchornously free system resources, | 131 // component is freed. This call may asynchornously free system resources, |
| 132 // but its client-visible effects are synchronous. After this method returns | 132 // but its client-visible effects are synchronous. After this method returns |
| 133 // no more callbacks will be made on the client. Deletes |this| | 133 // no more callbacks will be made on the client. Deletes |this| |
| 134 // unconditionally, so make sure to drop all pointers to it! | 134 // unconditionally, so make sure to drop all pointers to it! |
| 135 virtual void Destroy() = 0; | 135 virtual void Destroy() = 0; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace media | 138 } // namespace media |
| 139 | 139 |
| 140 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 140 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |