ffmpeg.git
5 years agobfin: Refactor duplicated assembly-related macros
Diego Biurrun [Wed, 22 Jan 2014 13:21:02 +0000 (05:21 -0800)]
bfin: Refactor duplicated assembly-related macros

5 years agobfin: Refactor duplicated l1_text/l1_data_B macros
Diego Biurrun [Wed, 22 Jan 2014 10:54:14 +0000 (02:54 -0800)]
bfin: Refactor duplicated l1_text/l1_data_B macros

5 years agobfin: dsputil: K&R formatting cosmetics
Diego Biurrun [Mon, 6 Jan 2014 09:35:37 +0000 (10:35 +0100)]
bfin: dsputil: K&R formatting cosmetics

Also add a few #endif comments.

5 years agobfin: dsputil: Drop broken and trivial profiling code
Diego Biurrun [Sun, 19 Jan 2014 21:01:19 +0000 (13:01 -0800)]
bfin: dsputil: Drop broken and trivial profiling code

5 years agobfin: hpeldsp: Drop broken put_pixels_*_xy2_nornd bits
Diego Biurrun [Mon, 6 Jan 2014 09:39:57 +0000 (10:39 +0100)]
bfin: hpeldsp: Drop broken put_pixels_*_xy2_nornd bits

They were marked as broken and disabled in 2009 and will never get fixed.

5 years agobfin: dsputil: Drop broken vsad bits
Diego Biurrun [Mon, 6 Jan 2014 09:30:13 +0000 (10:30 +0100)]
bfin: dsputil: Drop broken vsad bits

They were marked as broken and disabled in 2009 and will never get fixed.

5 years agobfin: dsputil: Remove unused global variable
Diego Biurrun [Fri, 20 Dec 2013 14:30:53 +0000 (15:30 +0100)]
bfin: dsputil: Remove unused global variable

5 years agox86: dsputil_init: Drop some unnecessary parentheses
Diego Biurrun [Fri, 10 Jan 2014 10:29:25 +0000 (11:29 +0100)]
x86: dsputil_init: Drop some unnecessary parentheses

5 years agox86: dsputil_init: K&R formatting cosmetics
Diego Biurrun [Wed, 8 Jan 2014 13:06:18 +0000 (14:06 +0100)]
x86: dsputil_init: K&R formatting cosmetics

5 years agox86: dsputil_x86.h: K&R formatting cosmetics
Diego Biurrun [Fri, 31 Jan 2014 07:15:56 +0000 (23:15 -0800)]
x86: dsputil_x86.h: K&R formatting cosmetics

5 years agox86: motion_est: K&R formatting cosmetics
Diego Biurrun [Fri, 17 Jan 2014 14:45:07 +0000 (15:45 +0100)]
x86: motion_est: K&R formatting cosmetics

5 years agodsputilenc_mmx: K&R formatting cosmetics
Diego Biurrun [Wed, 25 Dec 2013 15:48:32 +0000 (16:48 +0100)]
dsputilenc_mmx: K&R formatting cosmetics

5 years agodsputil_mmx: K&R formatting cosmetics
Diego Biurrun [Wed, 25 Dec 2013 14:49:31 +0000 (15:49 +0100)]
dsputil_mmx: K&R formatting cosmetics

5 years agodsputilenc_mmx: Merge two assignment blocks with identical conditions
Diego Biurrun [Wed, 25 Dec 2013 15:49:23 +0000 (16:49 +0100)]
dsputilenc_mmx: Merge two assignment blocks with identical conditions

5 years agodsputil_template: K&R formatting cosmetics
Diego Biurrun [Sat, 21 Dec 2013 11:24:12 +0000 (12:24 +0100)]
dsputil_template: K&R formatting cosmetics

5 years agornd_avg.h: K&R formatting cosmetics
Diego Biurrun [Sat, 21 Dec 2013 16:10:22 +0000 (17:10 +0100)]
rnd_avg.h: K&R formatting cosmetics

5 years agodsputil: cosmetics: Lose camelCase on ff_cropTbl and ff_squareTbl names
Diego Biurrun [Sun, 22 Dec 2013 13:32:11 +0000 (14:32 +0100)]
dsputil: cosmetics: Lose camelCase on ff_cropTbl and ff_squareTbl names

Also switch from "tbl" to "tab" name suffixes.

5 years agodsputil: Merge variable declarations and initializations
Diego Biurrun [Fri, 20 Dec 2013 12:58:18 +0000 (13:58 +0100)]
dsputil: Merge variable declarations and initializations

5 years agodsputil: K&R formatting cosmetics
Diego Biurrun [Thu, 19 Dec 2013 17:28:50 +0000 (18:28 +0100)]
dsputil: K&R formatting cosmetics

5 years agodsputil.h: K&R formatting cosmetics
Diego Biurrun [Sun, 22 Dec 2013 16:50:07 +0000 (17:50 +0100)]
dsputil.h: K&R formatting cosmetics

5 years agodsputil.h: Clean up comments
Diego Biurrun [Sun, 22 Dec 2013 16:49:52 +0000 (17:49 +0100)]
dsputil.h: Clean up comments

5 years agodsputil: Remove disabled avg_no_rnd_qpel leftovers
Diego Biurrun [Tue, 7 Jan 2014 22:51:08 +0000 (23:51 +0100)]
dsputil: Remove disabled avg_no_rnd_qpel leftovers

5 years agox86: Make function prototype comments in assembly code consistent
Diego Biurrun [Tue, 28 Jan 2014 19:35:58 +0000 (20:35 +0100)]
x86: Make function prototype comments in assembly code consistent

This helps grepping for functions, among other things.

5 years agox86: h264_idct_10_bit: Use proper type in function prototype comments
Diego Biurrun [Wed, 18 Dec 2013 20:12:02 +0000 (21:12 +0100)]
x86: h264_idct_10_bit: Use proper type in function prototype comments

5 years agoUpdate dsputil- and SIMD-related comments to match reality more closely
Diego Biurrun [Wed, 29 Jan 2014 12:12:59 +0000 (13:12 +0100)]
Update dsputil- and SIMD-related comments to match reality more closely

5 years agoarm: dsputil: Add a bunch of missing #includes
Diego Biurrun [Wed, 12 Feb 2014 20:28:44 +0000 (21:28 +0100)]
arm: dsputil: Add a bunch of missing #includes

5 years agox86: Add some more missing headers
Diego Biurrun [Wed, 29 Jan 2014 12:07:57 +0000 (13:07 +0100)]
x86: Add some more missing headers

5 years agoppc: Add some missing headers
Diego Biurrun [Fri, 17 Jan 2014 16:38:05 +0000 (08:38 -0800)]
ppc: Add some missing headers

5 years agodsputil: Move intreadwrite.h #include from header file to .c files
Diego Biurrun [Mon, 10 Feb 2014 17:58:28 +0000 (18:58 +0100)]
dsputil: Move intreadwrite.h #include from header file to .c files

5 years agodsputil: Drop ff_check_alignment() function
Diego Biurrun [Mon, 27 Jan 2014 17:37:40 +0000 (18:37 +0100)]
dsputil: Drop ff_check_alignment() function

The function is supposed to confirm that the compiler provided enough
alignment, but in practice it is only run in certain code paths and
insufficient alignment problems are restricted to legacy compilers.

5 years agodsputil: Remove prototypes for nonexisting optimization functions
Diego Biurrun [Tue, 7 Jan 2014 11:59:44 +0000 (12:59 +0100)]
dsputil: Remove prototypes for nonexisting optimization functions

5 years agox86: mpegvideoenc: Remove some remnants of the long-gone libmpeg2 IDCT
Diego Biurrun [Thu, 23 Jan 2014 16:23:02 +0000 (17:23 +0100)]
x86: mpegvideoenc: Remove some remnants of the long-gone libmpeg2 IDCT

5 years agoRemove all SPARC architecture optimizations
Diego Biurrun [Tue, 7 Jan 2014 10:00:46 +0000 (11:00 +0100)]
Remove all SPARC architecture optimizations

SPARC is no longer being used in any multimedia-related fields and the
VIS optimizations only represent a maintenance burden.

5 years agoRemove all SH4 architecture optimizations
Diego Biurrun [Tue, 7 Jan 2014 09:29:11 +0000 (10:29 +0100)]
Remove all SH4 architecture optimizations

SH4 has been end-of-lifed and no more test machines are available.

5 years agobuild: Record dependency of eatqi decoder on dsputil
Diego Biurrun [Wed, 29 Jan 2014 16:25:38 +0000 (17:25 +0100)]
build: Record dependency of eatqi decoder on dsputil

5 years agoconfigure: Add explicit dsputil dependency to mpegvideoenc
Diego Biurrun [Fri, 7 Feb 2014 12:15:47 +0000 (13:15 +0100)]
configure: Add explicit dsputil dependency to mpegvideoenc

Previously, it was an implicit dependency through mpegvideo. Change
this, as implicit dependencies can cause all sorts of trouble.

5 years agoffv1: Drop bogus dependency on dsputil
Diego Biurrun [Mon, 24 Feb 2014 14:01:16 +0000 (06:01 -0800)]
ffv1: Drop bogus dependency on dsputil

ffv1 does not use any part of the dsputil framework.

5 years agobuild: Drop stray LPC dependency on dsputil
Diego Biurrun [Mon, 27 Jan 2014 22:36:36 +0000 (23:36 +0100)]
build: Drop stray LPC dependency on dsputil

5 years agobuild: Drop stray MJPEG encoder dependency on dsputil
Diego Biurrun [Wed, 29 Jan 2014 14:19:20 +0000 (15:19 +0100)]
build: Drop stray MJPEG encoder dependency on dsputil

5 years agobuild: Drop stray MLP decoder dependency on dsputil
Diego Biurrun [Wed, 29 Jan 2014 14:17:05 +0000 (15:17 +0100)]
build: Drop stray MLP decoder dependency on dsputil

5 years agobuild: Drop stray PNG decoder dependency on dsputil
Diego Biurrun [Wed, 29 Jan 2014 14:10:41 +0000 (15:10 +0100)]
build: Drop stray PNG decoder dependency on dsputil

5 years agobuild: Drop stray mpc8 decoder dependency on dsputil
Diego Biurrun [Thu, 16 Jan 2014 23:53:40 +0000 (00:53 +0100)]
build: Drop stray mpc8 decoder dependency on dsputil

5 years agoPrepare for 11_alpha1 Release
Reinhard Tartler [Thu, 13 Mar 2014 12:22:26 +0000 (08:22 -0400)]
Prepare for 11_alpha1 Release

5 years agoavconv: Match stream id
Luca Barbato [Wed, 12 Mar 2014 17:01:48 +0000 (18:01 +0100)]
avconv: Match stream id

Quite useful to select by pid in MPEG-TS.

5 years agohttp: Properly initialize icy headers string
Alessandro Ghedini [Wed, 12 Mar 2014 15:28:22 +0000 (16:28 +0100)]
http: Properly initialize icy headers string

The icy_metadata_headers string never gets initialized, so,
during the first call to av_strlcatf() in parse_icy(),
strlen() will be called on a pointer to uninitialized memory.
At best this causes some garbage data to be left at the
start of the string.

By initializing icy_metadata_headers to the empty string, the
first call to strlen() will always return 0, so that data is
appended from the start of the string.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agodoc: Point to the correct, actually maintained gas-preprocessor repo
Martin Storsjö [Wed, 12 Mar 2014 11:46:04 +0000 (13:46 +0200)]
doc: Point to the correct, actually maintained gas-preprocessor repo

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoarmv6: vp8: use explicit labels in motion compensation asm
Janne Grunau [Mon, 10 Mar 2014 22:58:35 +0000 (23:58 +0100)]
armv6: vp8: use explicit labels in motion compensation asm

The integrated arm assembler in clang-503.0.38 (Xcode-5.1) fails
to assemble a branch to 'label + offset' in thumb mode.

5 years agoconfigure: Support older version of openjpeg1
Luca Barbato [Wed, 12 Mar 2014 09:30:07 +0000 (09:30 +0000)]
configure: Support older version of openjpeg1

It should work best for debian stable and people not installing the .pc
file.

5 years agocopy_block: K&R formatting cosmetics
Vittorio Giovara [Mon, 10 Mar 2014 20:44:26 +0000 (21:44 +0100)]
copy_block: K&R formatting cosmetics

5 years agoconfigure: Group toolchain options together in help output
Diego Biurrun [Tue, 11 Mar 2014 17:52:44 +0000 (18:52 +0100)]
configure: Group toolchain options together in help output

5 years agohttp: Declare more parameters as const where possible
Martin Storsjö [Wed, 12 Mar 2014 07:40:05 +0000 (09:40 +0200)]
http: Declare more parameters as const where possible

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agohttp: Allow setting a Content-Type for POST requests
Clément Bœsch [Thu, 6 Mar 2014 17:40:03 +0000 (18:40 +0100)]
http: Allow setting a Content-Type for POST requests

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Improve options descriptions
Alessandro Ghedini [Thu, 6 Mar 2014 17:40:02 +0000 (18:40 +0100)]
http: Improve options descriptions

Add documentation where missing.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Always allow no-op seek
Anssi Hannula [Thu, 6 Mar 2014 17:40:01 +0000 (18:40 +0100)]
http: Always allow no-op seek

This also allows checking stream position as per ffurl_seek() doxy.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Add support for selecting a request range
Anssi Hannula [Thu, 6 Mar 2014 17:40:00 +0000 (18:40 +0100)]
http: Add support for selecting a request range

Comment from Reimar Döffinger included as pro memoria.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Support setting custom User-Agent
Clément Bœsch [Thu, 6 Mar 2014 17:39:59 +0000 (18:39 +0100)]
http: Support setting custom User-Agent

Contextually make the default User-Agent use the common
"Name/Version" pattern.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Export Content-Type information
Michael Niedermayer [Thu, 6 Mar 2014 17:39:58 +0000 (18:39 +0100)]
http: Export Content-Type information

Bug-Id: https://bugs.debian.org/740421

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Add support reading ICY metadata
Luca Barbato [Mon, 10 Mar 2014 20:11:35 +0000 (21:11 +0100)]
http: Add support reading ICY metadata

Export the metadata as a icy_metadata_packet avoption.
Based on the work of wm4 and Alessandro Ghedini.

Bug-Id: https://bugs.debian.org/739936

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agohttp: Refactor process_line
Luca Barbato [Mon, 10 Mar 2014 19:16:50 +0000 (20:16 +0100)]
http: Refactor process_line

5 years agohttp: K&R formatting cosmetics
Luca Barbato [Mon, 10 Mar 2014 17:02:09 +0000 (18:02 +0100)]
http: K&R formatting cosmetics

5 years agohttp: Drop doxy comments
Luca Barbato [Mon, 10 Mar 2014 16:53:51 +0000 (17:53 +0100)]
http: Drop doxy comments

5 years agohttp: Return meaningful error codes
Luca Barbato [Mon, 10 Mar 2014 16:17:25 +0000 (17:17 +0100)]
http: Return meaningful error codes

5 years agoconfigure: Provide --pkg-config-flags
Luca Barbato [Mon, 20 Jan 2014 10:17:45 +0000 (11:17 +0100)]
configure: Provide --pkg-config-flags

Should be used only to pass extra flags to pkgconf invocation,
e.g. --static.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavformat: Report the duration analysis reached
Luca Barbato [Tue, 11 Mar 2014 12:41:18 +0000 (13:41 +0100)]
avformat: Report the duration analysis reached

5 years agodoc: Add section about AviSynth support
Stephen Hutchinson [Tue, 14 Jan 2014 14:49:29 +0000 (09:49 -0500)]
doc: Add section about AviSynth support

Signed-off-by: Diego Biurrun <diego@biurrun.de>
5 years agoconfigure: Document --pkg-config option
Luca Barbato [Tue, 11 Mar 2014 18:12:05 +0000 (19:12 +0100)]
configure: Document --pkg-config option

5 years agolavf: more correct printf format specifiers
Diego Biurrun [Mon, 10 Mar 2014 14:35:59 +0000 (15:35 +0100)]
lavf: more correct printf format specifiers

5 years agoconfigure: miscellaneous cosmetics
Diego Biurrun [Sat, 2 Nov 2013 16:21:49 +0000 (17:21 +0100)]
configure: miscellaneous cosmetics

Sort lists of components. Add some whitespace where it helps readability.
Consistently use double instead of single quotes around component lists.

5 years agolavf: always use av_free
Michael Niedermayer [Mon, 10 Mar 2014 15:03:14 +0000 (15:03 +0000)]
lavf: always use av_free

Signed-off-by: Tim Walker <tdskywalker@gmail.com>
5 years agolavf: simplify ff_hevc_annexb2mp4_buf
Tim Walker [Mon, 10 Mar 2014 15:03:13 +0000 (15:03 +0000)]
lavf: simplify ff_hevc_annexb2mp4_buf

Use ff_hevc_annexb2mp4 instead of duplicating
its functionality, and update the documentation
to match the new behavior.

5 years agoconfigure: Use the right pkgconf file for openjpeg
Luca Barbato [Mon, 10 Mar 2014 10:48:04 +0000 (11:48 +0100)]
configure: Use the right pkgconf file for openjpeg

The current release of version 1 uses libopenjpeg1.

5 years agohevc: Use get_se_golomb_long
Luca Barbato [Mon, 10 Mar 2014 09:59:48 +0000 (10:59 +0100)]
hevc: Use get_se_golomb_long

Do not use inline functions that refer to tables present in other
libraries.

5 years agogolomb: Add a get_se_golomb_long
Luca Barbato [Mon, 10 Mar 2014 09:57:51 +0000 (10:57 +0100)]
golomb: Add a get_se_golomb_long

Useful in libavformat mostly.

5 years agoWork around broken floating point limits on some systems.
Anton Khirnov [Thu, 14 Nov 2013 11:19:04 +0000 (12:19 +0100)]
Work around broken floating point limits on some systems.

The values of {FLT,DBL}_{MAX,MIN} macros on some systems (older musl
libc, some BSD flavours) are not exactly representable, i.e.
(double)DBL_MAX == DBL_MAX is false
This violates (at least some interpretations of) the C99 standard and
breaks code (e.g. in vf_fps) like
double f = DBL_MAX;
[...]
if (f == DBL_MAX) { // f has not been changed yet
    [....]
}

5 years agomxfdec: Validate parameters to strftime
Martin Storsjö [Sun, 9 Mar 2014 20:44:10 +0000 (22:44 +0200)]
mxfdec: Validate parameters to strftime

The MSVCRT version of strftime calls the invalid parameter handler
if the struct values in struct tm are invalid. In case no invalid
parameter handler is set for the process, the process is aborted.

This fixes fate failures on MSVC builds since 570af382.

Based on a patch by Hendrik Leppkes.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agomatroskaenc: enable Annex B to MP4 conversion for HEVC tracks.
Tim Walker [Mon, 3 Mar 2014 14:53:45 +0000 (14:53 +0000)]
matroskaenc: enable Annex B to MP4 conversion for HEVC tracks.

5 years agomatroskaenc: write private data in hvcC format for HEVC.
Tim Walker [Mon, 3 Mar 2014 14:53:44 +0000 (14:53 +0000)]
matroskaenc: write private data in hvcC format for HEVC.

5 years agomovenc: allow muxing HEVC in MODE_MP4.
Tim Walker [Mon, 3 Mar 2014 14:53:43 +0000 (14:53 +0000)]
movenc: allow muxing HEVC in MODE_MP4.

5 years agomovenc: enable Annex B to MP4 conversion for HEVC tracks.
Tim Walker [Mon, 3 Mar 2014 14:53:42 +0000 (14:53 +0000)]
movenc: enable Annex B to MP4 conversion for HEVC tracks.

5 years agomovenc: write hvcC tag for HEVC.
Tim Walker [Mon, 3 Mar 2014 14:53:41 +0000 (14:53 +0000)]
movenc: write hvcC tag for HEVC.

5 years agomovenc: use 'hev1' tag for HEVC in MODE_MOV.
Tim Walker [Mon, 3 Mar 2014 14:53:40 +0000 (14:53 +0000)]
movenc: use 'hev1' tag for HEVC in MODE_MOV.

'hvc1' requires that parameter set NAL units be
present only in the samples entry, but not in the
samples themselves, requiring that additional
parameter sets, if present, be filtered out of the
samples and placed in new, additional sample entries
if they override or otherwise conflict with the
parameter sets present in the first sample entry.
We do not have any way of doing this at present, so
the files we produce can only comply with the
restrictions set for the 'hev1' sample entry name in
ISO/IEC 14496-15.

5 years agoriff: add VP9 fourcc
James Zern [Sat, 9 Nov 2013 04:16:17 +0000 (20:16 -0800)]
riff: add VP9 fourcc

5 years agoriff: IPJ2 decodes with JPEG2000 decoder
Ben Littler [Thu, 23 Feb 2012 04:34:45 +0000 (23:34 -0500)]
riff: IPJ2 decodes with JPEG2000 decoder

Samples can be made from mencoder and jp2avi.dll codec.

5 years agomovdec: handle 0x7fff langcode as macintosh per the specs
Baptiste Coudurier [Wed, 21 Mar 2012 21:18:16 +0000 (14:18 -0700)]
movdec: handle 0x7fff langcode as macintosh per the specs

The correct point that seperates ISO and MAC language codes is 0x400
according to the current QT spec. Old QT specs did not list where this
seperation is but apparently only defined the meaning of the first 137.

5 years agolibspeex: support ZygoAudio (quality 10 mode)
Piotr Bandurski [Wed, 16 Jan 2013 18:32:54 +0000 (19:32 +0100)]
libspeex: support ZygoAudio (quality 10 mode)

5 years agoisom: lpcm in mov default to big endian
Mark Himsley [Fri, 1 Nov 2013 11:22:53 +0000 (11:22 +0000)]
isom: lpcm in mov default to big endian

It is my understanding that "Unless otherwise stated, all data in a
QuickTime movie is stored in big-endian byte ordering" [1] in MOV files.

I have a couple of thousand files, which technically are invalid because
their sound sample description element 4CC is 'lpcm' but its version is
0 - and "Version 0 supports only uncompressed audio in raw ('raw ') or
twos-complement ('twos') format" [2]

Because isom.c only contains a mapping for 4CC 'lpcm' to
AV_CODEC_ID_PCM_S16LE, these files have their audio decoded as LE when
it is actually BE.

This commit adds AV_CODEC_ID_PCM_S16BE as the first match for 4CC 'lpcm'.

[1]
https://developer.apple.com/library/mac/documentation/quicktime/QTFF/qtff.pdf
page 21
[2]
https://developer.apple.com/library/mac/documentation/quicktime/QTFF/qtff.pdf
page 178

Reviewed-by: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
5 years agoisom: add "MNG" FourCC
Piotr Bandurski [Sat, 14 Jul 2012 16:42:29 +0000 (18:42 +0200)]
isom: add "MNG" FourCC

5 years agoisom: Support MPEG-2 video mov files from FPC5
Carl Eugen Hoyos [Sat, 22 Feb 2014 23:31:50 +0000 (00:31 +0100)]
isom: Support MPEG-2 video mov files from FPC5

5 years agoisom: add "NO16" FourCC
Piotr Bandurski [Sun, 15 Jul 2012 11:25:47 +0000 (13:25 +0200)]
isom: add "NO16" FourCC

5 years agoisom: add Radius DV YUV FourCCs
Piotr Bandurski [Tue, 5 Jun 2012 10:13:39 +0000 (12:13 +0200)]
isom: add Radius DV YUV FourCCs

5 years agoisom: Support Sony XAVC in mov
Carl Eugen Hoyos [Fri, 18 Oct 2013 05:50:50 +0000 (07:50 +0200)]
isom: Support Sony XAVC in mov

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
5 years agoisom: add xd51 hdcam
Ben Littler [Wed, 19 Jun 2013 14:43:48 +0000 (10:43 -0400)]
isom: add xd51 hdcam

Someone needs to binary search FCP for new isom...

5 years agohevc: make pps/sps ids unsigned where necessary
Vittorio Giovara [Sun, 9 Mar 2014 16:15:26 +0000 (17:15 +0100)]
hevc: make pps/sps ids unsigned where necessary

Fixes integer overflow and out of array accesses.
Found-by: Mateusz j00ru Jurczyk and Gynvael Coldwind
5 years agohevc: Do not turn 32bit timebases into negative numbers
Michael Niedermayer [Sat, 15 Feb 2014 22:09:55 +0000 (23:09 +0100)]
hevc: Do not turn 32bit timebases into negative numbers

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
5 years agohevc: use av_mallocz() for allocating tab_ipm
Michael Niedermayer [Sat, 11 Jan 2014 19:23:51 +0000 (20:23 +0100)]
hevc: use av_mallocz() for allocating tab_ipm

Fixes use of uninitialized memory and out of stack array read.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
5 years agohevc: Use get_bits_long() in decode_vui()
Michael Niedermayer [Sat, 15 Feb 2014 21:29:17 +0000 (22:29 +0100)]
hevc: Use get_bits_long() in decode_vui()

Fix assertion failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
5 years agofloat_dsp: fix errors in documentation
Janne Grunau [Sun, 2 Mar 2014 19:33:49 +0000 (20:33 +0100)]
float_dsp: fix errors in documentation

5 years agotimer: use mach_absolute_time as high resolution clock on darwin
Janne Grunau [Fri, 24 Jan 2014 00:15:31 +0000 (01:15 +0100)]
timer: use mach_absolute_time as high resolution clock on darwin

Not guaranteed to be in nanosecond resolution. On iOS 7 the duration
of one tick is 125/3 ns which is still more than an order of magnitude
better then microseconds.

Replace decicycles with the neutral UNITS. Decicycles is strange but
tenths of a nanosecond and unspecific "deci"-ticks for mach_absolute_time
is just silly.

5 years agoarm: get_cabac inline asm
Janne Grunau [Wed, 29 Jan 2014 13:48:22 +0000 (14:48 +0100)]
arm: get_cabac inline asm

Based on the aarch64 asm. CPU cycle counts on cortex-a9 compared to
gcc 4.8.2:
before: 475 decicycles in get_cabac_noinline, 67106035 runs, 2829 skips
after:  393 decicycles in get_cabac_noinline, 67106474 runs, 2390 skips

Overall speedup is above 2%. Code generated by clang 3.4 is slower on
the same hardware and the relative change is a little larger.

5 years agoaarch64: get_cabac inline asm
Janne Grunau [Mon, 13 Jan 2014 00:06:20 +0000 (01:06 +0100)]
aarch64: get_cabac inline asm

Based on the x86 branchless get_cabac asm. get_cabac_noinline() gets
approximately 20% faster (no cycle counts available) compared to clang
from Xcode 5.1 beta5. More than 6% faster overall. A part of the overall
speedup might be explained by additional inlining of get_cabac().