Home
last modified time | relevance | path

Searched refs:cropY (Results 1 – 24 of 24) sorted by relevance

/external/webrtc/sdk/android/api/org/webrtc/
DVideoProcessor.java22 public final int cropY; field in VideoProcessor.FrameAdaptationParameters
30 public FrameAdaptationParameters(int cropX, int cropY, int cropWidth, int cropHeight, in FrameAdaptationParameters() argument
33 this.cropY = cropY; in FrameAdaptationParameters()
72 frame.getBuffer().cropAndScale(parameters.cropX, parameters.cropY, parameters.cropWidth, in applyFrameAdaptationParameters()
DJavaI420Buffer.java166 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
167 return cropAndScaleI420(this, cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight); in cropAndScale()
170 public static VideoFrame.Buffer cropAndScaleI420(final I420Buffer buffer, int cropX, int cropY, in cropAndScaleI420() argument
178 dataY.position(cropX + cropY * buffer.getStrideY()); in cropAndScaleI420()
179 dataU.position(cropX / 2 + cropY / 2 * buffer.getStrideU()); in cropAndScaleI420()
180 dataV.position(cropX / 2 + cropY / 2 * buffer.getStrideV()); in cropAndScaleI420()
189 buffer.getStrideU(), buffer.getDataV(), buffer.getStrideV(), cropX, cropY, cropWidth, in cropAndScaleI420() local
197 ByteBuffer srcU, int srcStrideU, ByteBuffer srcV, int srcStrideV, int cropX, int cropY, in nativeCropAndScaleI420() argument
DTextureBufferImpl.java130 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
134 final int cropYFromBottom = height - (cropY + cropHeight); in cropAndScale()
DVideoFileRenderer.java105 final int cropY = (buffer.getHeight() - cropHeight) / 2; in renderFrameOnRenderThread() local
108 buffer.cropAndScale(cropX, cropY, cropWidth, cropHeight, targetWidth, targetHeight); in renderFrameOnRenderThread()
DVideoFrame.java59 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight); in cropAndScale() argument
/external/webrtc/sdk/objc/unittests/
DRTCCVPixelBuffer_xctest.mm53 cropY:100];
96 cropY:100];
167 [self cropAndScaleTestWithRGBPixelFormat:kCVPixelFormatType_32ARGB cropX:2 cropY:3];
171 [self cropAndScaleTestWithRGBPixelFormat:kCVPixelFormatType_32ARGB cropX:200 cropY:300];
246 [self cropAndScaleTestWithRGBPixelFormat:pixelFormat cropX:0 cropY:0];
249 - (void)cropAndScaleTestWithRGBPixelFormat:(OSType)pixelFormat cropX:(int)cropX cropY:(int)cropY {
260 cropHeight:CVPixelBufferGetHeight(pixelBufferRef) - cropY
262 cropY:cropY];
DObjCVideoTrackSource_xctest.mm184 XCTAssertEqual(buffer.cropY, outputBuffer.cropY);
220 XCTAssertEqual(outputBuffer.cropY, 0);
256 XCTAssertEqual(outputBuffer.cropY, 0);
286 cropY:0];
299 XCTAssertEqual(outputBuffer.cropY, 0);
330 cropY:0];
343 XCTAssertEqual(outputBuffer.cropY, 0);
374 cropY:0];
387 XCTAssertEqual(outputBuffer.cropY, 52);
/external/webrtc/sdk/objc/components/video_frame_buffer/
DRTCCVPixelBuffer.h24 @property(nonatomic, readonly) int cropY;
37 cropY:(int)cropY;
DRTCCVPixelBuffer.mm36 @synthesize cropY = _cropY;
55 cropY:0];
64 cropY:(int)cropY {
75 _cropY = cropY & ~1;
/external/webrtc/sdk/objc/components/renderer/metal/
DRTCMTLRenderer.mm34 int cropY,
48 float cropTop = cropY / (float)frameHeight;
49 float cropBottom = (cropY + cropHeight) / (float)frameHeight;
169 cropY:(int *)cropY
192 int frameWidth, frameHeight, cropWidth, cropHeight, cropX, cropY;
198 cropY:&cropY
202 if (cropX != _oldCropX || cropY != _oldCropY || cropWidth != _oldCropWidth ||
206 cropY,
214 _oldCropY = cropY;
DRTCMTLRenderer+Private.h29 cropY:(nonnull int *)cropY
DRTCMTLRGBRenderer.mm95 cropY:(nonnull int *)cropY
103 *cropY = pixelBuffer.cropY;
DRTCMTLNV12Renderer.mm97 cropY:(nonnull int *)cropY
105 *cropY = pixelBuffer.cropY;
DRTCMTLI420Renderer.mm99 cropY:(nonnull int *)cropY
106 *cropY = 0;
/external/webrtc/sdk/android/src/java/org/webrtc/
DNV21Buffer.java58 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
60 nativeCropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, data, width, in cropAndScale()
66 private static native void nativeCropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, in nativeCropAndScale() argument
DNV12Buffer.java61 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
63 nativeCropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, buffer, width, in cropAndScale()
69 private static native void nativeCropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, in nativeCropAndScale() argument
DWrappedNativeI420Buffer.java106 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
108 this, cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight); in cropAndScale()
DNativeAndroidVideoTrackSource.java81 int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight, long timestampNs, in createFrameAdaptationParameters() argument
84 cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight, timestampNs, drop); in createFrameAdaptationParameters()
DNativeCapturerObserver.java47 frame.getBuffer().cropAndScale(parameters.cropX, parameters.cropY, parameters.cropWidth, in onFrameCaptured()
/external/webrtc/sdk/objc/base/
DRTCVideoFrame.h68 cropY:(int)cropY
DRTCVideoFrame.mm59 cropY:(int)cropY
/external/webrtc/sdk/objc/native/src/
Dobjc_video_track_source.mm103 cropY:crop_y + rtcPixelBuffer.cropY]);
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DHardwareVideoEncoderTest.java204 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
268 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) { in cropAndScale() argument
269 return realBuffer.cropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight); in cropAndScale()
DVideoFrameBufferTest.java423 int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) {
428 cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight);
434 bufferToTest.cropAndScale(cropX, cropY, cropWidth, cropHeight, scaleWidth, scaleHeight);