ASAPCabinetFE
 
Loading...
Searching...
No Matches
vpinmdb_image.h File Reference

Defines image manipulation functions for VpinMdb media in ASAPCabinetFE. More...

#include "log/logging.h"
#include <filesystem>
#include <string>
+ Include dependency graph for vpinmdb_image.h:
+ This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Defines image manipulation functions for VpinMdb media in ASAPCabinetFE.

This header provides functions for resizing and rotating images using FFmpeg, used for table media.

Function Documentation

◆ resizeImage()

bool vpinmdb::resizeImage ( const fs::path &  srcPath,
int  width,
int  height 
)

Resizes an image to the specified dimensions if resizeToWindows is true.

Parameters
srcPathSource image path.
widthTarget width.
heightTarget height.
Returns
True if successful or resizing not needed, false otherwise.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rotateImage()

bool vpinmdb::rotateImage ( const fs::path &  srcPath,
bool  shouldRotate 
)

Rotates an image 90 degrees clockwise if shouldRotate is true.

Parameters
srcPathSource image path.
shouldRotateWhether to perform rotation.
Returns
True if successful or rotation not needed, false otherwise.
+ Here is the call graph for this function:
+ Here is the caller graph for this function: