update libltc
This commit is contained in:
parent
2fa34614d0
commit
b804109e8e
@ -2,7 +2,7 @@
|
||||
libltc - en+decode linear timecode
|
||||
|
||||
Copyright (C) 2005 Maarten de Boer <mdeboer@iua.upf.es>
|
||||
Copyright (C) 2006-2012 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2006-2016 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2008-2009 Jan <jan@geheimwerk.de>
|
||||
|
||||
Binary constant generator macro for endianess conversion
|
||||
@ -107,7 +107,7 @@ static double calc_volume_db(LTCDecoder *d) {
|
||||
return (20.0 * log10((d->snd_to_biphase_max - d->snd_to_biphase_min) / 255.0));
|
||||
}
|
||||
|
||||
static void parse_ltc(LTCDecoder *d, unsigned char bit, int offset, ltc_off_t posinfo) {
|
||||
static void parse_ltc(LTCDecoder *d, unsigned char bit, ltc_off_t offset, ltc_off_t posinfo) {
|
||||
int bit_num, bit_set, byte_num;
|
||||
|
||||
if (d->bit_cnt == 0) {
|
||||
@ -248,7 +248,7 @@ static void parse_ltc(LTCDecoder *d, unsigned char bit, int offset, ltc_off_t po
|
||||
}
|
||||
}
|
||||
|
||||
static inline void biphase_decode2(LTCDecoder *d, int offset, ltc_off_t pos) {
|
||||
static inline void biphase_decode2(LTCDecoder *d, ltc_off_t offset, ltc_off_t pos) {
|
||||
|
||||
d->biphase_tics[d->biphase_tic] = d->snd_to_biphase_period;
|
||||
d->biphase_tic = (d->biphase_tic + 1) % LTC_FRAME_BIT_COUNT;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
libltc - en+decode linear timecode
|
||||
|
||||
Copyright (C) 2006-2012 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2006-2015 Robin Gareus <robin@gareus.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -191,7 +191,7 @@ int ltc_encoder_reinit(LTCEncoder *e, double sample_rate, double fps, enum LTC_T
|
||||
ltc_frame_set_parity(&e->f, standard);
|
||||
}
|
||||
|
||||
if (rint(fps*100) == 2997)
|
||||
if ((int)rint(fps * 100.0) == 2997)
|
||||
e->f.dfbit = 1;
|
||||
else
|
||||
e->f.dfbit = 0;
|
||||
|
@ -63,16 +63,16 @@ extern "C" {
|
||||
|
||||
#ifndef DOXYGEN_IGNORE
|
||||
/* libltc version */
|
||||
#define LIBLTC_VERSION "1.1.4"
|
||||
#define LIBLTC_VERSION "1.3.0"
|
||||
#define LIBLTC_VERSION_MAJOR 1
|
||||
#define LIBLTC_VERSION_MINOR 1
|
||||
#define LIBLTC_VERSION_MICRO 4
|
||||
#define LIBLTC_VERSION_MINOR 3
|
||||
#define LIBLTC_VERSION_MICRO 0
|
||||
|
||||
/* interface revision number
|
||||
* http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||
*/
|
||||
#define LIBLTC_CUR 11
|
||||
#define LIBLTC_REV 3
|
||||
#define LIBLTC_REV 5
|
||||
#define LIBLTC_AGE 0
|
||||
#endif /* end DOXYGEN_IGNORE */
|
||||
|
||||
@ -277,7 +277,7 @@ typedef struct LTCFrame LTCFrame;
|
||||
/**
|
||||
* Extended LTC frame - includes audio-sample position offsets, volume, etc
|
||||
*
|
||||
* Note: For TV systems, the sample in the LTC audio data stream where the LTC Frame starts is not neccesarily at the same time
|
||||
* Note: For TV systems, the sample in the LTC audio data stream where the LTC Frame starts is not necessarily at the same time
|
||||
* as the video-frame which is described by the LTC Frame.
|
||||
*
|
||||
* \ref off_start denotes the time of the first transition of bit 0 in the LTC frame.
|
||||
@ -674,7 +674,7 @@ int ltc_encoder_set_bufsize(LTCEncoder *e, double sample_rate, double fps);
|
||||
* typically LTC is sent at 0dBu ; in EBU callibrated systems that
|
||||
* corresponds to -18dBFS. - by default libltc creates -3dBFS
|
||||
*
|
||||
* since libltc generated 8bit audio-data, the minium dBFS
|
||||
* since libltc generated 8bit audio-data, the minimum dBFS
|
||||
* is about -42dB which corresponds to 1 bit.
|
||||
*
|
||||
* 0dB corresponds to a signal range of 127
|
||||
|
Loading…
Reference in New Issue
Block a user