From ea3b2501271a530b05ce169d1824590011d93112 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 Apr 2019 03:37:31 +0200 Subject: [PATCH] finalize changelog v1.3.1 --- ChangeLog | 4 ++++ debian/changelog | 4 ++-- doc/man/man3/ltc.h.3 | 30 +++++++++++++++++++++++++++++- src/ltc.h | 10 +++++----- 4 files changed, 40 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 091e4b0..a592e35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-04-04 (v1.3.1) Robin Gareus +* Added methods to write and read numbers from user bytes +* Fix compilation for Ardunio/AVR (missing rint) + 2016-12-23 (v1.3.0) Robin Gareus * fix potential offset overflow (user provided relative position) * further improve MSVC compatibility (-infinity) diff --git a/debian/changelog b/debian/changelog index 7581f29..55f9620 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,10 @@ -libltc (1.3.0-1) unstable; urgency=low +libltc (1.3.1-1) unstable; urgency=low * Robin's private package. see ../ChangeLog * official debian package at http://anonscm.debian.org/gitweb/?p=pkg-multimedia/libltc.git - -- Robin Gareus Fri, 23 Dec 2016 04:46:09 +0100 + -- Robin Gareus Thu, 04 Apr 2019 03:36:09 +0200 libltc (1.0.1-1) unstable; urgency=low diff --git a/doc/man/man3/ltc.h.3 b/doc/man/man3/ltc.h.3 index 22b8fb5..8ffaa6b 100644 --- a/doc/man/man3/ltc.h.3 +++ b/doc/man/man3/ltc.h.3 @@ -1,4 +1,4 @@ -.TH "ltc.h" 3 "Fri Dec 23 2016" "Version 1.3.0" "libltc" \" -*- nroff -*- +.TH "ltc.h" 3 "Thu Apr 4 2019" "Version 1.3.1" "libltc" \" -*- nroff -*- .ad l .nh .SH NAME @@ -125,6 +125,12 @@ ltc.h \- libltc - en+decode linear timecode .RI "void \fBltc_encoder_get_timecode\fP (\fBLTCEncoder\fP *e, \fBSMPTETimecode\fP *t)" .br .ti -1c +.RI "void \fBltc_encoder_set_user_bits\fP (\fBLTCEncoder\fP *e, unsigned long data)" +.br +.ti -1c +.RI "unsigned long \fBltc_frame_get_user_bits\fP (\fBLTCFrame\fP *f)" +.br +.ti -1c .RI "int \fBltc_encoder_inc_timecode\fP (\fBLTCEncoder\fP *e)" .br .ti -1c @@ -934,6 +940,19 @@ Internally this call uses \fBltc_time_to_frame\fP because the LTCEncoder operate \fBExamples: \fP .in +1c \fBexample_encode\&.c\fP, and \fBltcencode\&.c\fP\&. +.SS "void ltc_encoder_set_user_bits (\fBLTCEncoder\fP * e, unsigned long data)" +Set the user-bits of the frame to the given data\&. +.PP +The data should be a 32-bits unsigned integer\&. It is written LSB first continiously int the eight user fields\&. +.PP +\fBParameters:\fP +.RS 4 +\fIe\fP encoder handle +.br +\fIdata\fP the data to write +.RE +.PP + .SS "int ltc_encoder_set_volume (\fBLTCEncoder\fP * e, double dBFS)" Set the volume of the generated LTC signal .PP @@ -1000,6 +1019,15 @@ Decrement the timecode by one Frame (1/framerate seconds) and set the Frame's pa .RE .PP +.SS "unsigned long ltc_frame_get_user_bits (\fBLTCFrame\fP * f)" +Get a 32-bits unsigned integer from the user-data bits\&. The data should be written LSB first in the frame +.PP +\fBParameters:\fP +.RS 4 +\fIe\fP encoder handle +.RE +.PP + .SS "int ltc_frame_increment (\fBLTCFrame\fP * frame, int fps, enum \fBLTC_TV_STANDARD\fP standard, int flags)" Increment the timecode by one Frame (1/framerate seconds) and set the Frame's parity bit accordingly (see \fBltc_frame_set_parity\fP) .PP diff --git a/src/ltc.h b/src/ltc.h index 037d41a..884a11c 100644 --- a/src/ltc.h +++ b/src/ltc.h @@ -63,17 +63,17 @@ extern "C" { #ifndef DOXYGEN_IGNORE /* libltc version */ -#define LIBLTC_VERSION "1.3.0" +#define LIBLTC_VERSION "1.3.1" #define LIBLTC_VERSION_MAJOR 1 #define LIBLTC_VERSION_MINOR 3 -#define LIBLTC_VERSION_MICRO 0 +#define LIBLTC_VERSION_MICRO 1 /* interface revision number * http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html */ -#define LIBLTC_CUR 11 -#define LIBLTC_REV 5 -#define LIBLTC_AGE 0 +#define LIBLTC_CUR 12 +#define LIBLTC_REV 0 +#define LIBLTC_AGE 1 #endif /* end DOXYGEN_IGNORE */ /**