10.08.2013 Views

MASTER THESIS Video Watermarking - Computer Graphics Group ...

MASTER THESIS Video Watermarking - Computer Graphics Group ...

MASTER THESIS Video Watermarking - Computer Graphics Group ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C<br />

Programming Documentation<br />

There is the programming documentation, generated from the source code of<br />

the plugin, on the enclosed CD but lacks description of adding another<br />

watermarking method.<br />

In order to add a new watermarking method into the watermarking<br />

framework, several actions have to be taken:<br />

The identifier of the method has to be inserted into the list of available<br />

methods. The list, named WatermarkMethod, is located in file watermark.h.<br />

The name and the description of the method have to be inserted into the list of<br />

possible values of the plugin's parameter method. The list is located in file<br />

gsth264watermark.c and its name is mode_types.<br />

Both embedding and detection functions have to be implemented. The file that<br />

contains the functions should be listed in file Makefile.am and the header<br />

file with the function declarations should be included in file watermark.c.<br />

The embedding and the detection functions have to be specified as the second<br />

and the third item in the defining structure in the list of defining structures.<br />

The list, named methods, is located in file watermark.c. The first item of<br />

the structure is the type of watermarking domain that the method uses; it is<br />

either WATERMARK_DOMAIN_FREQUENCY or WATERMARK_DOMAIN_SPATIAL.<br />

Both the embedding and the detection functions in frequency domain have<br />

the same arguments in the following order:<br />

watermark is pointer to the framework context.<br />

coefficients is pointer to the list of transform coefficients of one block. The<br />

list contains zig-zag scan of the coefficients in case of frame macroblocks, or<br />

field scan in case of field macroblocks.<br />

58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!