Split out video targets from //sdk/android:base_java.

Bug: webrtc:9048
Change-Id: Icda0fabf41610f99254d244e0b11d321eee345f7
Reviewed-on: https://webrtc-review.googlesource.com/65120
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22752}
This commit is contained in:
Sami Kalliomäki
2018-04-04 15:59:31 +02:00
committed by Commit Bot
parent 259a497632
commit 1641ca3dd3
5 changed files with 181 additions and 51 deletions

View File

@ -183,6 +183,8 @@ public class VideoFrame {
buffer.release();
}
// TODO(sakal): This file should be strictly an interface. This method should be moved somewhere
// else.
public static VideoFrame.Buffer cropAndScaleI420(final I420Buffer buffer, int cropX, int cropY,
int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) {
if (cropWidth == scaleWidth && cropHeight == scaleHeight) {