commit | 3c3b36d939f1a1fb0396680b5856b6b778aab16a | [log] [tgz] |
---|---|---|
author | Wan-Teh Chang <wtc@google.com> | Fri Apr 12 11:49:43 2024 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Apr 12 13:42:19 2024 |
tree | 3d6b385400d59dc89aabcb5ebfa0b16f8503f36b | |
parent | bdfcaba85b3496ca1c799ecb306503fc40aff86b [diff] |
Make sure offset_x/y is even before CropAndScale() CropAndScale() makes offset_x and offset_y even if the U,V planes are subsampled. This may result in the update rect being off by one. To prevent that, always pass even offset_x and offset_y to CropAndScale(). Round the offset up when dividing crop size by 2 to make the cropping more centered and symmetrical. Note: The code was originally added in https://webrtc-review.googlesource.com/c/src/+/123230. Bug: webrtc:15910 Change-Id: I4a70d460702f03dee72a5b8292cb25766c3e6aca Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/346323 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Commit-Queue: Wan-Teh Chang <wtc@google.com> Cr-Commit-Position: refs/heads/main@{#42052}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.