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

Side by Side Diff: media/filters/gpu_video_decoder.h

Issue 11016006: Support reading pixels from HW-decoded video textures into canvas/webgl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « media/base/video_frame.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FILTERS_GPU_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 29 matching lines...) Expand all
40 // Caller owns returned pointer. 40 // Caller owns returned pointer.
41 virtual VideoDecodeAccelerator* CreateVideoDecodeAccelerator( 41 virtual VideoDecodeAccelerator* CreateVideoDecodeAccelerator(
42 VideoCodecProfile, VideoDecodeAccelerator::Client*) = 0; 42 VideoCodecProfile, VideoDecodeAccelerator::Client*) = 0;
43 43
44 // Allocate & delete native textures. 44 // Allocate & delete native textures.
45 virtual bool CreateTextures(int32 count, const gfx::Size& size, 45 virtual bool CreateTextures(int32 count, const gfx::Size& size,
46 std::vector<uint32>* texture_ids, 46 std::vector<uint32>* texture_ids,
47 uint32 texture_target) = 0; 47 uint32 texture_target) = 0;
48 virtual void DeleteTexture(uint32 texture_id) = 0; 48 virtual void DeleteTexture(uint32 texture_id) = 0;
49 49
50 // Read pixels from a native texture and store into |*pixels| as RGBA.
51 virtual void ReadPixels(uint32 texture_id, uint32 texture_target,
52 const gfx::Size& size, void* pixels) = 0;
53
50 // Allocate & return a shared memory segment. Caller is responsible for 54 // Allocate & return a shared memory segment. Caller is responsible for
51 // Close()ing the returned pointer. 55 // Close()ing the returned pointer.
52 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0; 56 virtual base::SharedMemory* CreateSharedMemory(size_t size) = 0;
53 57
54 protected: 58 protected:
55 friend class base::RefCountedThreadSafe<Factories>; 59 friend class base::RefCountedThreadSafe<Factories>;
56 virtual ~Factories(); 60 virtual ~Factories();
57 }; 61 };
58 62
59 typedef base::Callback< 63 typedef base::Callback<
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 223
220 // Indicates decoding error occurred. 224 // Indicates decoding error occurred.
221 bool error_occured_; 225 bool error_occured_;
222 226
223 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
224 }; 228 };
225 229
226 } // namespace media 230 } // namespace media
227 231
228 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/video_frame.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698