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

Implements image manipulation functions for VpinMdb media. More...

#include "vpinmdb_image.h"
#include <fstream>
#include <sstream>
#include <cstdlib>
+ Include dependency graph for vpinmdb_image.cpp:

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

Implements image manipulation functions for VpinMdb media.

This file provides the implementation for resizing and rotating images using FFmpeg.

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: