{"id":191,"date":"2017-09-28T13:31:36","date_gmt":"2017-09-28T13:31:36","guid":{"rendered":"http:\/\/www.uvolante.org\/wordpress\/?page_id=191"},"modified":"2020-01-07T15:57:35","modified_gmt":"2020-01-07T15:57:35","slug":"tp","status":"publish","type":"page","link":"https:\/\/www.uvolante.org\/index.php\/cours\/multimedia\/tp\/","title":{"rendered":"TP"},"content":{"rendered":"<p><span style=\"font-family: arial,helvetica,sans-serif;\">Ce TP propose de compl\u00e9ter un programme de tatouage d&#8217;images fixes.<br \/>\n<\/span><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\">Il est possible que vous ayiez besoin des versions compil\u00e9es en statique de\u00a0<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">cjpeg<\/code><\/span><span style=\"font-family: arial,helvetica,sans-serif;\">(<a href=\"https:\/\/cloud.uvolante.org\/index.php\/s\/rkPJsDwC6wBRodY\/download\" class=\"external external_icon\" rel=\"nofollow\" target=\"_blank\">ici<\/a>) et <code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">djpeg<\/code> (<a href=\"https:\/\/cloud.uvolante.org\/index.php\/s\/9szj92maBqBm3gL\/download\" class=\"external external_icon\" rel=\"nofollow\" target=\"_blank\">l\u00e0<\/a>)<\/span><span style=\"font-family: arial,helvetica,sans-serif;\">. <\/span><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\">Le code du TP s&#8217;appuie sur la librairie\u00a0<\/span><code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">libit<\/code><span style=\"font-family: arial,helvetica,sans-serif;\"> qu&#8217;il faut donc installer au pr\u00e9alable. <\/span><\/p>\n<h3><span style=\"font-family: arial,helvetica,sans-serif;\">Installation de <code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">libit<\/code><\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">~$ MULTIMEDIA=\/home\/dir\/multimedia\n~$ mkdir -p $MULTIMEDIA\/runtime\n~$ cd $MULTIMEDIA\nmultimedia$ git clone https:\/\/forge.uvolante.org\/cayre\/libit\nmultimedia$ cd libit &amp;&amp; .\/configure --prefix=$MULTIMEDIA\/runtime \nmultimedia\/libit$ make -j 4 &amp;&amp; make install<\/pre>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\">Enfin, rajoutez\u00a0<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">\/home\/dir\/multimedia\/runtime\/libit\/bin<\/code><\/span><span style=\"font-family: arial,helvetica,sans-serif;\">\u00e0 votre variable d&#8217;environnement <code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$PATH<\/code> (dans votre\u00a0<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">~\/.bashrc<\/code><\/span><span style=\"font-family: arial,helvetica,sans-serif;\">ou votre <code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">~\/.profile<\/code><\/span><span style=\"font-family: arial,helvetica,sans-serif;\">) :<br \/>\n<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">PATH=\/home\/dir\/multimedia\/runtime\/bin:$PATH; export $PATH<\/pre>\n<h3><span style=\"font-family: arial,helvetica,sans-serif;\">Installation du code du TP<\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">multimedia\/runtime\/libit$ cd $MULTIMEDIA\nmultmedia$ git clone https:\/\/forge.uvolante.org\/cayre\/wmlab\nmultimedia$ cd wmlab\nmultimedia$ make<\/pre>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\">Vous obtenez deux ex\u00e9cutables : l&#8217;encodeur (<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">embedder<\/code><\/span><span style=\"font-family: arial,helvetica,sans-serif;\">) et le d\u00e9codeur (<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">decoder<\/code><\/span><span style=\"font-family: arial,helvetica,sans-serif;\">). Ils prennent leurs param\u00e8tres depuis les fichiers\u00a0<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$MULTIMEDIA\/wmlab\/cfg\/*.cfg<\/code>, mais ces derniers peuvent aussi \u00eatre fix\u00e9s en ligne de commande.<br \/>\n<\/span><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\"><em>Note<\/em> : Il est <em>normal<\/em> que l&#8217;encodeur produise une faute de segmentation au d\u00e9but : il manque votre code pour le faire fonctionner. <\/span><\/p>\n<h3><span style=\"font-family: arial,helvetica,sans-serif;\">\u00c9nonc\u00e9<\/span><\/h3>\n<p><span style=\"font-family: arial,helvetica,sans-serif;\">C&#8217;est par <a href=\"https:\/\/cloud.uvolante.org\/index.php\/s\/jHGTAlZO8Xl3SrY\/download\" class=\"external external_icon\" rel=\"nofollow\" target=\"_blank\">ici<\/a>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ce TP propose de compl\u00e9ter un programme de tatouage d&#8217;images fixes. Il est possible que vous ayiez besoin des versions compil\u00e9es en statique de\u00a0cjpeg(ici) et djpeg (l\u00e0). Le code du TP s&#8217;appuie sur la librairie\u00a0libit qu&#8217;il faut donc installer au<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.uvolante.org\/index.php\/cours\/multimedia\/tp\/\">Read more <span class=\"screen-reader-text\">TP<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":187,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-191","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/pages\/191"}],"collection":[{"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":8,"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/pages\/191\/revisions"}],"predecessor-version":[{"id":406,"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/pages\/191\/revisions\/406"}],"up":[{"embeddable":true,"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/pages\/187"}],"wp:attachment":[{"href":"https:\/\/www.uvolante.org\/index.php\/wp-json\/wp\/v2\/media?parent=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}