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

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: ranamed setter as requested Created 6 years, 6 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..f180b5ffb1f3dd80dd1b52bea61506eb7ed91950 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 set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; }
+
// 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