[bTSstream-devel] [Git][videolan/bitstream][master] 2 commits: Add more ATSC A/52 support
Christophe Massiot
gitlab at videolan.org
Tue Sep 11 14:37:10 CEST 2018
Christophe Massiot pushed to branch master at VideoLAN / bitstream
Commits:
85bcb754 by Clément Vasseur at 2018-09-11T09:15:40Z
Add more ATSC A/52 support
- - - - -
b6bf2674 by Christophe Massiot at 2018-09-11T12:36:40Z
Merge branch 'nto-a52'
- - - - -
1 changed file:
- atsc/a52.h
Changes:
=====================================
atsc/a52.h
=====================================
@@ -1,7 +1,7 @@
/*****************************************************************************
* a52.h: ATSC A/52:2012 Digital Audio Compression Standard
*****************************************************************************
- * Copyright (C) 2013-2014 VideoLAN
+ * Copyright (C) 2013-2018 VideoLAN
*
* Authors: Benjamin Cohen <bencoh at notk.org>
*
@@ -302,6 +302,28 @@ static inline void a52e_set_fscod2(uint8_t *p_a52, uint8_t i_fscod)
p_a52[4] |= (i_fscod & 0x3) << 4;
}
+static inline uint8_t a52e_get_acmod(const uint8_t *p_a52)
+{
+ return (p_a52[4] & 0xe) >> 1;
+}
+
+static inline void a52e_set_acmod(uint8_t *p_a52, uint8_t i_acmod)
+{
+ p_a52[4] &= ~0xe;
+ p_a52[4] |= (i_acmod & 0x7) << 1;
+}
+
+static inline uint8_t a52e_get_lfeon(const uint8_t *p_a52)
+{
+ return p_a52[4] & 0x1;
+}
+
+static inline void a52e_set_lfeon(uint8_t *p_a52, uint8_t i_lfeon)
+{
+ p_a52[4] &= ~0x1;
+ p_a52[4] |= i_lfeon & 0x1;
+}
+
static inline bool a52e_sync_compare_formats(const uint8_t *p_a521, const uint8_t *p_a522)
{
return !memcmp(p_a521, p_a522, A52_SYNCINFO_SIZE);
View it on GitLab: https://code.videolan.org/videolan/bitstream/compare/994814594ab0c51adbd5db2b7c5423bb6d940a37...b6bf267428a28073c30f85d974c78dc81d4920b3
--
View it on GitLab: https://code.videolan.org/videolan/bitstream/compare/994814594ab0c51adbd5db2b7c5423bb6d940a37...b6bf267428a28073c30f85d974c78dc81d4920b3
You're receiving this email because of your account on code.videolan.org.
More information about the biTStream-devel
mailing list