Question: A c library implementaion and command testing executables to validate it , library should contain basic decode and encode in the format : [ No
A c library implementaion and command testing executables to validate it library should contain basic decode and encode in the format :
No Frames longChannels ucharHeight uchar
Width ucharChHWChHWChHW
ChHW
No Frames is the Number of Frames in the full video in the format long
Channels is the number of Channels in each frame, maximum in the format
unsigned char
Height is the height of the number of pixels in each frame, maximum in the
format unsigned charWidth is the width of the number of pixels in each frame, maximum in theformat unsigned char
plus the following fuctions
reverse Reverse the entire video
The frames should be saved in reverse starting from the last frame in the video to the
first frame in the video.
swapchannel Swap channel in video frames
Taking as input the parameters of the two channels to swap, Channel
NumberChannel Number in unsigned char, for each frame in the video,
the two channels should be swapped around.
clipchannel Clips the range of each pixel in each frame
Taking as input channel number channel number and the range to clip
minimum maximum in unsigned char, the value of each pixel in all frames
should be limited to be within this range where values outside of the range are set to
the respective minimum or maximum value.
scalechannel Scales each pixel in each frame
Taking as input channel number channel number and the scale factor scale
factor in float which should be multiplied to each pixel in each frame.
Your testing executable should be able to receive an arbitrary number of input
arguments. For instance, your program will be tested by running the general
formulation runme input fileoutput fileSMfunction
nameoptions and specifically the following commands as defined above:
runme inputoutputSM reverse
runme inputoutputSM swapchannel
runme inputoutputSM clipchannel
runme inputoutputSM scalechannel
Where inputand outputare variable length file paths and SM are
performance mode options to prioritise Speed S or Memory M where optimisations
are to be determined and implemented by you.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
