Merge tag 'v0.1.4' into debian
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 28 Jul 2013 16:20:15 +0000 (18:20 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sun, 28 Jul 2013 16:20:15 +0000 (18:20 +0200)
Release version 0.1.4

22 files changed:
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/gbp.conf [new file with mode: 0644]
debian/libam7xxx-bin.install [new file with mode: 0644]
debian/libam7xxx-bin.manpages [new file with mode: 0644]
debian/libam7xxx-dev.install [new file with mode: 0644]
debian/libam7xxx-doc.doc-base [new file with mode: 0644]
debian/libam7xxx-doc.docs [new file with mode: 0644]
debian/libam7xxx-doc.examples [new file with mode: 0644]
debian/libam7xxx-doc.lintian-overrides [new file with mode: 0644]
debian/libam7xxx0.1.install [new file with mode: 0644]
debian/libam7xxx0.1.symbols [new file with mode: 0644]
debian/libam7xxx0.1.udev [new symlink]
debian/patches/0001-doc-add-a-man-page-for-am7xxx_mode_switch.patch [new file with mode: 0644]
debian/patches/0002-Revert-am7xxx-play-switch-to-avcodec_encode_video2.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..dfdf2fb
--- /dev/null
@@ -0,0 +1,6 @@
+
+Permission to access am7xxx devices
+===================================
+
+The access to am7xxx devices is granted to any user belonging to the
+"plugdev" group.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..bc5caed
--- /dev/null
@@ -0,0 +1,17 @@
+libam7xxx (0.1.3-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/libam7xxx0.1.symbols: add the am7xxx_set_zoom_mode symbol
+  * debian/patches: add patch 0001 for a missing man page
+  * debian/control: update the list of supported devices
+  * debian: add a package for debug symbols
+  * debian/patches: add 0002-Revert-am7xxx-play-switch-to-avcodec_encode_video2.patch
+  * debian/control: restrict the version also for the other libav libraries
+
+ -- Antonio Ospite <ospite@studenti.unina.it>  Mon, 18 Mar 2013 14:04:14 +0100
+
+libam7xxx (0.1.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #666075)
+
+ -- Antonio Ospite <ospite@studenti.unina.it>  Wed, 28 Mar 2012 16:51:54 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..dc508fa
--- /dev/null
@@ -0,0 +1,146 @@
+Source: libam7xxx
+Section: libdevel
+Priority: extra
+Maintainer: Antonio Ospite <ospite@studenti.unina.it>
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cmake, pkg-config,
+ libusb-1.0-0-dev, libxcb1-dev,
+ libavdevice-dev (<< 6:9), libavformat-dev (<< 6:9), libavcodec-dev (<< 6:9), libswscale-dev (<< 6:9)
+Build-Depends-Indep: doxygen, asciidoc (>> 8.0.0), xmlto, docbook-xsl (>> 1.72)
+Standards-Version: 3.9.3
+Homepage: http://git.ao2.it/libam7xxx.git
+Vcs-Git: git://git.ao2.it/libam7xxx.git
+Vcs-Browser: http://git.ao2.it/libam7xxx.git
+
+Package: libam7xxx0.1
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: usb-modeswitch, usb-modeswitch-data (>= 20111023-1)
+Description: library for accessing am7xxx based devices
+ libam7xxx is an Open Source library to communicate via USB with projectors and
+ Digital Picture Frames based on the Actions Micro AM7XXX family if ICs.
+ .
+ libam7xxx makes it possible to use these devices as USB displays on
+ non-Windows Operating Systems like GNU/Linux or Android/Linux just to name
+ a few, and on non-PC platforms like for instance mobile phones, tablets or
+ game consoles.
+ .
+ Examples of supported devices are:
+   - Acer C110
+   - Acer C112
+   - Aiptek PocketCinema T25
+   - Philips/SagemCom PicoPix 1020
+   - Philips/SagemCom PicoPix 2055
+ .
+ This package contains the shared library of libam7xxx.
+
+Package: libam7xxx0.1-dbg
+Section: debug
+Architecture: any
+Depends: ${misc:Depends}, libam7xxx0.1 (= ${binary:Version})
+Description: debugging symbols for libam7xxx
+ libam7xxx is an Open Source library to communicate via USB with projectors and
+ Digital Picture Frames based on the Actions Micro AM7XXX family if ICs.
+ .
+ libam7xxx makes it possible to use these devices as USB displays on
+ non-Windows Operating Systems like GNU/Linux or Android/Linux just to name
+ a few, and on non-PC platforms like for instance mobile phones, tablets or
+ game consoles.
+ .
+ Examples of supported devices are:
+   - Acer C110
+   - Acer C112
+   - Aiptek PocketCinema T25
+   - Philips/SagemCom PicoPix 1020
+   - Philips/SagemCom PicoPix 2055
+ .
+ This package contains the debugging symbols for libam7xxx.
+
+Package: libam7xxx-dev
+Architecture: any
+Depends: ${misc:Depends}, libam7xxx0.1 (= ${binary:Version})
+Description: library for accessing am7xxx based devices -- development files
+ libam7xxx is an Open Source library to communicate via USB with projectors and
+ Digital Picture Frames based on the Actions Micro AM7XXX family if ICs.
+ .
+ libam7xxx makes it possible to use these devices as USB displays on
+ non-Windows Operating Systems like GNU/Linux or Android/Linux just to name
+ a few, and on non-PC platforms like for instance mobile phones, tablets or
+ game consoles.
+ .
+ Examples of supported devices are:
+   - Acer C110
+   - Acer C112
+   - Aiptek PocketCinema T25
+   - Philips/SagemCom PicoPix 1020
+   - Philips/SagemCom PicoPix 2055
+ .
+ This is the development package containing the libraries and header for
+ software development with libam7xxx.
+
+Package: libam7xxx-bin
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library for accessing am7xxx devices -- utilities and samples
+ libam7xxx is an Open Source library to communicate via USB with projectors and
+ Digital Picture Frames based on the Actions Micro AM7XXX family if ICs.
+ .
+ libam7xxx makes it possible to use these devices as USB displays on
+ non-Windows Operating Systems like GNU/Linux or Android/Linux just to name
+ a few, and on non-PC platforms like for instance mobile phones, tablets or
+ game consoles.
+ .
+ Examples of supported devices are:
+   - Acer C110
+   - Acer C112
+   - Aiptek PocketCinema T25
+   - Philips/SagemCom PicoPix 1020
+   - Philips/SagemCom PicoPix 2055
+ .
+ This package includes utilities and sample programs for libam7xxx.
+
+Package: libam7xxx-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Description: library for accessing am7xxx devices -- documentation
+ libam7xxx is an Open Source library to communicate via USB with projectors and
+ Digital Picture Frames based on the Actions Micro AM7XXX family if ICs.
+ .
+ libam7xxx makes it possible to use these devices as USB displays on
+ non-Windows Operating Systems like GNU/Linux or Android/Linux just to name
+ a few, and on non-PC platforms like for instance mobile phones, tablets or
+ game consoles.
+ .
+ Examples of supported devices are:
+   - Acer C110
+   - Acer C112
+   - Aiptek PocketCinema T25
+   - Philips/SagemCom PicoPix 1020
+   - Philips/SagemCom PicoPix 2055
+ .
+ This package contains the documentation of the API of libam7xxx.
+
+Package: am7xxx
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, libam7xxx-bin, libam7xxx-dev, libam7xxx0.1,
+ libam7xxx-doc
+Description: library for accessing am7xxx devices -- metapackage
+ libam7xxx is an Open Source library to communicate via USB with projectors and
+ Digital Picture Frames based on the Actions Micro AM7XXX family if ICs.
+ .
+ libam7xxx makes it possible to use these devices as USB displays on
+ non-Windows Operating Systems like GNU/Linux or Android/Linux just to name
+ a few, and on non-PC platforms like for instance mobile phones, tablets or
+ game consoles.
+ .
+ Examples of supported devices are:
+   - Acer C110
+   - Acer C112
+   - Aiptek PocketCinema T25
+   - Philips/SagemCom PicoPix 1020
+   - Philips/SagemCom PicoPix 2055
+ .
+ This is the metapackage to install all components of the project.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..6b81095
--- /dev/null
@@ -0,0 +1,88 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libam7xxx
+Upstream-Contact: Antonio Ospite <ospite@studenti.unina.it>
+Source: http://git.ao2.it/libam7xxx.git
+
+Files: *
+Copyright: 2012, Antonio Ospite <ospite@studenti.unina.it>
+License: GPL-2+
+
+Files: cmake_modules/Findlibusb-1.0.cmake
+Copyright: 2006, Andreas Schneider <mail@cynapses.org>
+           2008, Kyle Machulis <kyle@nonpolynomial.com>
+License: BSD-3+CMAKE
+
+Files: cmake_modules/FindXCB.cmake
+Copyright: 2008 Helio Chissini de Castro, <helio@kde.org>
+           2007, Matthias Kretz, <kretz@kde.org>
+License: BSD-3+CMAKE
+
+Files: debian/*
+Copyright: 2012, Antonio Ospite <ospite@studenti.unina.it>
+License: GPL-2+
+
+Files: examples/*
+Copyright: 2012, Antonio Ospite <ospite@studenti.unina.it>
+License: GPL-3+
+
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: BSD-3+CMAKE
+ Redistribution and use is allowed according to the terms of the New BSD license.
+ .
+ CMake-Modules Project New BSD License
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ * Neither the name of the CMake-Modules Project nor the names of its
+   contributors may be used to endorse or promote products derived from this
+   software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644 (file)
index 0000000..0a80fe8
--- /dev/null
@@ -0,0 +1,4 @@
+[DEFAULT]
+debian-branch = debian
+upstream-branch = master
+upstream-tag = v%(version)s
diff --git a/debian/libam7xxx-bin.install b/debian/libam7xxx-bin.install
new file mode 100644 (file)
index 0000000..1df36c6
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/*
diff --git a/debian/libam7xxx-bin.manpages b/debian/libam7xxx-bin.manpages
new file mode 100644 (file)
index 0000000..4450a71
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/*.1
diff --git a/debian/libam7xxx-dev.install b/debian/libam7xxx-dev.install
new file mode 100644 (file)
index 0000000..6970d78
--- /dev/null
@@ -0,0 +1,3 @@
+usr/include/am7xxx.h
+usr/lib/*.so
+usr/lib/pkgconfig/*
diff --git a/debian/libam7xxx-doc.doc-base b/debian/libam7xxx-doc.doc-base
new file mode 100644 (file)
index 0000000..cfa0385
--- /dev/null
@@ -0,0 +1,10 @@
+Document: libam7xxx
+Title: libam7xxx API Manual
+Author: libam7xxx project
+Abstract: This manual describes the API of libam7xxx, an open source driver
+ for AM7XXX devices.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libam7xxx-doc/html/index.html
+Files: /usr/share/doc/libam7xxx-doc/html/*.html
diff --git a/debian/libam7xxx-doc.docs b/debian/libam7xxx-doc.docs
new file mode 100644 (file)
index 0000000..2423339
--- /dev/null
@@ -0,0 +1,3 @@
+HACKING.asciidoc
+README.asciidoc
+debian/tmp/usr/share/doc/libam7xxx/html/
diff --git a/debian/libam7xxx-doc.examples b/debian/libam7xxx-doc.examples
new file mode 100644 (file)
index 0000000..43ec862
--- /dev/null
@@ -0,0 +1 @@
+examples/*.c
diff --git a/debian/libam7xxx-doc.lintian-overrides b/debian/libam7xxx-doc.lintian-overrides
new file mode 100644 (file)
index 0000000..d1a87d7
--- /dev/null
@@ -0,0 +1,4 @@
+# These are derived from how doxygen works, we are masking them so to have
+# less noise when running lintian
+libam7xxx-doc: duplicate-files usr/share/doc/libam7xxx-doc/html/search/all_6e.js usr/share/doc/libam7xxx-doc/html/search/variables_6e.js
+libam7xxx-doc: embedded-javascript-library usr/share/doc/libam7xxx-doc/html/jquery.js
diff --git a/debian/libam7xxx0.1.install b/debian/libam7xxx0.1.install
new file mode 100644 (file)
index 0000000..093956b
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*.so.*
diff --git a/debian/libam7xxx0.1.symbols b/debian/libam7xxx0.1.symbols
new file mode 100644 (file)
index 0000000..6db4c81
--- /dev/null
@@ -0,0 +1,11 @@
+libam7xxx.so.0.1 libam7xxx0.1 #MINVER#
+ am7xxx_calc_scaled_image_dimensions@Base 0.1.0
+ am7xxx_close_device@Base 0.1.0
+ am7xxx_get_device_info@Base 0.1.0
+ am7xxx_init@Base 0.1.0
+ am7xxx_open_device@Base 0.1.0
+ am7xxx_send_image@Base 0.1.0
+ am7xxx_set_log_level@Base 0.1.0
+ am7xxx_set_power_mode@Base 0.1.0
+ am7xxx_set_zoom_mode@Base 0.1.3
+ am7xxx_shutdown@Base 0.1.0
diff --git a/debian/libam7xxx0.1.udev b/debian/libam7xxx0.1.udev
new file mode 120000 (symlink)
index 0000000..e5bed5d
--- /dev/null
@@ -0,0 +1 @@
+../contrib/55-am7xxx.rules
\ No newline at end of file
diff --git a/debian/patches/0001-doc-add-a-man-page-for-am7xxx_mode_switch.patch b/debian/patches/0001-doc-add-a-man-page-for-am7xxx_mode_switch.patch
new file mode 100644 (file)
index 0000000..194258d
--- /dev/null
@@ -0,0 +1,100 @@
+From efddab9c02e7eae1e8bae843fe4d95718478de1b Mon Sep 17 00:00:00 2001
+From: Antonio Ospite <ospite@studenti.unina.it>
+Date: Thu, 14 Mar 2013 23:04:20 +0100
+Subject: [PATCH] doc: add a man page for am7xxx_mode_switch
+X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
+ ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG
+ !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE
+
+---
+ doc/man/CMakeLists.txt           |    2 ++
+ doc/man/am7xxx_mode_switch.1.txt |   57 ++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 59 insertions(+)
+ create mode 100644 doc/man/am7xxx_mode_switch.1.txt
+
+diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt
+index ed46999..a21e82c 100644
+--- a/doc/man/CMakeLists.txt
++++ b/doc/man/CMakeLists.txt
+@@ -3,6 +3,7 @@ find_package(Asciidoc)
+ if(ASCIIDOC_FOUND)
+   add_custom_target(manpages
+     ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/am7xxx-play.1.txt -D ${DOC_OUTPUT_PATH}/man
++    COMMAND ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/am7xxx_mode_switch.1.txt -D ${DOC_OUTPUT_PATH}/man
+     COMMAND ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/picoproj.1.txt -D ${DOC_OUTPUT_PATH}/man
+     WORKING_DIRECTORY ${DOC_OUTPUT_PATH}/man
+     COMMENT "Generating man pages with Asciidoc" VERBATIM
+@@ -17,6 +18,7 @@ if(ASCIIDOC_FOUND)
+   install(FILES
+     ${DOC_OUTPUT_PATH}/man/am7xxx-play.1
++    ${DOC_OUTPUT_PATH}/man/am7xxx_mode_switch.1
+     ${DOC_OUTPUT_PATH}/man/picoproj.1
+     DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1/"
+     COMPONENT manpages)
+diff --git a/doc/man/am7xxx_mode_switch.1.txt b/doc/man/am7xxx_mode_switch.1.txt
+new file mode 100644
+index 0000000..d80cb60
+--- /dev/null
++++ b/doc/man/am7xxx_mode_switch.1.txt
+@@ -0,0 +1,57 @@
++AM7XXX_MODE_SWITCH(1)
++=====================
++:doctype: manpage
++
++
++NAME
++----
++am7xxx_mode_switch - change the operational mode of am7xxx based devices
++
++
++SYNOPSIS
++--------
++*am7xxx_mode_switch*
++
++
++DESCRIPTION
++-----------
++am7xxx_mode_switch(1) is a minimal replacement of usb-modeswitch to use with
++am7xxx devices (e.g. Acer C110 or Philips PPX projectors) to switch from the
++mass storage device mode to the generic display mode.
++
++It is handy on systems where usb-modeswitch is not available, like Windows.
++
++
++EXAMPLE OF USE
++--------------
++
++am7xxx_mode_switch
++
++
++EXIT STATUS
++-----------
++*0*::
++    Success
++
++*!0*::
++    Failure (libusb error)
++
++
++AUTHORS
++-------
++Antonio Ospite
++
++
++RESOURCES
++---------
++Main web site: <http://git.ao2.it/libam7xxx.git>
++
++
++COPYING
++-------
++Copyright \(C) 2012  Antonio Ospite <ospite@studenti.unina.it>
++
++This program is free software: you can redistribute it and/or modify
++it under the terms of the GNU General Public License as published by
++the Free Software Foundation, either version 3 of the License, or
++(at your option) any later version.
+-- 
+1.7.10.4
+
diff --git a/debian/patches/0002-Revert-am7xxx-play-switch-to-avcodec_encode_video2.patch b/debian/patches/0002-Revert-am7xxx-play-switch-to-avcodec_encode_video2.patch
new file mode 100644 (file)
index 0000000..c372a63
--- /dev/null
@@ -0,0 +1,102 @@
+From 70d093e78087c821c2c944df062f4a8ba10e2625 Mon Sep 17 00:00:00 2001
+From: Antonio Ospite <ospite@studenti.unina.it>
+Date: Mon, 18 Mar 2013 11:06:57 +0100
+Subject: [PATCH] Revert "am7xxx-play: switch to avcodec_encode_video2()"
+X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
+ ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG
+ !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE
+
+This reverts commit b344c71f3e03f912d8b6ee7d96cdd67b31cdf8cc.
+
+avcodec_encode_video2() has been introduced in lavc 54.01.0 but Debian Wheezy
+ships with lavc 53, so for now we should revert this change for the Debian
+packages.
+
+When this patch will be dropped maybe the package should depend on
+libavcodec54 as the old API may be disabled in the Debian packages.
+
+---
+ examples/am7xxx-play.c |   29 +++++++++--------------------
+ 1 file changed, 9 insertions(+), 20 deletions(-)
+
+diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c
+index 38812a4..0b1fa65 100644
+--- a/examples/am7xxx-play.c
++++ b/examples/am7xxx-play.c
+@@ -285,12 +285,9 @@ static int am7xxx_play(const char *input_format_string,
+       int out_buf_size;
+       uint8_t *out_buf;
+       int out_picture_size;
+-      uint8_t *out_picture;
+       struct SwsContext *sw_scale_ctx;
+       AVPacket in_packet;
+-      AVPacket out_packet;
+       int got_picture;
+-      int got_packet;
+       int ret = 0;
+       ret = video_input_init(&input_ctx, input_format_string, input_path, input_options);
+@@ -393,26 +390,20 @@ static int am7xxx_play(const char *input_format_string,
+                                 picture_scaled->linesize);
+                       if (output_ctx.raw_output) {
+-                              out_picture = out_buf;
+                               out_picture_size = out_buf_size;
+                       } else {
+                               picture_scaled->quality = (output_ctx.codec_ctx)->global_quality;
+-                              av_init_packet(&out_packet);
+-                              out_packet.data = NULL;
+-                              out_packet.size = 0;
+-                              got_packet = 0;
+-                              ret = avcodec_encode_video2(output_ctx.codec_ctx,
+-                                                          &out_packet,
+-                                                          picture_scaled,
+-                                                          &got_packet);
+-                              if (ret < 0 || !got_packet) {
++                              /* TODO: switch to avcodec_encode_video2() eventually */
++                              out_picture_size = avcodec_encode_video(output_ctx.codec_ctx,
++                                                                      out_buf,
++                                                                      out_buf_size,
++                                                                      picture_scaled);
++                              if (out_picture_size < 0) {
+                                       fprintf(stderr, "cannot encode video\n");
++                                      ret = out_picture_size;
+                                       run = 0;
+                                       goto end_while;
+                               }
+-
+-                              out_picture = out_packet.data;
+-                              out_picture_size = out_packet.size;
+                       }
+ #ifdef DEBUG
+@@ -423,7 +414,7 @@ static int am7xxx_play(const char *input_format_string,
+                       else
+                               snprintf(filename, NAME_MAX, "out.raw");
+                       file = fopen(filename, "wb");
+-                      fwrite(out_picture, 1, out_picture_size, file);
++                      fwrite(out_buf, 1, out_picture_size, file);
+                       fclose(file);
+ #endif
+@@ -431,7 +422,7 @@ static int am7xxx_play(const char *input_format_string,
+                                               image_format,
+                                               (output_ctx.codec_ctx)->width,
+                                               (output_ctx.codec_ctx)->height,
+-                                              out_picture,
++                                              out_buf,
+                                               out_picture_size);
+                       if (ret < 0) {
+                               perror("am7xxx_send_image");
+@@ -440,8 +431,6 @@ static int am7xxx_play(const char *input_format_string,
+                       }
+               }
+ end_while:
+-              if (!output_ctx.raw_output)
+-                      av_free_packet(&out_packet);
+               av_free_packet(&in_packet);
+       }
+-- 
+1.7.10.4
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..3beea98
--- /dev/null
@@ -0,0 +1,2 @@
+0001-doc-add-a-man-page-for-am7xxx_mode_switch.patch
+0002-Revert-am7xxx-play-switch-to-avcodec_encode_video2.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..5c88420
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+DEB_LDFLAGS_MAINT_APPEND=-Wl,-Bsymbolic-functions -Wl,--as-needed
+include /usr/share/dpkg/buildflags.mk
+export CFLAGS CPPFLAGS LDFLAGS
+
+%:
+       dh $@
+
+.PHONY: override_dh_strip
+override_dh_strip:
+       dh_strip --dbg-package=libam7xxx0.1-dbg
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..0f44399
--- /dev/null
@@ -0,0 +1 @@
+#git=git://git.ao2.it/libam7xxx.git