Package com.github.kokorin.jaffree.nut
Class DataItem
java.lang.Object
com.github.kokorin.jaffree.nut.DataItem
This data structure is used both in frames for per frame side and metadata
as well as info tags for metadata covering the whole file, a stream
chapter or other.
Metadata is data that is about the actual data and generally not essential for correct presentation
Sidedata is semantically part of the data and essential for its correct presentation. The same syntax is used by both for simplicity.
Types of per frame side data:
- "Channels", "ChannelLayout", "SampleRate", "Width", "Height" -- This frame changes the number of channels, the channel layout, ... to the given value (ChannelLayout vb, else v) If used in any frame of a stream then every keyframe of the stream SHOULD carry such sidedata to allow seeking.
- "Extradata", "Palette" -- This frame changes the codec_specific_data or palette to the given value (vb) If used in any frame of a stream then every keyframe of the stream SHOULD carry such sidedata to allow seeking.
- "CodecSpecificSide<num>" -- Codec specific side data, equivalent to matroskas BlockAdditional (vb) the "<num>" should be replaced by a number identifying the type of side data, it is equivalent/equal to BlockAddId in matroska.
- "SkipStart", "SkipEnd" -- The decoder should skip/drop the specified number of samples at the start/end of this frame (v)
- "UserData<identifer here>" -- User specific side data, the "<identifer here\>" should be replaced by a globally unique identifer of the project that uses/creates/understands the side data. For example "UserDataFFmpeg"
Nut specification references to this data as side/meta data or sm_data
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary