MCPcopy Create free account
hub / github.com/almalence/OpenCamera / compressToJpeg

Method compressToJpeg

src/com/almalence/YuvImage.java:146–170  ·  view source on GitHub ↗

Compress a rectangle region in the YuvImage to a jpeg. Only ImageFormat.NV21 and ImageFormat.YUY2 are supported for now. @param rectangle The rectangle region to be compressed. The medthod checks if rectangle is inside the image. Also, the method modifies rectangle

(Rect rectangle, int quality, OutputStream stream)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

saveInputFileMethod · 0.95
saveInputFileNewMethod · 0.95
saveResultPictureMethod · 0.95
saveResultPictureNewMethod · 0.95
saveFramesMethod · 0.95
processingSaveDataMethod · 0.95
processingSaveDataMethod · 0.95

Calls 4

adjustRectangleMethod · 0.95
calculateOffsetsMethod · 0.95
SaveJpegFreeOutMTMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected