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

Side by Side Diff: talk/app/webrtc/objc/avfoundationvideocapturer.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 AVFoundationVideoCapturer(); 43 AVFoundationVideoCapturer();
44 ~AVFoundationVideoCapturer(); 44 ~AVFoundationVideoCapturer();
45 45
46 cricket::CaptureState Start(const cricket::VideoFormat& format) override; 46 cricket::CaptureState Start(const cricket::VideoFormat& format) override;
47 void Stop() override; 47 void Stop() override;
48 bool IsRunning() override; 48 bool IsRunning() override;
49 bool IsScreencast() const override { 49 bool IsScreencast() const override {
50 return false; 50 return false;
51 } 51 }
52 bool GetPreferredFourccs(std::vector<uint32>* fourccs) override { 52 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override {
53 fourccs->push_back(cricket::FOURCC_NV12); 53 fourccs->push_back(cricket::FOURCC_NV12);
54 return true; 54 return true;
55 } 55 }
56 56
57 // Returns the active capture session. 57 // Returns the active capture session.
58 AVCaptureSession* GetCaptureSession(); 58 AVCaptureSession* GetCaptureSession();
59 59
60 // Switches the camera being used (either front or back). 60 // Switches the camera being used (either front or back).
61 void SetUseBackCamera(bool useBackCamera); 61 void SetUseBackCamera(bool useBackCamera);
62 bool GetUseBackCamera() const; 62 bool GetUseBackCamera() const;
63 63
64 // Converts the sample buffer into a cricket::CapturedFrame and signals the 64 // Converts the sample buffer into a cricket::CapturedFrame and signals the
65 // frame for capture. 65 // frame for capture.
66 void CaptureSampleBuffer(CMSampleBufferRef sampleBuffer); 66 void CaptureSampleBuffer(CMSampleBufferRef sampleBuffer);
67 67
68 private: 68 private:
69 // Used to signal frame capture on the thread that capturer was started on. 69 // Used to signal frame capture on the thread that capturer was started on.
70 void SignalFrameCapturedOnStartThread(const cricket::CapturedFrame* frame); 70 void SignalFrameCapturedOnStartThread(const cricket::CapturedFrame* frame);
71 71
72 RTCAVFoundationVideoCapturerInternal* _capturer; 72 RTCAVFoundationVideoCapturerInternal* _capturer;
73 rtc::Thread* _startThread; // Set in Start(), unset in Stop(). 73 rtc::Thread* _startThread; // Set in Start(), unset in Stop().
74 uint64_t _startTime; 74 uint64_t _startTime;
75 }; // AVFoundationVideoCapturer 75 }; // AVFoundationVideoCapturer
76 76
77 } // namespace webrtc 77 } // namespace webrtc
78 78
79 #endif // TALK_APP_WEBRTC_OBJC_AVFOUNDATION_CAPTURER_H_ 79 #endif // TALK_APP_WEBRTC_OBJC_AVFOUNDATION_CAPTURER_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/objc/RTCDataChannel.mm ('k') | talk/app/webrtc/objc/avfoundationvideocapturer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698