Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: media/video/video_decode_accelerator.h

Issue 23125014: Run VDA::Decode on GPU IO thread if VDA supports it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. Once decoder is done with processing
94 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the 94 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the
95 // bitstream buffer id. 95 // bitstream buffer id. In GPU process, this runs on IO thread.
Ami GONE FROM CHROMIUM 2013/08/22 14:52:03 This is a strange comment considering processes &
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698