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

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

Issue 555087: Refactor some code that depends on FFmpeg (Closed)
Patch Set: 2010 Created 10 years, 10 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_video_decode_engine.cc ('k') | media/filters/omx_video_decode_engine.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. Use of this 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // source code is governed by a BSD-style license that can be found in the 2 // Use of this source code is governed by a BSD-style license that can be
3 // LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/filters/ffmpeg_video_decoder.h" 5 #include "media/filters/ffmpeg_video_decoder.h"
6 6
7 #include "media/base/media_format.h" 7 #include "media/base/media_format.h"
8 #include "media/filters/ffmpeg_common.h" // For kFFmpegVideo. 8 #include "media/ffmpeg/ffmpeg_common.h" // For kFFmpegVideo.
9 #include "media/filters/ffmpeg_video_decode_engine.h" 9 #include "media/filters/ffmpeg_video_decode_engine.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 FFmpegVideoDecoder::FFmpegVideoDecoder(FFmpegVideoDecodeEngine* engine) 13 FFmpegVideoDecoder::FFmpegVideoDecoder(FFmpegVideoDecodeEngine* engine)
14 : VideoDecoderImpl(engine) { 14 : VideoDecoderImpl(engine) {
15 } 15 }
16 16
17 FFmpegVideoDecoder::~FFmpegVideoDecoder() { 17 FFmpegVideoDecoder::~FFmpegVideoDecoder() {
18 } 18 }
19 19
20 // static 20 // static
21 FilterFactory* FFmpegVideoDecoder::CreateFactory() { 21 FilterFactory* FFmpegVideoDecoder::CreateFactory() {
22 return new FilterFactoryImpl1<FFmpegVideoDecoder, FFmpegVideoDecodeEngine*>( 22 return new FilterFactoryImpl1<FFmpegVideoDecoder, FFmpegVideoDecodeEngine*>(
23 new FFmpegVideoDecodeEngine()); 23 new FFmpegVideoDecodeEngine());
24 } 24 }
25 25
26 // static 26 // static
27 bool FFmpegVideoDecoder::IsMediaFormatSupported(const MediaFormat& format) { 27 bool FFmpegVideoDecoder::IsMediaFormatSupported(const MediaFormat& format) {
28 std::string mime_type; 28 std::string mime_type;
29 return format.GetAsString(MediaFormat::kMimeType, &mime_type) && 29 return format.GetAsString(MediaFormat::kMimeType, &mime_type) &&
30 mime_type::kFFmpegVideo == mime_type; 30 mime_type::kFFmpegVideo == mime_type;
31 } 31 }
32 32
33 } // namespace media 33 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_video_decode_engine.cc ('k') | media/filters/omx_video_decode_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698