A raw frame's data isn't the size its format and dimensions say it is.
A raw frame carries nothing but pixels, so its format and dimensions are the only description a consumer has of what is in it. Data of the wrong size means one of them is wrong - most often a capture tool that padded its rows, or one that quietly delivered a different size from the one requested - and a consumer that trusted it would read every pixel from the wrong place. So the frame is refused rather than built.
Summary
Functions
Create an Elixir.BB.Error.Invalid.Camera.FrameSizeMismatch without raising it.
Types
@type t() :: %BB.Error.Invalid.Camera.FrameSizeMismatch{ __exception__: term(), actual: non_neg_integer(), bread_crumbs: term(), class: term(), expected: pos_integer(), format: BB.Camera.Format.t(), height: pos_integer(), path: term(), splode: term(), stacktrace: term(), vars: term(), width: pos_integer() }
Functions
@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Camera.FrameSizeMismatch{ __exception__: term(), actual: term(), bread_crumbs: term(), class: term(), expected: term(), format: term(), height: term(), path: term(), splode: term(), stacktrace: term(), vars: term(), width: term() }
Create an Elixir.BB.Error.Invalid.Camera.FrameSizeMismatch without raising it.
Keys
- :format
- :width
- :height
- :expected
- :actual