View Source ExWebRTC.Media.IVF.Header (ex_webrtc v0.7.0)
Defines IVF Frame Header type.
Summary
Types
@type t() :: %ExWebRTC.Media.IVF.Header{ fourcc: non_neg_integer(), header_size: non_neg_integer(), height: non_neg_integer(), num_frames: non_neg_integer(), signature: binary(), timebase_denum: non_neg_integer(), timebase_num: pos_integer(), unused: non_neg_integer(), version: non_neg_integer(), width: non_neg_integer() }
IVF Frame Header.
Description of these fields is taken from: https://chromium.googlesource.com/chromium/src/media/+/master/filters/ivf_parser.h
signature
- always "DKIF"version
- should be 0header_size
- size of header in bytesfourcc
- codec FourCC (e.g, 'VP80'). For more information, see https://fourcc.org/codecs.phpwidth
- width in pixelsheight
- height in pixelstimebase_denum
- timebase denumeratortimebase_num
- timebase numerator. For example, iftimebase_denum
is 30 andtimebase_num
is 2, the unit ofExWebRTC.Media.IVFFrame
's timestamp is 2/30 seconds.num_frames
- number of frames in a fileunused
- unused