PPNet.Message.Image (pp_net v0.1.5)

Copy Markdown View Source

This module defines the PPNet.Message.Image struct and provides functions to parse a binary or list representation of an Image message into this struct.

Summary

Types

format()

@type format() :: :jpeg | :webp | :png | :h264

t()

@type t() :: %PPNet.Message.Image{
  data: binary(),
  datetime: DateTime.t(),
  format: format(),
  id: uuidv4()
}

The PPNet.Message.Image struct

Fields

  • id - UUIDv4 identifying the image
  • format - Image format (:jpeg, :webp, :png, or :h264). :h264 data must be Annex-B framed (NAL units prefixed with a 00 00 01 / 00 00 00 01 start code); pack/1 rejects other framings.
  • data - Raw image binary
  • datetime - Timestamp of the image capture

uuidv4()

@type uuidv4() :: String.t()