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

Side by Side Diff: media/cast/video_receiver/codecs/vp8/vp8_decoder.h

Issue 82593005: Cast: Switching recevier to use media::VideoFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding media to DEPS + rebase Created 7 years 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
OLDNEW
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_CAST_RTP_RECEVIER_CODECS_VP8_VP8_DECODER_H_ 5 #ifndef MEDIA_CAST_RTP_RECEVIER_CODECS_VP8_VP8_DECODER_H_
6 #define MEDIA_CAST_RTP_RECEVIER_CODECS_VP8_VP8_DECODER_H_ 6 #define MEDIA_CAST_RTP_RECEVIER_CODECS_VP8_VP8_DECODER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "media/cast/cast_config.h" 10 #include "media/cast/cast_config.h"
(...skipping 19 matching lines...) Expand all
30 // release the memory. 30 // release the memory.
31 // Ownership of the encoded_frame does not pass to the Vp8Decoder. 31 // Ownership of the encoded_frame does not pass to the Vp8Decoder.
32 bool Decode(const EncodedVideoFrame* encoded_frame, 32 bool Decode(const EncodedVideoFrame* encoded_frame,
33 const base::TimeTicks render_time, 33 const base::TimeTicks render_time,
34 const VideoFrameDecodedCallback& frame_decoded_cb); 34 const VideoFrameDecodedCallback& frame_decoded_cb);
35 35
36 private: 36 private:
37 // Initialize the decoder. 37 // Initialize the decoder.
38 void InitDecode(int number_of_cores); 38 void InitDecode(int number_of_cores);
39 39
40 // Helper method used to copy data from a libvpx image format to a VideoFrame.
41 void CopyPlane(size_t plane, const uint8* source, int stride, int rows,
42 VideoFrame* frame);
43
40 scoped_ptr<vpx_dec_ctx_t> decoder_; 44 scoped_ptr<vpx_dec_ctx_t> decoder_;
41 scoped_refptr<CastEnvironment> cast_environment_; 45 scoped_refptr<CastEnvironment> cast_environment_;
42 }; 46 };
43 47
44 } // namespace cast 48 } // namespace cast
45 } // namespace media 49 } // namespace media
46 50
47 #endif // MEDIA_CAST_RTP_RECEVIER_CODECS_VP8_VP8_DECODER_H_ 51 #endif // MEDIA_CAST_RTP_RECEVIER_CODECS_VP8_VP8_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698