bytedeco/javacv

RecordActivity demo conversion in kotlin

Open

#2,272 建立於 2024年8月12日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Java (1,583 fork)batch import
help wantedquestion

倉庫指標

Star
 (6,985 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

hello i want to convert the example code of RecordActivity in kotlin but i can't translate the java code : ((ByteBuffer)yuvImage.image[0].position(0)).put(data); to kotlin i have this information : Classifier 'ByteBuffer' does not have a companion object, and thus must be initialized here

if i use the conversion code i have this result (yuvImage.image[0].position(0) as ByteBuffer).put(data)

and this error Cannot access 'org.bytedeco.javacpp.indexer.Indexable' which is a supertype of 'org.bytedeco.javacv.Frame'. Check your module classpath for missing or conflicting dependencies

貢獻者指南