An object representing the encoder context.
More...
◆ AnimationEncoder() [1/4]
|
|
inlineexplicitconstexprnoexcept |
- Parameters
-
| resource | a AnimationEncoderRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.
◆ AnimationEncoder() [2/4]
| SDL::AnimationEncoder::AnimationEncoder |
( |
StringParam |
file | ) |
|
|
inline |
◆ AnimationEncoder() [3/4]
◆ AnimationEncoder() [4/4]
These animation types are currently supported:
These are the supported properties:
prop::AnimationEncoder.CREATE_FILENAME_STRING: the file to save, if an IOStream isn't being used. This is required if prop::AnimationEncoder.CREATE_IOSTREAM_POINTER isn't set.
prop::AnimationEncoder.CREATE_IOSTREAM_POINTER: an IOStream that will be used to save the stream. This should not be closed until the animation encoder is closed. This is required if prop::AnimationEncoder.CREATE_FILENAME_STRING isn't set.
prop::AnimationEncoder.CREATE_IOSTREAM_AUTOCLOSE_BOOLEAN: true if closing the animation encoder should also close the associated IOStream.
prop::AnimationEncoder.CREATE_TYPE_STRING: the output file type, e.g. "webp", defaults to the file extension if prop::AnimationEncoder.CREATE_FILENAME_STRING is set.
prop::AnimationEncoder.CREATE_QUALITY_NUMBER: the compression quality, in the range of 0 to 100. The higher the number, the higher the quality and file size. This defaults to a balanced value for compression and quality.
prop::AnimationEncoder.CREATE_TIMEBASE_NUMERATOR_NUMBER: the numerator of the fraction used to multiply the pts to convert it to seconds. This defaults to 1.
prop::AnimationEncoder.CREATE_TIMEBASE_DENOMINATOR_NUMBER: the denominator of the fraction used to multiply the pts to convert it to seconds. This defaults to 1000.
- Parameters
-
| props | the properties of the animation encoder. |
- Postcondition
- a new AnimationEncoder, or nullptr on failure; call GetError() for more information.
- Since
- This function is available since SDL_image 3.4.0.
- See also
- AnimationEncoder.AnimationEncoder
-
AnimationEncoder.AnimationEncoder
-
AnimationEncoder.AddFrame
-
AnimationEncoder.Close
The documentation for this class was generated from the following file: