Skip to content

Commit

Permalink
types for enums
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 9, 2024
1 parent e6e5474 commit 8cc4e7f
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 93 deletions.
12 changes: 12 additions & 0 deletions lib/evision_mat.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ defmodule Evision.Mat do
"""
@type maybe_mat_in :: reference() | Evision.Mat.t() | Nx.Tensor.t()

@type enum :: integer()
@doc enum: true
def cv_MAGIC_VAL, do: 1124007936
@doc enum: true
def cv_AUTO_STEP, do: 0
@doc enum: true
def cv_MAGIC_MASK, do: 4294901760
@doc enum: true
def cv_TYPE_MASK, do: 4095
@doc enum: true
def cv_DEPTH_MASK, do: 7

@doc false
def to_struct(%{
:channels => channels,
Expand Down
Loading

0 comments on commit 8cc4e7f

Please sign in to comment.