Home
last modified time | relevance | path

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

/external/webrtc/sdk/android/api/org/webrtc/
DVideoProcessor.java21 public final int cropX; field in VideoProcessor.FrameAdaptationParameters
30 public FrameAdaptationParameters(int cropX, int cropY, int cropWidth, int cropHeight, in FrameAdaptationParameters() argument
32 this.cropX = cropX; 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
135 cropAndScaleMatrix.preTranslate(cropX / (float) width, cropYFromBottom / (float) height); in cropAndScale()
DVideoFileRenderer.java104 final int cropX = (buffer.getWidth() - cropWidth) / 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.mm52 cropX:100
95 cropX: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 {
259 cropWidth:CVPixelBufferGetWidth(pixelBufferRef) - cropX
261 cropX:cropX
DObjCVideoTrackSource_xctest.mm183 XCTAssertEqual(buffer.cropX, outputBuffer.cropX);
219 XCTAssertEqual(outputBuffer.cropX, 0);
255 XCTAssertEqual(outputBuffer.cropX, 10);
285 cropX:0
298 XCTAssertEqual(outputBuffer.cropX, 0);
329 cropX:10
342 XCTAssertEqual(outputBuffer.cropX, 14);
373 cropX:40
386 XCTAssertEqual(outputBuffer.cropX, 40);
/external/webrtc/sdk/objc/components/video_frame_buffer/
DRTCCVPixelBuffer.h23 @property(nonatomic, readonly) int cropX;
36 cropX:(int)cropX
DRTCCVPixelBuffer.mm35 @synthesize cropX = _cropX;
54 cropX:0
63 cropX:(int)cropX
74 _cropX = cropX & ~1;
/external/webrtc/sdk/objc/components/renderer/metal/
DRTCMTLRenderer.mm33 static inline void getCubeVertexData(int cropX,
46 float cropLeft = cropX / (float)frameWidth;
47 float cropRight = (cropX + cropWidth) / (float)frameWidth;
168 cropX:(int *)cropX
192 int frameWidth, frameHeight, cropWidth, cropHeight, cropX, cropY;
197 cropX:&cropX
202 if (cropX != _oldCropX || cropY != _oldCropY || cropWidth != _oldCropWidth ||
205 getCubeVertexData(cropX,
213 _oldCropX = cropX;
DRTCMTLRenderer+Private.h28 cropX:(nonnull int *)cropX
DRTCMTLRGBRenderer.mm94 cropX:(nonnull int *)cropX
102 *cropX = pixelBuffer.cropX;
DRTCMTLNV12Renderer.mm96 cropX:(nonnull int *)cropX
104 *cropX = pixelBuffer.cropX;
DRTCMTLI420Renderer.mm98 cropX:(nonnull int *)cropX
105 *cropX = 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.java80 static VideoProcessor.FrameAdaptationParameters createFrameAdaptationParameters(int cropX, 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.h67 cropX:(int)cropX
DRTCVideoFrame.mm58 cropX:(int)cropX
/external/webrtc/sdk/objc/native/src/
Dobjc_video_track_source.mm102 cropX:crop_x + rtcPixelBuffer.cropX
/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);