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

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

Issue 2643733002: Allow to use {FFmpeg/Vpx}VideoDecoder from a UtilityProcess (Closed)
Patch Set: Rebase Created 3 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/base/video_frame_provider.cc ('k') | media/filters/ffmpeg_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FILTERS_FFMPEG_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 namespace media { 22 namespace media {
23 23
24 class DecoderBuffer; 24 class DecoderBuffer;
25 25
26 class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder { 26 class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder {
27 public: 27 public:
28 static bool IsCodecSupported(VideoCodec codec); 28 static bool IsCodecSupported(VideoCodec codec);
29 29
30 FFmpegVideoDecoder(); 30 FFmpegVideoDecoder();
31 explicit FFmpegVideoDecoder(
32 std::unique_ptr<VideoFrameProvider> video_frame_provider);
31 ~FFmpegVideoDecoder() override; 33 ~FFmpegVideoDecoder() override;
32 34
33 // Allow decoding of individual NALU. Entire frames are required by default. 35 // Allow decoding of individual NALU. Entire frames are required by default.
34 // Disables low-latency mode. Must be called before Initialize(). 36 // Disables low-latency mode. Must be called before Initialize().
35 void set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; } 37 void set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; }
36 38
37 // VideoDecoder implementation. 39 // VideoDecoder implementation.
38 std::string GetDisplayName() const override; 40 std::string GetDisplayName() const override;
39 void Initialize(const VideoDecoderConfig& config, 41 void Initialize(const VideoDecoderConfig& config,
40 bool low_delay, 42 bool low_delay,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 VideoFramePool frame_pool_; 89 VideoFramePool frame_pool_;
88 90
89 bool decode_nalus_; 91 bool decode_nalus_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); 93 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder);
92 }; 94 };
93 95
94 } // namespace media 96 } // namespace media
95 97
96 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 98 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/video_frame_provider.cc ('k') | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698