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

Unified Diff: media/cast/video_receiver/video_decoder.h

Issue 308043006: [Cast] Clean-up: Merge RtpReceiver+AudioReceiver+VideoReceiver-->FrameReceiver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hclam's comments. 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 | « media/cast/test/utility/in_process_receiver.cc ('k') | media/cast/video_receiver/video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_receiver/video_decoder.h
diff --git a/media/cast/video_receiver/video_decoder.h b/media/cast/video_receiver/video_decoder.h
deleted file mode 100644
index ea40173004c822c0635e588c40adef5b828dfb19..0000000000000000000000000000000000000000
--- a/media/cast/video_receiver/video_decoder.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2013 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_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
-#define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
-
-#include "base/callback.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "media/base/video_frame.h"
-#include "media/cast/cast_config.h"
-#include "media/cast/transport/cast_transport_config.h"
-
-namespace media {
-namespace cast {
-
-class CastEnvironment;
-
-class VideoDecoder {
- public:
- // Callback passed to DecodeFrame, to deliver a decoded video frame from the
- // decoder. |frame| can be NULL when errors occur. |is_continuous| is
- // normally true, but will be false if the decoder has detected a frame skip
- // since the last decode operation; and the client might choose to take steps
- // to smooth/interpolate video discontinuities in this case.
- typedef base::Callback<void(const scoped_refptr<VideoFrame>& frame,
- bool is_continuous)> DecodeFrameCallback;
-
- VideoDecoder(const scoped_refptr<CastEnvironment>& cast_environment,
- const FrameReceiverConfig& video_config);
- virtual ~VideoDecoder();
-
- // Returns STATUS_VIDEO_INITIALIZED if the decoder was successfully
- // constructed from the given FrameReceiverConfig. If this method returns any
- // other value, calls to DecodeFrame() will not succeed.
- CastInitializationStatus InitializationResult() const;
-
- // Decode the payload in |encoded_frame| asynchronously. |callback| will be
- // invoked on the CastEnvironment::MAIN thread with the result.
- //
- // In the normal case, |encoded_frame->frame_id| will be
- // monotonically-increasing by 1 for each successive call to this method.
- // When it is not, the decoder will assume one or more frames have been
- // dropped (e.g., due to packet loss), and will perform recovery actions.
- void DecodeFrame(scoped_ptr<transport::EncodedFrame> encoded_frame,
- const DecodeFrameCallback& callback);
-
- private:
- class FakeImpl;
- class ImplBase;
- class Vp8Impl;
-
- const scoped_refptr<CastEnvironment> cast_environment_;
- scoped_refptr<ImplBase> impl_;
-
- DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
-};
-
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
« no previous file with comments | « media/cast/test/utility/in_process_receiver.cc ('k') | media/cast/video_receiver/video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698