You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: fix buffer loop placeholder functions and missing import
- Replace non-existent dequeueInputBuffer/dequeueOutputBuffer
placeholder calls with actual capi calls inline, annotated with
"(capi - not yet in idiomatic layer)" comments
- Add missing capihw import to README.md capi example snippet
Copy file name to clipboardExpand all lines: llms.txt
+15-26Lines changed: 15 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -626,16 +626,21 @@ Format keys are passed as strings to `SetInt32`/`SetString`/`SetFloat`/`SetInt64
626
626
627
627
The idiomatic `media` package provides `GetInputBuffer`, `QueueInputBuffer`, `GetOutputBuffer`, `ReleaseOutputBuffer`, and all constants (`media.AMEDIACODEC_INFO_*`, `media.AMEDIACODEC_BUFFER_FLAG_*`). The `DequeueInputBuffer` and `DequeueOutputBuffer` functions are not yet in the idiomatic layer and require a `capi/media` import (see **Advanced** note below).
628
628
629
+
The dequeue functions (`DequeueInputBuffer`, `DequeueOutputBuffer`) are not yet in the idiomatic layer and require a `capi/media` import. All other buffer operations use the idiomatic `media` package.
630
+
629
631
```go
630
632
import (
631
633
"unsafe"
632
634
"github.com/AndroidGoLab/ndk/media"
635
+
capimedia "github.com/AndroidGoLab/ndk/capi/media" // needed for dequeue (not yet idiomatic)
0 commit comments