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

Side by Side Diff: content/renderer/media/capture_video_decoder.h

Issue 7932005: Reland r101418: Fix aspect ratio and clarify video frame dimensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « no previous file | content/renderer/media/capture_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
6 #define CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 26 matching lines...) Expand all
37 const media::FilterStatusCB& cb) OVERRIDE; 37 const media::FilterStatusCB& cb) OVERRIDE;
38 virtual void Pause(media::FilterCallback* callback) OVERRIDE; 38 virtual void Pause(media::FilterCallback* callback) OVERRIDE;
39 virtual void Stop(media::FilterCallback* callback) OVERRIDE; 39 virtual void Stop(media::FilterCallback* callback) OVERRIDE;
40 40
41 // Decoder implementation. 41 // Decoder implementation.
42 virtual void Initialize(media::DemuxerStream* demuxer_stream, 42 virtual void Initialize(media::DemuxerStream* demuxer_stream,
43 media::FilterCallback* filter_callback, 43 media::FilterCallback* filter_callback,
44 media::StatisticsCallback* stat_callback) OVERRIDE; 44 media::StatisticsCallback* stat_callback) OVERRIDE;
45 virtual void ProduceVideoFrame( 45 virtual void ProduceVideoFrame(
46 scoped_refptr<media::VideoFrame> video_frame) OVERRIDE; 46 scoped_refptr<media::VideoFrame> video_frame) OVERRIDE;
47 virtual int width() OVERRIDE; 47 virtual gfx::Size natural_size() OVERRIDE;
48 virtual int height() OVERRIDE;
49 48
50 // VideoCapture::EventHandler implementation. 49 // VideoCapture::EventHandler implementation.
51 virtual void OnStarted(media::VideoCapture* capture) OVERRIDE; 50 virtual void OnStarted(media::VideoCapture* capture) OVERRIDE;
52 virtual void OnStopped(media::VideoCapture* capture) OVERRIDE; 51 virtual void OnStopped(media::VideoCapture* capture) OVERRIDE;
53 virtual void OnPaused(media::VideoCapture* capture) OVERRIDE; 52 virtual void OnPaused(media::VideoCapture* capture) OVERRIDE;
54 virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE; 53 virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE;
55 virtual void OnBufferReady( 54 virtual void OnBufferReady(
56 media::VideoCapture* capture, 55 media::VideoCapture* capture,
57 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf) OVERRIDE; 56 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf) OVERRIDE;
58 virtual void OnDeviceInfoReceived( 57 virtual void OnDeviceInfoReceived(
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 scoped_ptr<media::StatisticsCallback> statistics_callback_; 95 scoped_ptr<media::StatisticsCallback> statistics_callback_;
97 96
98 media::VideoCaptureSessionId video_stream_id_; 97 media::VideoCaptureSessionId video_stream_id_;
99 media::VideoCapture* capture_engine_; 98 media::VideoCapture* capture_engine_;
100 base::Time start_time_; 99 base::Time start_time_;
101 100
102 DISALLOW_COPY_AND_ASSIGN(CaptureVideoDecoder); 101 DISALLOW_COPY_AND_ASSIGN(CaptureVideoDecoder);
103 }; 102 };
104 103
105 #endif // CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 104 #endif // CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/capture_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698