Defines image manipulation functions for VpinMdb media in ASAPCabinetFE. More...
#include "log/logging.h"
#include <filesystem>
#include <string>
Go to the source code of this file.
Functions | |
bool | vpinmdb::resizeImage (const fs::path &srcPath, int width, int height) |
Resizes an image to the specified dimensions if resizeToWindows is true. | |
bool | vpinmdb::rotateImage (const fs::path &srcPath, bool shouldRotate) |
Rotates an image 90 degrees clockwise if shouldRotate is true. | |
Defines image manipulation functions for VpinMdb media in ASAPCabinetFE.
This header provides functions for resizing and rotating images using FFmpeg, used for table media.
bool vpinmdb::resizeImage | ( | const fs::path & | srcPath, |
int | width, | ||
int | height | ||
) |
Resizes an image to the specified dimensions if resizeToWindows is true.
srcPath | Source image path. |
width | Target width. |
height | Target height. |
bool vpinmdb::rotateImage | ( | const fs::path & | srcPath, |
bool | shouldRotate | ||
) |
Rotates an image 90 degrees clockwise if shouldRotate is true.
srcPath | Source image path. |
shouldRotate | Whether to perform rotation. |