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

Side by Side Diff: media/filters/ffmpeg_demuxer.cc

Issue 555087: Refactor some code that depends on FFmpeg (Closed)
Patch Set: 2010 Created 10 years, 11 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
« no previous file with comments | « media/filters/ffmpeg_demuxer.h ('k') | media/filters/ffmpeg_demuxer_unittest.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "media/base/filter_host.h" 10 #include "media/base/filter_host.h"
11 #include "media/base/media_switches.h" 11 #include "media/base/media_switches.h"
12 #include "media/ffmpeg/ffmpeg_common.h"
12 #include "media/ffmpeg/ffmpeg_util.h" 13 #include "media/ffmpeg/ffmpeg_util.h"
13 #include "media/filters/bitstream_converter.h" 14 #include "media/filters/bitstream_converter.h"
14 #include "media/filters/ffmpeg_common.h"
15 #include "media/filters/ffmpeg_demuxer.h" 15 #include "media/filters/ffmpeg_demuxer.h"
16 #include "media/filters/ffmpeg_glue.h" 16 #include "media/filters/ffmpeg_glue.h"
17 17
18 namespace media { 18 namespace media {
19 19
20 // 20 //
21 // AVPacketBuffer 21 // AVPacketBuffer
22 // 22 //
23 class AVPacketBuffer : public Buffer { 23 class AVPacketBuffer : public Buffer {
24 public: 24 public:
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 read_event_.Wait(); 587 read_event_.Wait();
588 return last_read_bytes_; 588 return last_read_bytes_;
589 } 589 }
590 590
591 void FFmpegDemuxer::SignalReadCompleted(size_t size) { 591 void FFmpegDemuxer::SignalReadCompleted(size_t size) {
592 last_read_bytes_ = size; 592 last_read_bytes_ = size;
593 read_event_.Signal(); 593 read_event_.Signal();
594 } 594 }
595 595
596 } // namespace media 596 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_demuxer.h ('k') | media/filters/ffmpeg_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698