I/O¶
- load_frame_data_from_file(file_path: str, idx_display_order: int) FrameData [source]¶
Load the idx_display_order-th frame from a .yuv file or .png file. For the latter, idx_display_order must be equal to 0 as there is only one frame in a png.
- Parameters:
file_path (
str
) – Absolute path of the file from which the frame is loaded.idx_display_order (
int
) – Index of the frame in display order
- Returns:
The loaded frame, wrapped as a FrameData object.
- Return type: