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

Side by Side Diff: media/capture/video/win/sink_filter_win.h

Issue 2428263004: 16 bpp video stream capture, render and createImageBitmap(video) using (CPU) shared memory buffers (Closed)
Patch Set: Split webrtc_depth_capture_browsertest. Thanks phoglund@, Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implement a DirectShow sink filter used for receiving captured frames from 5 // Implement a DirectShow sink filter used for receiving captured frames from
6 // a DirectShow Capture filter. 6 // a DirectShow Capture filter.
7 7
8 #ifndef MEDIA_CAPTURE_VIDEO_WIN_SINK_FILTER_WIN_H_ 8 #ifndef MEDIA_CAPTURE_VIDEO_WIN_SINK_FILTER_WIN_H_
9 #define MEDIA_CAPTURE_VIDEO_WIN_SINK_FILTER_WIN_H_ 9 #define MEDIA_CAPTURE_VIDEO_WIN_SINK_FILTER_WIN_H_
10 10
(...skipping 13 matching lines...) Expand all
24 // it is not defined in the DirectShow SDK. 24 // it is not defined in the DirectShow SDK.
25 // http://msdn.microsoft.com/en-us/library/dd757532.aspx 25 // http://msdn.microsoft.com/en-us/library/dd757532.aspx
26 // 30323449-0000-0010-8000-00AA00389B71. 26 // 30323449-0000-0010-8000-00AA00389B71.
27 extern GUID kMediaSubTypeI420; 27 extern GUID kMediaSubTypeI420;
28 28
29 // UYVY synonym with BT709 color components, used in HD video. This variation 29 // UYVY synonym with BT709 color components, used in HD video. This variation
30 // might appear in non-USB capture cards and it's implemented as a normal YUV 30 // might appear in non-USB capture cards and it's implemented as a normal YUV
31 // pixel format with the characters HDYC encoded in the first array word. 31 // pixel format with the characters HDYC encoded in the first array word.
32 extern GUID kMediaSubTypeHDYC; 32 extern GUID kMediaSubTypeHDYC;
33 33
34 // 16-bit grey-scale single plane formats provided by some depth cameras.
35 extern GUID kMediaSubTypeZ16;
36 extern GUID kMediaSubTypeINVZ;
37 extern GUID kMediaSubTypeY16;
38
34 class SinkInputPin; 39 class SinkInputPin;
35 40
36 class __declspec(uuid("88cdbbdc-a73b-4afa-acbf-15d5e2ce12c3")) SinkFilter 41 class __declspec(uuid("88cdbbdc-a73b-4afa-acbf-15d5e2ce12c3")) SinkFilter
37 : public FilterBase { 42 : public FilterBase {
38 public: 43 public:
39 explicit SinkFilter(SinkFilterObserver* observer); 44 explicit SinkFilter(SinkFilterObserver* observer);
40 45
41 void SetRequestedMediaFormat(VideoPixelFormat pixel_format, 46 void SetRequestedMediaFormat(VideoPixelFormat pixel_format,
42 float frame_rate, 47 float frame_rate,
43 const BITMAPINFOHEADER& info_header); 48 const BITMAPINFOHEADER& info_header);
44 49
45 // Implement FilterBase. 50 // Implement FilterBase.
46 size_t NoOfPins() override; 51 size_t NoOfPins() override;
47 IPin* GetPin(int index) override; 52 IPin* GetPin(int index) override;
48 53
49 STDMETHOD(GetClassID)(CLSID* clsid) override; 54 STDMETHOD(GetClassID)(CLSID* clsid) override;
50 55
51 private: 56 private:
52 ~SinkFilter() override; 57 ~SinkFilter() override;
53 58
54 scoped_refptr<SinkInputPin> input_pin_; 59 scoped_refptr<SinkInputPin> input_pin_;
55 60
56 DISALLOW_IMPLICIT_CONSTRUCTORS(SinkFilter); 61 DISALLOW_IMPLICIT_CONSTRUCTORS(SinkFilter);
57 }; 62 };
58 63
59 } // namespace media 64 } // namespace media
60 65
61 #endif // MEDIA_CAPTURE_VIDEO_WIN_SINK_FILTER_WIN_H_ 66 #endif // MEDIA_CAPTURE_VIDEO_WIN_SINK_FILTER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698