F28HS2: Hardware Software Interface - Struct PPM to Hold PPM Images - Computer Science Assignment Help

Download Solution Order New Solution
Assignment Task:

PPM Format
A)
Design a struct PPM to hold PPM images as defined above.
B) Write functions:
struct PPM * getPPM(FILE * f) to return a C structure PPM image from file “f”; 
showPPM(struct PPM * im) to display the PPM image “im” as text in the above format;
struct PPM * encode(struct PPM * im, char * message, unsigned int mSize, unsigned int secret) to return a modified copy of PPM image “im” with “message” characters hidden in its pixels using “secret”; “mSize” is the size of “message”.

C) Write a program steg to encode and decode messages in PPM images.
- For the call:
$ steg e file1.ppm > file2.ppm
steg prompts for a message and a secret and shows file1.ppm with the message encoded within it. Here, the output is redirected to file2.ppm.
- For the call:
$ steg d file.ppm
steg prompts for the secret, then shows the message hidden in file.ppm if the secret is the right one (or a wrong message, extracted from the image using the wrong secret).

This F28HS2: Computer Science Assignment has been solved by our Computer Science Experts at TVAssignmentHelp. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

 

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.