Antonio Ospite [Mon, 18 Nov 2013 13:41:42 +0000 (14:41 +0100)]
doc/lsusb_dumps: add lsusb_Philips-PicoPix-2055.log
Antonio Ospite [Mon, 18 Nov 2013 13:38:26 +0000 (14:38 +0100)]
doc/lsusb_dumps: strip trailing spaces
This makes it easier to compare different files with diff.
Antonio Ospite [Mon, 18 Nov 2013 13:35:37 +0000 (14:35 +0100)]
doc/man: misc fixes to man pages
The help text in particular was copied from the output of the '-h'
option which was referring to "this help message", this was OK on the
command line but it sounds a little off in a man page.
Antonio Ospite [Wed, 30 Oct 2013 09:41:06 +0000 (10:41 +0100)]
CMakeLists.txt: define DEBUG=1 only when CMAKE_BUILD_TYPE=Debug
When building with CMAKE_BUILD_TYPE=RelWithDebInfo the development debug
code should not be enabled, so don't define DEBUG=1 in DEBUG_FLAGS as
this will end up being both in CMAKE_C_FLAGS_DEBUG and
CMAKE_C_FLAGS_RELWITHDEBINFO.
Instead define DEBUG=1 only for CMAKE_C_FLAGS_DEBUG so it gets used only
when CMAKE_BUILD_TYPE=Debug.
Antonio Ospite [Sun, 13 Oct 2013 13:50:11 +0000 (15:50 +0200)]
HACKING.asciidoc: fix the url of the avcodec_encode_video2 patch
Antonio Ospite [Sat, 7 Sep 2013 15:30:28 +0000 (17:30 +0200)]
am7xxx-play: cosmetics, fix coding style
Antonio Ospite [Sat, 3 Aug 2013 13:14:34 +0000 (15:14 +0200)]
am7xxx: add quirks for Philips/Sagemcom PicoPix 2055
The Philips/Sagemcom PicoPix 2055 does not support some operations:
- setting the power mode confuses the firmware
- setting the zoom mode has no effect whatsoever
Disable these operations.
Thanks-to: Luca Bompani
Antonio Ospite [Sun, 28 Jul 2013 21:22:15 +0000 (23:22 +0200)]
NEWS: fix a typo s/mode/more/
Antonio Ospite [Sun, 28 Jul 2013 09:15:18 +0000 (11:15 +0200)]
Release version 0.1.4
Antonio Ospite [Sat, 27 Jul 2013 23:11:42 +0000 (01:11 +0200)]
contrib: add some benchmarking data about am7xxx_send_image_async
Antonio Ospite [Sat, 27 Jul 2013 22:50:30 +0000 (00:50 +0200)]
am7xxx-play: fix a crash when a packet cannot be encoded
Antonio Ospite [Sat, 27 Jul 2013 22:38:13 +0000 (00:38 +0200)]
am7xxx-play: don't initialize variables when not needed
Antonio Ospite [Sat, 27 Jul 2013 22:19:04 +0000 (00:19 +0200)]
TODO: mention that atoi() must go away
Antonio Ospite [Sat, 27 Jul 2013 22:10:08 +0000 (00:10 +0200)]
picoproj: get rid of exit(), return more meaningful values to userspace
Maybe the values returned by picoproj will never be used, but it is
better to use a clean style in example code.
Antonio Ospite [Sat, 27 Jul 2013 21:47:26 +0000 (23:47 +0200)]
HACKING.asciidoc: add commands to compile with clang
Antonio Ospite [Sat, 27 Jul 2013 21:44:45 +0000 (23:44 +0200)]
HACKING.asciidoc: add an example of testing am7xxx-play with valgrind
This will make testing easier as the line can be copied and pasted.
Antonio Ospite [Sat, 27 Jul 2013 21:36:08 +0000 (23:36 +0200)]
doc: update Doxyfile.in
Antonio Ospite [Sat, 27 Jul 2013 21:27:01 +0000 (23:27 +0200)]
contrib: add a udev rule to invoke am7xxx-modeswitch
This will be useful on embedded systems like RaspberryPi or BeagleBone
where users may not want the whole usb-modeswitch package to be
installed just for libam7xxx.
Antonio Ospite [Sat, 27 Jul 2013 21:25:34 +0000 (23:25 +0200)]
Rename am7xxx_mode_switch to am7xxx-modeswitch
The new name matches more closely the name of the binary used in recent
usb-modeswitch versions.
Antonio Ospite [Sat, 27 Jul 2013 21:02:34 +0000 (23:02 +0200)]
TODO: mention that data types could be improved in the API
Antonio Ospite [Sat, 27 Jul 2013 21:01:16 +0000 (23:01 +0200)]
picoporj: fix another -Wshorten-64-to-32 warning from clang
../examples/picoproj.c:196:8: error: implicit conversion loses integer precision: 'size_t'
(aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
ret = fread(image, size, 1, image_fp);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Antonio Ospite [Sat, 27 Jul 2013 20:55:53 +0000 (22:55 +0200)]
picoproj: silence a -Wshorten-64-to-32 warning from clang
../examples/picoproj.c:187:12: error: implicit conversion loses integer precision: '__off_t' (aka 'long')
to 'unsigned int' [-Werror,-Wshorten-64-to-32]
size = st.st_size;
~ ~~~^~~~~~~
Antonio Ospite [Sat, 27 Jul 2013 20:53:19 +0000 (22:53 +0200)]
CMakeLists.txt: disable -Wsign-conversion warnings
Antonio Ospite [Sat, 27 Jul 2013 19:33:28 +0000 (21:33 +0200)]
am7xxx: fix a clang warning
../src/am7xxx.c:685:16: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
[-Werror,-Wshorten-64-to-32]
num_devices = libusb_get_device_list(ctx->usb_context, &list);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libusb_get_device_list() returns ssize_t, just use it for the num_devices
variable.
Antonio Ospite [Sat, 27 Jul 2013 18:55:48 +0000 (20:55 +0200)]
examples: silence a couple of clang warnings
Silence a couple of warnings given when compiling with clang:
../examples/am7xxx-play.c:764:28: warning: will never be executed [-Wunreachable-code]
AM7XXX_ZOOM_ORIGINAL, AM7XXX_ZOOM_TEST);
^~~~~~~~~~~~~~~~
../examples/am7xxx-play.c:748:24: warning: will never be executed [-Wunreachable-code]
AM7XXX_POWER_OFF, AM7XXX_POWER_TURBO);
2 warnings generated.
../examples/picoproj.c:142:28: warning: will never be executed [-Wunreachable-code]
AM7XXX_ZOOM_ORIGINAL, AM7XXX_ZOOM_TEST);
^~~~~~~~~~~~~~~~
../examples/picoproj.c:127:24: warning: will never be executed [-Wunreachable-code]
AM7XXX_POWER_OFF, AM7XXX_POWER_TURBO);
2 warnings generated.
The warnings refer to the default case of a switch statement over an
enum variable, clang fails to understand that the default case can still
be reached because any integer value can be assigned to the enum
variables via the atoi() function. Work around the warning.
The behavior is also documented here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024174.html
In general assigning arbitrary values to enum variables will just be
weird; using enums in read mode is always safe tho.
Antonio Ospite [Sat, 27 Jul 2013 18:26:06 +0000 (20:26 +0200)]
doc: mention the Top-Height/TEC PP700 in the Doxygen documentation
Antonio Ospite [Sat, 27 Jul 2013 18:23:30 +0000 (20:23 +0200)]
doc: add some lsusb dumps for reference
Antonio Ospite [Sat, 20 Jul 2013 22:13:33 +0000 (00:13 +0200)]
am7xxx-play: use am7xxx_send_image_async()
Woot, this change alone doubles the frame rate :)
Antonio Ospite [Sat, 20 Jul 2013 22:10:28 +0000 (00:10 +0200)]
am7xxx: implement am7xxx_send_image_async()
Implement am7xxx_send_image_async() the non-blocking version of
am7xxx_send_image().
This way user programs can more easily overlap encoding and
communication and achieve higher framerates.
Antonio Ospite [Sun, 14 Jul 2013 11:25:25 +0000 (13:25 +0200)]
am7xxx: fix a typo in a comment s/a am7xxx device/an am7xxx device/
Antonio Ospite [Sat, 13 Jul 2013 09:05:00 +0000 (11:05 +0200)]
CMakeLists.txt: enable two new compiler warnings
Enable -Wsign-conversion as a strict compilation check for both gcc and
clang.
For clang also enable -Wshorten-64-to-32 as a strict compilation check.
Antonio Ospite [Sat, 29 Jun 2013 22:22:07 +0000 (00:22 +0200)]
am7xxx: add quirks for devices not supporting some operations
For instance Philips/SagemoCm PicoPix PPX 2330 does not support power
modes and zoom modes, and the device even gets confused when trying to
use them; so for reliable operation it is better to just skip these
operations on such devices.
Thanks-to: Grégory Lemesre
Antonio Ospite [Sat, 29 Jun 2013 22:20:51 +0000 (00:20 +0200)]
picoproj: remove an unreachable break statement
Antonio Ospite [Sat, 29 Jun 2013 22:15:30 +0000 (00:15 +0200)]
am7xxx-play: uniform coding style
Uniform the coding style of error paths to the one use throughout in the
file.
Antonio Ospite [Sat, 29 Jun 2013 22:12:59 +0000 (00:12 +0200)]
CMakeLists.txt: add support for clang and isolate gcc-only options
Antonio Ospite [Sat, 29 Jun 2013 21:11:57 +0000 (23:11 +0200)]
HACKING.asciidoc: mention the patch needed for older libav/ffmpeg
libav/ffmpeg 0.8.X series do not have avcodec_encode_video2() which the
code uses, so for these older versions a patch is needed to undo the
changes which added support for that call.
Antonio Ospite [Sat, 29 Jun 2013 21:02:13 +0000 (23:02 +0200)]
README.asciidoc: mention the TEC PP700 projector as supported
Mention the Top-Height/TEC PP700 amongst the supported devices, it has
been verified to be work with libam7xxx (thanks to the user nicknamed
MHz).
The projector looks exactly like an Acer C112 from the software point of
view.
Antonio Ospite [Sun, 26 May 2013 22:06:23 +0000 (00:06 +0200)]
picoproj: remove an unneeded blank line
Antonio Ospite [Sun, 26 May 2013 22:05:00 +0000 (00:05 +0200)]
examples: print the usage message when a required option is missing
While at it specify which option is missing when picoproj fails..
Antonio Ospite [Sun, 26 May 2013 21:53:13 +0000 (23:53 +0200)]
CMakeLists.txt: fix enabling verbose debug output
In
024af793fa6d6af644c225804d140cc13aa56307 the definition -DDEBUG=1 got
lost, add it back.
Antonio Ospite [Fri, 5 Apr 2013 21:35:34 +0000 (23:35 +0200)]
am7xxx: use the symbolic constant for libusb log level
Antonio Ospite [Fri, 5 Apr 2013 21:29:58 +0000 (23:29 +0200)]
picoproj: show the image resolution when image does not fit the native one
This may help spotting a missing or wrong dimension parameter on the
command line.
Antonio Ospite [Fri, 5 Apr 2013 21:28:24 +0000 (23:28 +0200)]
picoproj: remove one of two consecutive blank lines
Antonio Ospite [Mon, 25 Mar 2013 22:04:03 +0000 (23:04 +0100)]
doc, contrib: add PicoPix 2330 to the list of supported devices
Thanks: Varlei Everton Menconi <varlei@dge.inpe.br>
Antonio Ospite [Mon, 25 Mar 2013 21:47:21 +0000 (22:47 +0100)]
am7xxx: add support for Philips/Sagemcom PicoPix 2330
Antonio Ospite [Mon, 25 Mar 2013 21:44:35 +0000 (22:44 +0100)]
Merge branch 'per-device-usb-config'
Antonio Ospite [Sat, 23 Mar 2013 22:30:54 +0000 (23:30 +0100)]
am7xxx: make the supported_device array const
Antonio Ospite [Sat, 23 Mar 2013 21:55:04 +0000 (22:55 +0100)]
am7xxx: improve setting USB configuration and interface_number
There are devices out there with different bConfigurationValue or
bInterfaceNumber, having the ability to specify these setting on
a per-device basis makes it easier to add support for them.
Antonio Ospite [Wed, 14 Nov 2012 14:41:48 +0000 (15:41 +0100)]
am7xxx: reference am7xxx_usb_device_descriptor in struct _am7xxx_device
This makes it possible to retrieve info from the am7xxx device
descriptor starting from an am7xxx_device.
Antonio Ospite [Sat, 23 Mar 2013 21:40:25 +0000 (22:40 +0100)]
am7xxx: fail if USB configuration or interface are not right
Check the return values of libusb_set_configuration() and
libusb_claim_interface(), this way it is easier to spot devices which
require a different setting.
Antonio Ospite [Sat, 23 Mar 2013 22:03:48 +0000 (23:03 +0100)]
am7xxx_mode_switch: release interface only if claimed
Antonio Ospite [Thu, 14 Mar 2013 22:04:20 +0000 (23:04 +0100)]
doc: add a man page for am7xxx_mode_switch
Antonio Ospite [Thu, 14 Mar 2013 23:13:21 +0000 (00:13 +0100)]
Add a NEWS file
Antonio Ospite [Thu, 14 Mar 2013 19:23:49 +0000 (20:23 +0100)]
Release version 0.1.3
Antonio Ospite [Thu, 14 Mar 2013 18:48:14 +0000 (19:48 +0100)]
am7xxx-play: switch to avcodec_encode_video2()
The code can now compile with -Werror=deprecated-declarations
Antonio Ospite [Thu, 14 Mar 2013 18:30:07 +0000 (19:30 +0100)]
am7xxx-play: remove an unreachable break
Antonio Ospite [Thu, 14 Mar 2013 11:28:32 +0000 (12:28 +0100)]
am7xxx-play: rename 'packet' to 'in_packet'
This is in preparation to use an 'out_packet' for the conversion to
avcodec_encode_video2().
Antonio Ospite [Thu, 14 Mar 2013 10:22:05 +0000 (11:22 +0100)]
am7xxx: fix coding style
Keep logical operators on the current line when continuing to another line.
Antonio Ospite [Thu, 14 Mar 2013 10:13:16 +0000 (11:13 +0100)]
contrib: add the am7xxx-play-window.sh script
Antonio Ospite [Mon, 17 Dec 2012 22:54:51 +0000 (23:54 +0100)]
Merge branch 'fix-devinfo-for-PicoPix'
Antonio Ospite [Fri, 7 Dec 2012 10:59:32 +0000 (11:59 +0100)]
am7xxx: make libam7xxx work with Philips/Sagemcom PPX projectors
Philips/Sagemcom PicoPix projectors require that the DEVINFO packet is
the first one to be sent to the device in order for it to successfully
return the correct device information.
Call am7xxx_get_device_info() from am7xxx_open_device() to fulfill the
requirement from above. The device info will be cached by
am7xxx_get_device_info() and further calls to the latter will return the
correct data too.
Antonio Ospite [Fri, 7 Dec 2012 10:51:16 +0000 (11:51 +0100)]
am7xxx: cache device info in am7xxx_get_device_info()
Request the actual device info from the device only when there is not
a cached version of it already.
This serves two purposes:
1. Cover the case when some firmwares provide useful device info
only under some conditions and spit out bogus data instead when
these conditions are not met.
2. Speed up am7xxx_get_device_info() as the USB communication is
performed only once. AFAWN the device info does not change
throughout the life of an am7xxx_device.
Antonio Ospite [Fri, 7 Dec 2012 11:22:45 +0000 (12:22 +0100)]
am7xxx: detect unexpected responses to AM7XXX_PACKET_TYPE_DEVINFO requests
Under some conditions, some devices like Philips/Sagemcom PPX projectors
return a strangely small packet (e.g. an AM7XXX_PACKET_TYPE_POWER with
header_data_len == 2) in reply to an AM7XXX_PACKET_TYPE_DEVINFO, hence
NOT providing useful device info.
Antonio Ospite [Tue, 4 Dec 2012 10:46:12 +0000 (11:46 +0100)]
Fix an error when compiling with both -O0 and -Wp,-D_FORTIFY_SOURCE=2
Fix the following error happening with the gcc shipped on some Ubuntu
versions:
In file included from /usr/include/stdio.h:27:0,
from /home/pedro/lib/libam7xxx/src/am7xxx.c:19:
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE
requires compiling with optimization (-O) [-Werror=cpp]
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/am7xxx.dir/am7xxx.c.o] Error 1
make[1]: *** [src/CMakeFiles/am7xxx.dir/all] Error 2
make: *** [all] Error 2
Reported-by: Petr Certik <petr@certik.cz>
Antonio Ospite [Wed, 14 Nov 2012 11:31:01 +0000 (12:31 +0100)]
am7xxx: don't mention AM7XXX_DIRECTION_OUT in read_header()
The validity check in read_header() looks for:
h->direction == AM7XXX_DIRECTION_IN
When this is false (direction is _not_equal_ to AM7XXX_DIRECTION_IN) it
cannot be said for sure that the direction field value is going to
really be AM7XXX_DIRECTION_OUT, technically the device may have put
anything there.
So, just report what happens don't try to overguess.
Antonio Ospite [Wed, 14 Nov 2012 11:08:07 +0000 (12:08 +0100)]
am7xxx: add a note on the symmetry of read_header() and send_header()
In read_header we do:
1. read data
2. unserialize header
3. validity check
4. dump header
In send_header:
1. dump header
2. validity check (we skip it, actually)
3. serialize header
4. send data
Antonio Ospite [Wed, 14 Nov 2012 11:01:34 +0000 (12:01 +0100)]
am7xxx: assign device_list next to its first use
This makes the code a little more readable.
Antonio Ospite [Wed, 14 Nov 2012 10:00:58 +0000 (11:00 +0100)]
am7xxx: print text description of the 'direction' field
Print "IN" or "OUT" (or "UNKNOWN") when dumping the direction field of
the header, this makes it easier to follow the communication in the
debug output.
Antonio Ospite [Sun, 14 Oct 2012 16:23:04 +0000 (18:23 +0200)]
picoproj: clarify that when AM7XXX_ZOOM_TEST is set no image gets sent
Antonio Ospite [Sun, 14 Oct 2012 16:03:54 +0000 (18:03 +0200)]
am7xxx: add support for Philips/SagemCom PicoPix PPX 2055
Antonio Ospite [Mon, 17 Sep 2012 08:07:55 +0000 (10:07 +0200)]
examples: support multiple devices
Expose a '-d <index>' option to set the device index, this way multiple
devices can be used.
Tested-by: Konstantin Lohmann <konstl@konstl.com>
Antonio Ospite [Mon, 17 Sep 2012 08:10:07 +0000 (10:10 +0200)]
doc: update Doxygen configuration
Use "doxygen -s -u doc/Doxyfile.in"; the update fixes some warnings
when building the documentation with Doxygen 1.8:
warning: Tag `SHOW_DIRECTORIES' at line 79 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `HTML_ALIGN_MEMBERS' at line 149 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `USE_INLINE_TREES' at line 176 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Antonio Ospite [Fri, 27 Jul 2012 10:57:44 +0000 (12:57 +0200)]
Merge branch 'am7xxx_set_zoom_mode'
Antonio Ospite [Thu, 21 Jun 2012 08:12:14 +0000 (10:12 +0200)]
contrib: add a test image to show how zoom modes work
The image can be converted to a suitable JPEG with 'convert' from
imagemagick:
$ convert libam7xxx_test_image_800x480.svg libam7xxx_test_image_800x480.jpg
Antonio Ospite [Thu, 21 Jun 2012 08:41:42 +0000 (10:41 +0200)]
am7xxx-play: make the help about power mode more consistent
Use the same terminology used in the Doxygen documentation, "power mode"
instead of "power level".
Print values using "%d" instead of "%x".
Antonio Ospite [Wed, 20 Jun 2012 13:32:13 +0000 (15:32 +0200)]
picoproj: make the help about power mode more consistent
Use the same terminology used in the Doxygen documentation, "power mode"
instead of "power level".
Print values using "%d" instead of "%x".
Antonio Ospite [Wed, 20 Jun 2012 11:13:20 +0000 (13:13 +0200)]
am7xxx: update signature and documentation of am7xxx_set_power_mode()
In the signature, rename the 'mode' parameter to 'power' in order to
show better what it is about, after all in am7xxx_set_zoom_mode() the
correspondent parameter has been called zoom.
In the documentation tells about the new guesses about what the expected
behavior after AM7XXX_POWER_OFF is.
Antonio Ospite [Thu, 21 Jun 2012 08:32:32 +0000 (10:32 +0200)]
am7xxx-play: support setting the zoom mode
Antonio Ospite [Mon, 20 Feb 2012 12:43:03 +0000 (13:43 +0100)]
picoproj: support setting the zoom mode
Antonio Ospite [Mon, 20 Feb 2012 12:37:20 +0000 (13:37 +0100)]
am7xxx: implement support for the AM7XXX_PACKET_TYPE_ZOOM
The info has been guessed from the windows drivers, it may be imprecise
and incomplete.
Antonio Ospite [Sun, 8 Jul 2012 21:17:20 +0000 (23:17 +0200)]
Merge remote-tracking branch 'origin/rettichschnidi'
Reto Schneider [Sun, 8 Jul 2012 20:56:08 +0000 (22:56 +0200)]
Add missing break.
Reto Schneider [Thu, 5 Jul 2012 22:48:31 +0000 (00:48 +0200)]
Fix typo.
Antonio Ospite [Fri, 29 Jun 2012 11:22:55 +0000 (13:22 +0200)]
contrib: add an example of how to start displaying images automatically
Add an example of how an am7xxx-autodisplay functionality might be
implemented: some udev rules call a script which resizes the screen and
then call am7xxx-play.
Antonio Ospite [Thu, 21 Jun 2012 08:23:28 +0000 (10:23 +0200)]
contrib: add other supported devices to 55-am7xxx.rules
Antonio Ospite [Wed, 20 Jun 2012 13:01:02 +0000 (15:01 +0200)]
doc: update the list of supported devices
Antonio Ospite [Tue, 12 Jun 2012 10:48:28 +0000 (12:48 +0200)]
am7xxx: rename am7xxx_header.unknown0 to am7xxx_header.direction
This field should indicate the direction of the communication, according to
the USB dumps it is 0 for outgoing packets and 1 for incoming packets.
Antonio Ospite [Sat, 9 Jun 2012 10:21:36 +0000 (12:21 +0200)]
README.asciidoc: add Aiptek PocketCinema T25 to the AM7XXX devices list
Matti Koskinen [Sat, 9 Jun 2012 10:19:28 +0000 (12:19 +0200)]
am7xxx: add support for Aiptek PocketCinema T25
Antonio Ospite [Tue, 22 May 2012 14:34:29 +0000 (16:34 +0200)]
README.asciidoc: add info about running am7xxx-play.exe on Windows
Antonio Ospite [Tue, 22 May 2012 14:33:44 +0000 (16:33 +0200)]
HACKING.asciidoc: add info about compiling am7xxx-play for Windows
Antonio Ospite [Tue, 22 May 2012 14:23:10 +0000 (16:23 +0200)]
am7xxx-play: check if strtok_r is available
On Windows systems, where strtok_r is not available, strtok_s could be
used but this needs the C Run-Time library (msvcrt.dll or msvcr80.dll)
and we can't distribute it.
So for now, when strtok_r is not available, just print a message to warn
the user that the '-o' options is not available.
Antonio Ospite [Tue, 22 May 2012 14:21:25 +0000 (16:21 +0200)]
am7xxx-play: check if sigaction is available
If sigaction is not available just stub out the set_signal_handler()
function.
Antonio Ospite [Tue, 22 May 2012 14:16:15 +0000 (16:16 +0200)]
am7xxx-play: add a fallback definition for ENOTSUP
Antonio Ospite [Tue, 22 May 2012 13:42:26 +0000 (15:42 +0200)]
am7xxx-play: get the framerate from the video stream
When setting the output codec get the time_base (which indicates the
framerate) from the video stream, not from the input codec context, this
is the correct way to do it.
On some systems (Windows) the time_base from the input codec context is
set different from the one of the video stream, and timebase.num ends up
being 0 which results in the output codec initialization failing with
the message "framerate not set".
Antonio Ospite [Tue, 22 May 2012 13:29:55 +0000 (15:29 +0200)]
mingw_cross_toolchain.cmake: set the MINGW variable to True
Setting MINGW to True is important to let cmake set some variables such
as CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES from
Platform/Windows-GNU.cmake
I wasted a lot of time on this with find_library() not finding libav
libraries compiled for MingW whith the ".dll.a" suffix.
Antonio Ospite [Tue, 15 May 2012 08:35:05 +0000 (10:35 +0200)]
HACKING.asciidoc: add info about getting and building libam7xxx
Some Ubuntu user asked for a step by step guide.
Antonio Ospite [Mon, 14 May 2012 12:42:44 +0000 (14:42 +0200)]
README.asciidoc: add Royaltek PJU-2100 to the AM7XXX based devices list
The drivers for this device look like the same "EZ Display" bundle as
some other models.
Richard Wisenoecker [Sun, 13 May 2012 08:25:52 +0000 (10:25 +0200)]
am7xxx: add support for Acer C112
Antonio Ospite [Fri, 11 May 2012 19:52:29 +0000 (21:52 +0200)]
README.asciidoc document how to get libam7xx running on MS Windows