Harium / Harium/v4l2fakecam-java

Add different image formats

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Java side:
```java
class FakeCam {
public static final int V4L2_PIX_FMT_YUV420 = 1;
public static final int V4L2_PIX_FMT_RGB24 = 2;
}
```

C side:
```c
#define FMT_YUV420 1
#define FMT_RGB24 2

JNIEXPORT jint JNICALL Java_com_harium_hci_fakecam_FakeCam_open(JNIEnv* env, jobject obj, jstring device, jint width, jint height, jint format) {
switch(format) {
case V4L2_PIX_FMT_YUV420:
format = V4L2_PIX_FMT_YUV420;
break;
....
}
initWithFormat(..., format);
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.