Displaying 10 results from an estimated 10 matches for "brword".
Did you mean:
abiword
2015 Dec 31
1
[PATCH] Support 64-bit brword/bwword
...twriter.c, src/test_libFLAC/bitwriter.c
and change '#if 1' to '#if 0'.
The value of FLAC__BYTES_PER_WORD must be the same in src/libFLAC/bitwriter.c
and src/test_libFLAC/bitwriter.c.
OTOH, their value in src/libFLAC/bitwriter.c and src/libFLAC/bitwriter.c
are independent, so sizeof(brword) can be 4 while sizeof(bwword)==8.
Please check the definition of ENDSWAP_64(x): I don't know when it's available
on Linux, and what's the best non-intrinsic version of this function.
Performance tests, correctness tests, comments are welcome.
-------------- next part --------------...
2008 Mar 14
2
bitreader optimizations
...cal_swap32_block_(FLAC__uint32 *start, FLAC__uint32 len)
+{
+ FLAC__uint32 *end;
+
+ for(end = start + len; start < end; start++)
+ asm ("bswap %0" : "=r"(*start) : "0"(*start));
+}
+#endif
#endif
static FLaC__INLINE void crc16_update_word_(FLAC__BitReader *br, brword word)
@@ -263,7 +272,7 @@
#if WORDS_BIGENDIAN
#else
end = (br->words*FLAC__BYTES_PER_WORD + br->bytes + bytes + (FLAC__BYTES_PER_WORD-1)) / FLAC__BYTES_PER_WORD;
-# if defined(_MSC_VER) && (FLAC__BYTES_PER_WORD == 4)
+# if FLAC__CPU_IA32 && (__GNUC__ || defined(_MSC_VER))...
2008 Mar 17
0
bitreader optimizations
...itwriter functions that use them, and before returning */
- register unsigned cwords;
- register unsigned cbits;
+ * bitreader functions that use them, and before returning */
+ unsigned cwords, words, lsbs, msbs, x, y;
+ unsigned ucbits; /* keep track of the number of unconsumed bits in word */
+ brword b;
+ int *val, *end;
FLAC__ASSERT(0 != br);
FLAC__ASSERT(0 != br->buffer);
/* WATCHOUT: code does not work with <32bit words; we can make things much faster with this assertion */
FLAC__ASSERT(FLAC__BITS_PER_WORD >= 32);
FLAC__ASSERT(parameter < 32);
- /* the above two asser...
2017 Jan 19
4
[PATCH] Fix cppcheck warnings
...@@ -306,7 +306,7 @@ void FLAC__bitreader_dump(const FLAC__BitReader *br, FILE *out)
if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits))
fprintf(out, ".");
else
- fprintf(out, "%01u", br->buffer[i] & ((brword)1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0);
+ fprintf(out, "%01d", br->buffer[i] & ((brword)1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0);
fprintf(out, "\n");
}
if(br->bytes > 0) {
@@ -315,7 +315,7 @@ void FLAC__bitreader_dump(const FLAC__BitReader *b...
2008 Jun 14
0
[Flac] Ogg Codecs 0.80.15035
...itreader_init(FLAC__BitReader *br, FLAC__CPUInfo cpu,
FLAC__BitReaderReadCallback rcb, void *cd)
{
FLAC__ASSERT(0 != br);
br->words = br->bytes = 0;
br->consumed_words = br->consumed_bits = 0;
br->capacity = FLAC__BITREADER_DEFAULT_CAPACITY;
br->buffer = (brword*)malloc(sizeof(brword) * (br->capacity + 2));
I remember seeing things like br->words = 2049 and br->capacity = 2048.
This hack fixes the crashes,
the updated setup file is here:
http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15039.exe
Cheers,
Cristian.
-------------- next par...
2008 Jun 14
1
[Flac] Ogg Codecs 0.80.15035
Hi all,
I've made a test release for Ogg DirectShow Codecs.
You can find it here:
http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15035.exe
The problem is that I get a HEAP Corruption detected at:
void FLAC__bitreader_free(FLAC__BitReader *br)
{
FLAC__ASSERT(0 != br);
if(0 != br->buffer)
free(br->buffer);
The call stack is:
>
2008 Jun 14
1
Ogg Codecs 0.80.15035
Hi all,
I've made a test release for Ogg DirectShow Codecs.
You can find it here:
http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15035.exe
The problem is that I get a HEAP Corruption detected at:
void FLAC__bitreader_free(FLAC__BitReader *br)
{
FLAC__ASSERT(0 != br);
if(0 != br->buffer)
free(br->buffer);
The call stack is:
>
2016 Dec 05
4
Some additions for the 1.3.2 changelog?
...8d6dbfa04d75a17b
Win32: Only use large buffers when writing to disk
https://git.xiph.org/?p=flac.git;a=commit;h=f0ee453c23eacd1a10762b2301384ddc19821052
libFLAC: Fix potential memory leaks
https://git.xiph.org/?p=flac.git;a=commit;h=15a9062609c123b56df104a575dba657c2577e0b
libFLAC: Support 64bit brword/bwword allowing FLAC__BYTES_PER_WORD to be set to 8. This is disabled by
default.
Thanks,
Maurits
2015 Dec 16
2
about word size in bitreader/bitwriter
...org/?p=flac.git;a=commitdiff;h=66bd44bacc28cb154b5c9349cf3288da9ec74501>
<http://git.xiph.org/?p=flac.git;a=commitdiff;h=387b72731dbf79450050987b9b36bf70f286b098>
<http://git.xiph.org/?p=flac.git;a=commitdiff;h=d30fe60fc616d626df2336e91bc698677a732447>
that replaced bitness-agnostic brword/bwword and COUNT_ZERO_MSBS() with uint32_t and
FLAC__clz_uint32() (which are apparently 32-bit only).
Does it make sense to restore the ability to use FLAC__BYTES_PER_WORD == 8?
(Honestly, I'm not sure that it ever worked previously... and I'm not sure that
this change can improve libFLA...
2016 Jan 08
8
Lets do a 1.3.2 release
HI all,
I think its time for a new release. The current code base is stable
and I've been building it for x86_64/linux, powerpc/linux, armhf/linux,
x86_64/darwin in a Jenkins build bot. I'm pretty sure others have been
building regularly on their platforms of interest.
I made a first pass on an update to the changelog.html. I' also putting
toether a release checklist that I will add