Turbojpeg.yuv_to_jpeg

You're seeing just the function yuv_to_jpeg, go back to Turbojpeg module for more information.
Link to this function

yuv_to_jpeg(yuv, width, height, quality, format)

View Source

Specs

yuv_to_jpeg(binary(), width(), height(), quality(), format()) ::
  {:ok, binary()} | error()

Converts yuv to jpeg images

  iex> {:ok, jpeg} = Turbojpeg.yuv_to_jpeg(frame, 1920, 1080, 90, :I420)
    {:ok, <<....>>}