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

Unified Diff: media/video/video_decode_engine.h

Issue 8772069: Collapse FFmpegVideoDecodeEngine into FFmpegVideoDecoder and remove VideoDecodeEngine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 years 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 | « media/video/ffmpeg_video_decode_engine.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_decode_engine.h
diff --git a/media/video/video_decode_engine.h b/media/video/video_decode_engine.h
deleted file mode 100644
index 4599331493905cd3b712fc13732a386c59108223..0000000000000000000000000000000000000000
--- a/media/video/video_decode_engine.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_VIDEO_VIDEO_DECODE_ENGINE_H_
-#define MEDIA_VIDEO_VIDEO_DECODE_ENGINE_H_
-
-#include "base/memory/ref_counted.h"
-#include "media/base/media_export.h"
-
-namespace media {
-
-class Buffer;
-class VideoDecoderConfig;
-class VideoFrame;
-
-class MEDIA_EXPORT VideoDecodeEngine {
- public:
- virtual ~VideoDecodeEngine() {}
-
- // Initialize the engine with specified configuration, returning true if
- // successful.
- virtual bool Initialize(const VideoDecoderConfig& config) = 0;
-
- // Uninitialize the engine, freeing all resources. Calls to Flush() or
- // Decode() will have no effect afterwards.
- virtual void Uninitialize() = 0;
-
- // Decode the encoded video data and store the result (if any) into
- // |video_frame|. Note that a frame may not always be produced if the
- // decode engine has insufficient encoded data. In such circumstances,
- // additional calls to Decode() may be required.
- //
- // Returns true if decoding was successful (includes zero length input and end
- // of stream), false if a decoding error occurred.
- virtual bool Decode(const scoped_refptr<Buffer>& buffer,
- scoped_refptr<VideoFrame>* video_frame) = 0;
-
- // Discard all pending data that has yet to be returned via Decode().
- virtual void Flush() = 0;
-};
-
-} // namespace media
-
-#endif // MEDIA_VIDEO_VIDEO_DECODE_ENGINE_H_
« no previous file with comments | « media/video/ffmpeg_video_decode_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698