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

Side by Side Diff: media/filters/video_decoder_impl.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/omx_video_decoder.cc ('k') | media/filters/video_decoder_impl_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 "media/filters/video_decoder_impl.h" 5 #include "media/filters/video_decoder_impl.h"
6 6
7 #include "base/task.h" 7 #include "base/task.h"
8 #include "media/base/filters.h" 8 #include "media/base/filters.h"
9 #include "media/base/limits.h" 9 #include "media/base/limits.h"
10 #include "media/base/video_frame_impl.h" 10 #include "media/base/video_frame_impl.h"
11 #include "media/filters/ffmpeg_common.h" 11 #include "media/ffmpeg/ffmpeg_common.h"
12 #include "media/filters/ffmpeg_interfaces.h" 12 #include "media/filters/ffmpeg_interfaces.h"
13 #include "media/filters/video_decode_engine.h" 13 #include "media/filters/video_decode_engine.h"
14 #include "media/ffmpeg/ffmpeg_util.h" 14 #include "media/ffmpeg/ffmpeg_util.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 VideoDecoderImpl::VideoDecoderImpl(VideoDecodeEngine* engine) 18 VideoDecoderImpl::VideoDecoderImpl(VideoDecodeEngine* engine)
19 : width_(0), 19 : width_(0),
20 height_(0), 20 height_(0),
21 time_base_(new AVRational()), 21 time_base_(new AVRational()),
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 host()->SetError(PIPELINE_ERROR_DECODE); 308 host()->SetError(PIPELINE_ERROR_DECODE);
309 state_ = kDecodeFinished; 309 state_ = kDecodeFinished;
310 } 310 }
311 311
312 void VideoDecoderImpl::SetVideoDecodeEngineForTest( 312 void VideoDecoderImpl::SetVideoDecodeEngineForTest(
313 VideoDecodeEngine* engine) { 313 VideoDecodeEngine* engine) {
314 decode_engine_.reset(engine); 314 decode_engine_.reset(engine);
315 } 315 }
316 316
317 } // namespace media 317 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/omx_video_decoder.cc ('k') | media/filters/video_decoder_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698