summaryrefslogtreecommitdiffstats
path: root/media/video/capture/video_capture_device_dummy.h
blob: b009fc98251c06da900a0d2a32bf0276aed5c2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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.

// A dummy implementation of VideoCaptureDevice to use for platforms without
// real video capture support. The class will be removed once the other
// platforms have real video capture device support.
//
// TODO(mflodman) Remove when video_capture_device_mac and
// video_capture_device_win are available.

#ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_
#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_

#include "media/video/capture/video_capture_device.h"

namespace media {

class VideoCaptureDeviceDummy : public VideoCaptureDevice {
 public:
  virtual void Allocate(int width, int height, int frame_rate,
                        VideoCaptureDevice::EventHandler* observer);
  virtual void Start();
  virtual void Stop();
  virtual void DeAllocate();

 private:
  VideoCaptureDeviceDummy();
  virtual ~VideoCaptureDeviceDummy();

  DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy);
};

}  // namespace media

#endif  // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_