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

Unified Diff: media/filters/ffmpeg_video_decoder.h

Issue 301243008: Allow ffmpeg to process individual NALU rather than require frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add decode_nalus_ flag Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_video_decoder.h
diff --git a/media/filters/ffmpeg_video_decoder.h b/media/filters/ffmpeg_video_decoder.h
index ced6ddf2eabc8e23b6b6b5bfea25643202a6e8b8..84ac0642f9596c49e34be0393dacde893d179cab 100644
--- a/media/filters/ffmpeg_video_decoder.h
+++ b/media/filters/ffmpeg_video_decoder.h
@@ -31,6 +31,10 @@ class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder {
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
virtual ~FFmpegVideoDecoder();
+ // Allow decoding of individual NALU. Entire frames are required by default.
+ // Disables low-latency mode. Must be called before Initialize().
+ void SetDecodeNalus(bool decode_nalus) { decode_nalus_ = decode_nalus; }
scherkus (not reviewing) 2014/06/06 18:12:27 nit: style guide recommends unix_hacker() style fo
igorc 2014/06/06 22:58:22 Done.
+
// VideoDecoder implementation.
virtual void Initialize(const VideoDecoderConfig& config,
bool low_delay,
@@ -84,6 +88,8 @@ class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder {
VideoFramePool frame_pool_;
+ bool decode_nalus_;
+
DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder);
};
« no previous file with comments | « no previous file | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698