libopusenc.git
2 years agoAdd travis-ci.org build config.
Ralph Giles [Fri, 19 May 2017 22:10:22 +0000 (15:10 -0700)]
Add travis-ci.org build config.

This lets us get test feedback on github.

Signed-of-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2 years agopackage name is libopusenc
Jean-Marc Valin [Sat, 20 May 2017 02:01:18 +0000 (22:01 -0400)]
package name is libopusenc

2 years agoremoving mentions of libogg
Jean-Marc Valin [Fri, 19 May 2017 21:18:27 +0000 (17:18 -0400)]
removing mentions of libogg

2 years agomisc fixes
Jean-Marc Valin [Fri, 19 May 2017 21:04:10 +0000 (17:04 -0400)]
misc fixes

2 years agoFixes mixed declaration and code
Jean-Marc Valin [Fri, 19 May 2017 20:18:01 +0000 (16:18 -0400)]
Fixes mixed declaration and code

2 years agoRemove http from configure.ac
Jean-Marc Valin [Fri, 19 May 2017 20:08:54 +0000 (16:08 -0400)]
Remove http from configure.ac

2 years agoAdd missing copyright header
Jean-Marc Valin [Fri, 19 May 2017 19:47:52 +0000 (15:47 -0400)]
Add missing copyright header

2 years agoAvoiding sign comparison warnings on the resampler
Jean-Marc Valin [Fri, 19 May 2017 17:28:13 +0000 (13:28 -0400)]
Avoiding sign comparison warnings on the resampler

2 years agoAvoiding using the packet after invalidated by oggp_commit_packet()
Jean-Marc Valin [Fri, 19 May 2017 16:59:05 +0000 (12:59 -0400)]
Avoiding using the packet after invalidated by oggp_commit_packet()

2 years agoUsing oggp_get_packet_buffer() instead of a fixed size on the stack
Jean-Marc Valin [Fri, 19 May 2017 05:55:23 +0000 (01:55 -0400)]
Using oggp_get_packet_buffer() instead of a fixed size on the stack

2 years agoCall packet callback before committing the packet
Jean-Marc Valin [Fri, 19 May 2017 05:27:47 +0000 (01:27 -0400)]
Call packet callback before committing the packet

2 years agoImplement OPE_GET_* ctl() calls
Jean-Marc Valin [Fri, 19 May 2017 04:30:19 +0000 (00:30 -0400)]
Implement OPE_GET_* ctl() calls

2 years agoAdds OPUS_GET* calls
Jean-Marc Valin [Fri, 19 May 2017 04:22:40 +0000 (00:22 -0400)]
Adds OPUS_GET* calls

2 years agomisc fixes
Jean-Marc Valin [Fri, 19 May 2017 04:19:20 +0000 (00:19 -0400)]
misc fixes

2 years agoImplement ope_strerror()
Jean-Marc Valin [Fri, 19 May 2017 03:43:10 +0000 (23:43 -0400)]
Implement ope_strerror()

2 years agoReturn int error codes for pictures
Jean-Marc Valin [Fri, 19 May 2017 03:20:37 +0000 (23:20 -0400)]
Return int error codes for pictures

2 years agoChanging picture API
Jean-Marc Valin [Thu, 18 May 2017 21:47:05 +0000 (17:47 -0400)]
Changing picture API

2 years agoDon't need libogg anymore, but we need libopus 1.1 for the frame size API
Jean-Marc Valin [Thu, 18 May 2017 18:46:34 +0000 (14:46 -0400)]
Don't need libogg anymore, but we need libopus 1.1 for the frame size API

2 years agoreenable SSE and full sinc table
Jean-Marc Valin [Thu, 18 May 2017 18:39:58 +0000 (14:39 -0400)]
reenable SSE and full sinc table

2 years agoSync resampler with libspeexdsp
Jean-Marc Valin [Fri, 12 May 2017 23:13:08 +0000 (19:13 -0400)]
Sync resampler with libspeexdsp

2 years agoAdd support for header gain
Jean-Marc Valin [Tue, 16 May 2017 22:36:27 +0000 (18:36 -0400)]
Add support for header gain

2 years agoRemove const on OggOpusComments
Jean-Marc Valin [Sun, 14 May 2017 18:50:43 +0000 (14:50 -0400)]
Remove const on OggOpusComments

Will make it possible to do reference counting and copy-on-write

2 years agoRemove useless #includes
Jean-Marc Valin [Sun, 14 May 2017 18:13:56 +0000 (14:13 -0400)]
Remove useless #includes

2 years agoDocumenting API parameters
Jean-Marc Valin [Sun, 14 May 2017 18:13:44 +0000 (14:13 -0400)]
Documenting API parameters

2 years agoAdd some Doxygen doc
Jean-Marc Valin [Sun, 14 May 2017 02:09:45 +0000 (22:09 -0400)]
Add some Doxygen doc

2 years agoFIXME no longer applies (was only for libogg code)
Jean-Marc Valin [Fri, 12 May 2017 22:34:39 +0000 (18:34 -0400)]
FIXME no longer applies (was only for libogg code)

2 years agoProperly support > 8 channels
Jean-Marc Valin [Fri, 12 May 2017 22:24:17 +0000 (18:24 -0400)]
Properly support > 8 channels

2 years agocleanup
Jean-Marc Valin [Fri, 12 May 2017 22:20:44 +0000 (18:20 -0400)]
cleanup

2 years agoFix granulepos bug on empty streams
Jean-Marc Valin [Fri, 12 May 2017 22:17:28 +0000 (18:17 -0400)]
Fix granulepos bug on empty streams

2 years agoRemove use of ogg_packet
Jean-Marc Valin [Fri, 12 May 2017 19:15:30 +0000 (15:15 -0400)]
Remove use of ogg_packet

2 years agoRemove use of Ogg integer types
Jean-Marc Valin [Fri, 12 May 2017 19:08:05 +0000 (15:08 -0400)]
Remove use of Ogg integer types

2 years agoRemove libogg-based implementation
Jean-Marc Valin [Fri, 12 May 2017 19:02:14 +0000 (15:02 -0400)]
Remove libogg-based implementation

2 years agoVersioning
Jean-Marc Valin [Fri, 12 May 2017 06:32:31 +0000 (02:32 -0400)]
Versioning

2 years agoFix Makefile.am
Jean-Marc Valin [Thu, 11 May 2017 22:01:20 +0000 (18:01 -0400)]
Fix Makefile.am

2 years agomake sampling rate, page sizes, and packet sizes 32-bit values
Jean-Marc Valin [Thu, 11 May 2017 21:45:11 +0000 (17:45 -0400)]
make sampling rate, page sizes, and packet sizes 32-bit values

2 years agoA few more type changes
Jean-Marc Valin [Thu, 11 May 2017 21:39:28 +0000 (17:39 -0400)]
A few more type changes

2 years agoUsing size_t for things that could be beyond 4GB
Jean-Marc Valin [Thu, 11 May 2017 21:33:33 +0000 (17:33 -0400)]
Using size_t for things that could be beyond 4GB

2 years agoUsing oggp_int32 instead of some usage of int and long
Jean-Marc Valin [Thu, 11 May 2017 21:25:15 +0000 (17:25 -0400)]
Using oggp_int32 instead of some usage of int and long

2 years agoAdd explicit user data for packet callback, add OPUS_GET_LOOKAHEAD, fix error code
Jean-Marc Valin [Thu, 11 May 2017 21:18:30 +0000 (17:18 -0400)]
Add explicit user data for packet callback, add OPUS_GET_LOOKAHEAD, fix error code

2 years agoCalling packet callback on headers too
Jean-Marc Valin [Thu, 11 May 2017 04:43:28 +0000 (00:43 -0400)]
Calling packet callback on headers too

2 years agooops, forgot a break in switch() statement
Jean-Marc Valin [Thu, 11 May 2017 02:33:14 +0000 (22:33 -0400)]
oops, forgot a break in switch() statement

2 years agoMaking it possible to add a full comment string
Jean-Marc Valin [Wed, 10 May 2017 22:24:07 +0000 (18:24 -0400)]
Making it possible to add a full comment string

2 years agoPrefix OggOpusEnc functions with ope_encoder_
Jean-Marc Valin [Wed, 10 May 2017 20:52:30 +0000 (16:52 -0400)]
Prefix OggOpusEnc functions with ope_encoder_

2 years agoAdded comments object
Jean-Marc Valin [Wed, 10 May 2017 20:48:31 +0000 (16:48 -0400)]
Added comments object

2 years agoFixing window generation
Jean-Marc Valin [Sun, 7 May 2017 16:11:41 +0000 (12:11 -0400)]
Fixing window generation

Initialization was slightly off

2 years agoComputing the exact (I think) padding size
Jean-Marc Valin [Sun, 7 May 2017 15:57:19 +0000 (11:57 -0400)]
Computing the exact (I think) padding size

2 years agoMerge branch 'exp_lpc1'
Jean-Marc Valin [Sat, 6 May 2017 17:25:05 +0000 (13:25 -0400)]
Merge branch 'exp_lpc1'

2 years agoMisc fixes to LPC exp_lpc1
Jean-Marc Valin [Sat, 6 May 2017 17:24:42 +0000 (13:24 -0400)]
Misc fixes to LPC

2 years agoAdds windowing to the LPC output
Jean-Marc Valin [Sat, 6 May 2017 16:10:30 +0000 (12:10 -0400)]
Adds windowing to the LPC output

2 years agoFix indexing
Jean-Marc Valin [Sat, 6 May 2017 05:49:19 +0000 (01:49 -0400)]
Fix indexing

2 years agooops
Jean-Marc Valin [Sat, 6 May 2017 05:26:46 +0000 (01:26 -0400)]
oops

2 years agoAdding some LPC extension code
Jean-Marc Valin [Sat, 6 May 2017 05:25:38 +0000 (01:25 -0400)]
Adding some LPC extension code

2 years agoPreventing further damage when in unrecoverable error state
Jean-Marc Valin [Sat, 6 May 2017 01:36:49 +0000 (21:36 -0400)]
Preventing further damage when in unrecoverable error state

2 years agowip for handling unrecoverable errors
Jean-Marc Valin [Sat, 6 May 2017 01:25:38 +0000 (21:25 -0400)]
wip for handling unrecoverable errors

2 years agoProperly cleanup on failure to open a file
Jean-Marc Valin [Sat, 6 May 2017 01:12:33 +0000 (21:12 -0400)]
Properly cleanup on failure to open a file

2 years agoProperly cleanup even when ope_drain() isn't called
Jean-Marc Valin [Sat, 6 May 2017 01:04:55 +0000 (21:04 -0400)]
Properly cleanup even when ope_drain() isn't called

2 years agoFix copyright (using libogg's CRC code)
Jean-Marc Valin [Sat, 6 May 2017 00:48:39 +0000 (20:48 -0400)]
Fix copyright (using libogg's CRC code)

2 years agoImplement pull API
Jean-Marc Valin [Fri, 5 May 2017 21:35:14 +0000 (17:35 -0400)]
Implement pull API

2 years agosplit the calls for draining and destroying the object
Jean-Marc Valin [Fri, 5 May 2017 21:11:45 +0000 (17:11 -0400)]
split the calls for draining and destroying the object

2 years agoremove page callback
Jean-Marc Valin [Fri, 5 May 2017 21:03:20 +0000 (17:03 -0400)]
remove page callback

2 years agoFix leak
Jean-Marc Valin [Fri, 5 May 2017 21:00:37 +0000 (17:00 -0400)]
Fix leak

2 years agoMerge branch 'exp_oggpacker2'
Jean-Marc Valin [Fri, 5 May 2017 20:54:40 +0000 (16:54 -0400)]
Merge branch 'exp_oggpacker2'

2 years agoenable new packer
Jean-Marc Valin [Fri, 5 May 2017 20:53:57 +0000 (16:53 -0400)]
enable new packer

2 years agocleaning up exp_oggpacker2
Jean-Marc Valin [Fri, 5 May 2017 20:52:06 +0000 (16:52 -0400)]
cleaning up

2 years agomore splitting
Jean-Marc Valin [Fri, 5 May 2017 20:43:13 +0000 (16:43 -0400)]
more splitting

2 years agoswitch for the packer
Jean-Marc Valin [Fri, 5 May 2017 20:38:20 +0000 (16:38 -0400)]
switch for the packer

2 years agosetting the muxing delay
Jean-Marc Valin [Fri, 5 May 2017 20:30:39 +0000 (16:30 -0400)]
setting the muxing delay

2 years agochaining seems to be working
Jean-Marc Valin [Fri, 5 May 2017 19:43:17 +0000 (15:43 -0400)]
chaining seems to be working

2 years agoFix bos and eos (I think)
Jean-Marc Valin [Fri, 5 May 2017 19:15:23 +0000 (15:15 -0400)]
Fix bos and eos (I think)

2 years agoCan now reallocate page
Jean-Marc Valin [Fri, 5 May 2017 17:41:05 +0000 (13:41 -0400)]
Can now reallocate page

2 years agoshifting the buffer to avoid growing it all the time
Jean-Marc Valin [Fri, 5 May 2017 17:24:51 +0000 (13:24 -0400)]
shifting the buffer to avoid growing it all the time

2 years agosplit pages seem to work
Jean-Marc Valin [Fri, 5 May 2017 08:07:31 +0000 (04:07 -0400)]
split pages seem to work

2 years agoAdding some page-splitting code (not quite correct)
Jean-Marc Valin [Fri, 5 May 2017 07:48:30 +0000 (03:48 -0400)]
Adding some page-splitting code (not quite correct)

2 years agorefactor
Jean-Marc Valin [Fri, 5 May 2017 06:32:56 +0000 (02:32 -0400)]
refactor

2 years agoboth ogg libraries side-by-side
Jean-Marc Valin [Fri, 5 May 2017 06:08:28 +0000 (02:08 -0400)]
both ogg libraries side-by-side

2 years agoAdd EOS support exp_oggpacker1
Jean-Marc Valin [Fri, 5 May 2017 05:14:02 +0000 (01:14 -0400)]
Add EOS support

2 years agomore fixes
Jean-Marc Valin [Fri, 5 May 2017 05:04:03 +0000 (01:04 -0400)]
more fixes

2 years agoFixes some bugs
Jean-Marc Valin [Fri, 5 May 2017 04:28:12 +0000 (00:28 -0400)]
Fixes some bugs

2 years agolacing resize
Jean-Marc Valin [Fri, 5 May 2017 02:56:45 +0000 (22:56 -0400)]
lacing resize

2 years agoresize packet buffer
Jean-Marc Valin [Fri, 5 May 2017 02:48:16 +0000 (22:48 -0400)]
resize packet buffer

2 years agotracking the user buffer pointer
Jean-Marc Valin [Fri, 5 May 2017 02:07:18 +0000 (22:07 -0400)]
tracking the user buffer pointer

2 years agowip
Jean-Marc Valin [Fri, 5 May 2017 01:09:22 +0000 (21:09 -0400)]
wip

2 years agomore packer code
Jean-Marc Valin [Thu, 4 May 2017 22:50:33 +0000 (18:50 -0400)]
more packer code

2 years agoNew ogg packer instead of libogg
Jean-Marc Valin [Thu, 4 May 2017 22:06:19 +0000 (18:06 -0400)]
New ogg packer instead of libogg

2 years agoAdd packet and page callbacks
Jean-Marc Valin [Thu, 4 May 2017 05:59:16 +0000 (01:59 -0400)]
Add packet and page callbacks

2 years agoAdd support for OPUS_MULTISTREAM_GET_ENCODER_STATE
Jean-Marc Valin [Thu, 4 May 2017 05:41:56 +0000 (01:41 -0400)]
Add support for OPUS_MULTISTREAM_GET_ENCODER_STATE

2 years agomerge libopus and libopusenc ctl() calls
Jean-Marc Valin [Thu, 4 May 2017 02:34:58 +0000 (22:34 -0400)]
merge libopus and libopusenc ctl() calls

2 years agoerror handling changes
Jean-Marc Valin [Thu, 4 May 2017 02:18:05 +0000 (22:18 -0400)]
error handling changes

2 years agooops
Jean-Marc Valin [Thu, 4 May 2017 02:08:15 +0000 (22:08 -0400)]
oops

2 years agoImplements changing the vendor string
Jean-Marc Valin [Thu, 4 May 2017 02:05:52 +0000 (22:05 -0400)]
Implements changing the vendor string

2 years agoImplement ope_continue_new_file()
Jean-Marc Valin [Wed, 3 May 2017 22:41:09 +0000 (18:41 -0400)]
Implement ope_continue_new_file()

2 years agoShould remove remaining chaining glitches by increasing the overlap
Jean-Marc Valin [Wed, 3 May 2017 19:15:32 +0000 (15:15 -0400)]
Should remove remaining chaining glitches by increasing the overlap

A side effect of this is that it breaks gstreamer

2 years agoFixes Ogg delay for chaining
Jean-Marc Valin [Wed, 3 May 2017 03:47:17 +0000 (23:47 -0400)]
Fixes Ogg delay for chaining

2 years agorestart granule at zero on chaining
Jean-Marc Valin [Tue, 2 May 2017 23:49:53 +0000 (19:49 -0400)]
restart granule at zero on chaining

Seems to fix the preskip issue, but not sure why

2 years agoDisabling prediction on chaining joint
Jean-Marc Valin [Tue, 2 May 2017 22:27:18 +0000 (18:27 -0400)]
Disabling prediction on chaining joint

2 years agotrying to compute preskip (doesn't work)
Jean-Marc Valin [Tue, 2 May 2017 21:51:59 +0000 (17:51 -0400)]
trying to compute preskip (doesn't work)

2 years agoCalling srand() was probably not a good idea add_chaining1
Jean-Marc Valin [Tue, 2 May 2017 19:48:47 +0000 (15:48 -0400)]
Calling srand() was probably not a good idea

Not a good thing to do from a library and if chains are short, we get the
same random number twice, which is even worse.

2 years agoAdded actual chaning code (untested)
Jean-Marc Valin [Tue, 2 May 2017 19:39:15 +0000 (15:39 -0400)]
Added actual chaning code (untested)

2 years agoFix error codes
Jean-Marc Valin [Tue, 2 May 2017 19:11:15 +0000 (15:11 -0400)]
Fix error codes

2 years agoApplying comments to the last created stream
Jean-Marc Valin [Tue, 2 May 2017 19:08:54 +0000 (15:08 -0400)]
Applying comments to the last created stream