Skip to content

Commit

Permalink
v0.2.2-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 10, 2024
1 parent e3249c0 commit 2489d7a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## main
[Browse the Repository](https://github.com/cocoa-xu/evision/tree/v0.2.1) | [Released Assets](https://github.com/cocoa-xu/evision/releases/tag/v0.2.1)

### Added
- Experimental support for CUDA shared memory via `Evision.CUDA.GpuMat.to_pointer/{1,2}`.
- Experimental support for Gleam. See [gleam_evision_demo](https://github.com/cocoa-xu/gleam_evision_demo) for more information.

### Changes
- General improvements to the typespecs. Enumerators now also have their own modules.

### Fixes
- Fixed Erlang bindings when converting from Elixir structs to Erlang records and vice versa.

## v0.2.1 (2024-06-04)
[Browse the Repository](https://github.com/cocoa-xu/evision/tree/v0.2.1) | [Released Assets](https://github.com/cocoa-xu/evision/releases/tag/v0.2.1)

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Evision.MixProject.Metadata do
@moduledoc false

def app, do: :evision
def version, do: "0.2.2-rc0"
def version, do: "0.2.2-rc1"
def github_url, do: "https://github.com/cocoa-xu/evision"
def opencv_version, do: "4.10.0"
# only means compatible. need to write more tests
Expand Down
6 changes: 6 additions & 0 deletions py_src/evision_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ def to_struct(pass_through) do
elem_size: Int,
)
}
@external(erlang, "evision_cuda_gpumat", "to_pointer")
pub fn to_pointer(mat: GpuMat) -> any
@external(erlang, "evision_cuda_gpumat", "to_pointer")
pub fn to_pointer_mode(mat: GpuMat, mode: mode) -> any
"""

generic_struct_template_elixir = Template(
Expand Down

0 comments on commit 2489d7a

Please sign in to comment.