Skip to content

Commit f037664

Browse files
committed
Rename CaptureFormat field info to formatInfo
1 parent b22159e commit f037664

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package io.github.doblon8.openpnp.capture;
22

3-
public record CaptureFormat(int id, CaptureFormatInfo info) {
3+
public record CaptureFormat(int id, CaptureFormatInfo formatInfo) {
44
}

src/main/java/io/github/doblon8/openpnp/capture/CaptureStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public CaptureStream(CaptureContext context, int id, CaptureFormat format) {
2424
* @return a BufferedImage containing the captured frame.
2525
*/
2626
public BufferedImage capture() {
27-
int width = format.info().width();
28-
int height = format.info().height();
27+
int width = format.formatInfo().width();
28+
int height = format.formatInfo().height();
2929
byte[] bytes;
3030

3131
try (Arena arena = Arena.ofConfined()) {

0 commit comments

Comments
 (0)