Mvimg class
A class for decoding motion photo files, which are composed of a jpeg image and an mp4 video.
Support like this:
MVIMG_XXXX.jpg
XXXX.MP.jpg
About Motion photo for Android:
- Implementers
Constructors
- Mvimg(BufferInput input)
- Creates a Mvimg from a BufferInput.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → BufferInput
-
The input buffer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoEndOffset → int
-
Returns the offset of the end of the video in the file.
no setter
- videoStartOffset → int
-
Returns the offset of the start of the video in the file.
no setter
- xapEndOffset → int
-
Returns the offset of the end of the xap in the file.
no setter
- xapStartOffset → int
-
Returns the offset of the start of the xap in the file.
no setter
Methods
-
decode(
) → void - Decodes the mvimg file.
-
dispose(
) → void - Closes the input buffer.
-
getImageBytes(
) → List< int> - Returns the bytes of the jpeg image in the file.
-
getVideoBytes(
) → List< int> - Returns the bytes of the mp4 video in the file.
-
getXapBytes(
) → List< int> - Returns the bytes of the xap in the file.
-
isMvimg(
) → bool - Returns true if the file is a mvimg or motion photo file.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited