/// Loads frames from an animated image file into an Animation structure.
/// </summary>
/// <param name="fileName">A string containing the path to the file.</param>
/// <param name="animation">A reference to an Animation structure where the loaded frames will be stored. It should be initialized before the function is called.</param>
/// <param name="start">The index of the first frame to load. </param>
/// <param name="count">The number of frames to load.</param>
/// <returns>Returns true if the file was successfully loaded and frames were extracted; returns false otherwise.</returns>
/// Reads a multi-page image from a buffer in memory.
/// </summary>
/// <param name="buf">Input array of bytes.</param>
/// <param name="loadType">The same flags as in Imread</param>
/// <param name="mats">A vector of Mat objects holding each page, if more than one.</param>
/// <param name="range">A continuous selection of pages.</param>
/// <returns>The function imdecodemulti reads a multi-page image from the specified buffer in the memory. If the buffer is too short or contains invalid data, the function returns false.</returns>
/// Reads a multi-page image from a buffer in memory.
/// </summary>
/// <param name="buf">Input array or vector of bytes.</param>
/// <param name="loadType">The same flags as in Imread</param>
/// <param name="mats">A vector of Mat objects holding each page, if more than one.</param>
/// <param name="range">A continuous selection of pages.</param>
/// <returns>The function imdecodemulti reads a multi-page image from the specified buffer in the memory. If the buffer is too short or contains invalid data, the function returns false.</returns>
/// Loads frames from an animated image file into an Animation structure.
/// </summary>
/// <param name="fileName">A string containing the path to the file.</param>
/// <param name="animation">A reference to an Animation structure where the loaded frames will be stored. It should be initialized before the function is called.</param>
/// <param name="start">The index of the first frame to load. </param>
/// <param name="count">The number of frames to load.</param>
/// <returns>Returns true if the file was successfully loaded and frames were extracted; returns false otherwise.</returns>