summaryrefslogtreecommitdiff
path: root/video_engine/vie_capturer.cc
AgeCommit message (Collapse)Author
2014-03-20Add ability to configure cpu overuse options via an API.asapersson@webrtc.org
BUG=1577 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/9299006 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5736 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-01-29Revert 5444 "Revert 5421 "Fix deadlock on register/unregister ob..."mallinath@webrtc.org
We reverted the r5421 to allow us roll webrtc to chrome without any modifications to libjingle. Since webrtc is rolled with r5444, we can add back the original CL and changes to libjingle will be upstreamed in the next roll. TBR=andresp@webrtc.org > Revert 5421 "Fix deadlock on register/unregister observer while ..." > > Failure to compile on Chromium Internal bots, because of API changes. > > http://chromegw.corp.google.com/i/internal.chromium.webrtc.fyi/builders/Mac/builds/2805/steps/compile/logs/stdio > > You need to follow the steps mentioned in > https://docs.google.com/a/google.com/document/d/1aHrmXECnu3-Jovc2-zYI267EaQCYz-IclYyBp9iA9Fc/edit that of a API changer. > > Since I will be rolling the libjingle this week, I can push your changes along with libjingle roll, if you prepare the CLs > as mentioned in the doc. > > > Fix deadlock on register/unregister observer while there is a an going callback. > > > > BUG=2835 > > R=mallinath@webrtc.org > > > > Review URL: https://webrtc-codereview.appspot.com/7119005 > > TBR=andresp@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/7679004 TBR=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/7729005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5453 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-01-27Revert 5421 "Fix deadlock on register/unregister observer while ..."mallinath@webrtc.org
Failure to compile on Chromium Internal bots, because of API changes. http://chromegw.corp.google.com/i/internal.chromium.webrtc.fyi/builders/Mac/builds/2805/steps/compile/logs/stdio You need to follow the steps mentioned in https://docs.google.com/a/google.com/document/d/1aHrmXECnu3-Jovc2-zYI267EaQCYz-IclYyBp9iA9Fc/edit that of a API changer. Since I will be rolling the libjingle this week, I can push your changes along with libjingle roll, if you prepare the CLs as mentioned in the doc. > Fix deadlock on register/unregister observer while there is a an going callback. > > BUG=2835 > R=mallinath@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/7119005 TBR=andresp@webrtc.org Review URL: https://webrtc-codereview.appspot.com/7679004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5444 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-01-23Fix deadlock on register/unregister observer while there is a an going callback.andresp@webrtc.org
BUG=2835 R=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/7119005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5421 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-12-20Race condition in ViECapturer::RegisterObserversprang@webrtc.org
Critical section ViECapturer.observer_cs_ should be taken when registering an observer. BUG=2734 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/5999004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5326 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-12-11Add SwapFrame() to VideoSendStreamInput.pbos@webrtc.org
Optionally prevents doing a frame copy when putting frames into a VideoSendStream. PutFrame() is still there, which copies the frame. Also removes time_since_capture_ms as a parameter, since I420VideoFrame::render_time_ms() denotes when the frame was captured. BUG=2657 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/5119004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5265 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-12-04Added a delay measurement, measures the time between an incoming captured ↵asapersson@webrtc.org
frame until the frame is being processed. Measures the delay per second. R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/4249004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5212 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-11-28Lock frame in ViECapturer::IncomingFrameI420.pbos@webrtc.org
r5160 explicitly assumed that IncomingFrameI420 was never called sequentially. This assumption was found to be incorrect when some users were changing beween existing capturers. BUG=2657 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/4619004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5189 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-11-26Added measure of encode time. Added encode time to the ViE CpuOveruseMeasure ↵asapersson@webrtc.org
api. R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/4099004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5178 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-11-22Replace VideoFrameI420 with I420VideoFrame.pbos@webrtc.org
Gives one less struct/class for I420 video frames. BUG=2657 R=mflodman@webrtc.org, wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/4149004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5160 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-11-20Added ViE API for getting overuse measure.asapersson@webrtc.org
R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/3129005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5141 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-25Remove unused constants, so chrome can enable a warning for that. Patch from ↵niklas.enbom@webrtc.org
thakis@ R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2296006 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4844 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-23- Reset capture deltas at resolution change.asapersson@webrtc.org
- Applied smoothing of capture jitter. - Adjusted thresholds. R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2070005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4817 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-02Changed method name.mflodman@webrtc.org
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4657 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-02Renamed method.mflodman@webrtc.org
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4656 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-02Function name change.mflodman@webrtc.org
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4655 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-02Fixing capture frame race in ViECapturer.mflodman@webrtc.org
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4654 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-08-30Overuse detection based on capture-input jitter.pbos@webrtc.org
This is believed to be more reliable in real-world cases. The camera seems to fall behind sooner than the encoder starts taking too long time encoding, so this is believed to be an earlier trigger. BUG=2325 R=asapersson@webrtc.org, mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2140004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4648 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-31Adding possibility to use encoding time when trigger underuse for frame ↵mflodman@webrtc.org
based overuse detection. BUG= TEST=Added unittest. R=asapersson@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1885004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4452 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-23Hooking up first simple CPU adaptation version.mflodman@webrtc.org
BUG= R=pbos@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1767004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4384 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-08Cleanup WebRTC tracinghclam@chromium.org
The goal of this change is to: 1. Remove unused tracing events. 2. Organize tracing events to facilitate measurement of end to end latency. The major change in this CL is to use ASYNC_STEP such that operation flow can be traced for the same frame. R=marpan@webrtc.org, pwestin@webrtc.org, turaj@webrtc.org, wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1761004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4308 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-06-07Removing functionality for inserting pre-encoded frames instead of rawmflodman@webrtc.org
video frames. The functionality hasn't been used for a long time and should be done properly if used in the future. This is a pre-step for implementing CPU overload control. R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1630004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4194 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-05-17Include files from webrtc/.. paths in video_engine/pbos@webrtc.org
BUG=1662 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1492004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4056 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-05-13Wiring down config from video engine until video coding and remote bitrate ↵andresp@webrtc.org
estimator modules instantiation. R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1450008 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4007 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-04-09More trace eventshclam@chromium.org
The goal of this change is to unify tracing events styles and add trace events for all RTP traffic. BUG=1555 Review URL: https://webrtc-codereview.appspot.com/1290007 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3806 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-04-09WebRtc_Word32 -> int32_t in video_engine/pbos@webrtc.org
BUG=314 Review URL: https://webrtc-codereview.appspot.com/1302005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3801 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-01-09Enable external encoders with internal picture source.stefan@webrtc.org
CL enables registering of external encoder with internal picture source on API by adding simple passthrough parameter that is already supported within video engine. Review URL: https://webrtc-codereview.appspot.com/1006006 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3344 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-11-07Adding codecType to OnIncomingCapturedEncodedFramemikhal@webrtc.org
partially reverting r3013. Review URL: https://webrtc-codereview.appspot.com/965010 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3055 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-31Reorganize modules/video_render.andrew@webrtc.org
The usual elimination of main/source etc. Review URL: https://webrtc-codereview.appspot.com/929011 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3027 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-30Reorganize modules/video_capture.andrew@webrtc.org
- The usual elimination of main/source etc. - Fully qualify "public" includes. - Use lowercase for all directory names. Review URL: https://webrtc-codereview.appspot.com/933010 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3025 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-29Removing codecType from capture APImikhal@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/964005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3013 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-24Switching to I420VideoFramemikhal@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/922004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@2983 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-22Move src/ -> webrtc/andrew@webrtc.org
TBR=niklas.enbom@webrtc.org Review URL: https://webrtc-codereview.appspot.com/915006 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@2963 4adac7df-926f-26a2-2b94-8c16560cd09d