Support unsigned variants of already supported signed formats in alsa.
Support a-law and mu-law output in alsa.
Merge remote branch 'qatar/master'
libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions
DTX, discontinuous transmission, allows emitting frames withcomfort noise when no voice is detected in the input audio.
Signed-off-by: Martin Storsjö <firstname.lastname@example.org>
libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed
Also rename the incorrectly named enc_bitrate to enc_mode, use theenc_bitrate variable for storing the last chosen bitrate.
This avoids continuous warning log messages if not using an...
libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate
Dynamically print the supported bitrates from the local table,instead of using a hardcoded log message.
libvo-*: Fix up the long codec names
Include VisualOn to clarify the codec name, but remove theactual library name from the user-friendly description.Also mention Android, to clarify which VisualOn implementationthis refers to, since they do sell other variants of the same...
libavcodec: Mark AVCodec->priv_class const
This avoids warnings of this kind, everywhere priv_classis initialized:
warning: initialization discards qualifiers from pointer target type
swscale: Factorize FAST_BGR2YV12 definition.
It is used only for x86 so it will eventually be moved with that codeinto the x86 arch subdirectory.
Mention VisualOn in the new codecs' long names to explain "libvo".
libvo-aacenc: Only produce extradata if the global header flag is set
lavf: postpone removal of public metadata conversion API
It's been deprecated only a few months ago, long after 0.6.
lavc: postpone removal of request_channels
No decoder uses the supposed replacement, request_channel_layout, yet.
lavc: postpone removal of audioconvert and sample_fmt wrappers
Those were moved to libavutil only recently.
lavf: postpone removal of deprecated avio functions
They've been deprecated very recently.
libopencore-amr: Cosmetics: Rewrap and align
libopencore-amr, libvo-amrbwenc: Rename variables and functions
Avoid camelCase names for functions and variables.
libopencore-amr: Convert commented out debug logging into av_dlog
Also add the avctx as logging context.
libopencore-amr: Remove an unused state variable
libvo-amrwbenc: Don't explicitly store bitrate modes in the bitrate table
The bitrate modes are equal to the array indices.
libopencore-amr: Remove a useless local variable
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
libopencore-amr, libvo-amrwbenc: Return proper error codes in most places
libopencore-amr: Don't print carriage returns in log messages
libopencore-amr: Remove an old workaround for libamr header weirdness
libopencore-amr: Make the opaque encoder pointer a void*
libopencore-amr: Remove unused code fragments
This parts are heritage from the encoder part from the oldlibamr code removed in SVN rev 19365.
applehttp: Only check the discard flags if v->ctx actually is initialized
This code could be executed if the demuxer reads more than onesegment before returning from av_open_input_stream.
ffplay: implement -showmode option
The new option allows to select the starting show mode.
ffplay: use symbolic constant values for show_audio
Also rename VideoState->show_audio to show_mode.Improve readability.
ffplay: remove audio_write_get_buf_size() forward declaration
Move up the definition of audio_write_get_buf_size(), so that it isdefined before it is used. Simplify.
ffplay: avoid unnecessary intermediary struct in queue_picture()
When CONFIG_AVFILTER, use a AVFrame -> AVPicture cast rather thanexplicitely copy the image information from AVFrame to a newAVPicture.
Signed-off-by: Stefano Sabatini <email@example.com>
ffplay: remove unused field VideoState.dtg_active_format
doc: update developer guide
Refer to the current submission policy and refer to FATE in theRegression Test section.
Fix compilation with --disable-avfilter.
lavf: bump minor and add an APIChanges entry for the last avio changes
avio: deprecate url_exist in favor of avio_check.
file: implement url_check() callback in the file and pipe protocols
Signed-off-by: Anton Khirnov <firstname.lastname@example.org>
avio: add avio_check()
The new function is more flexible than url_exist(), as it allows tospecify which access flags to check, and does not require an explicitopen of the checked resource.
avio: left-shift AVIO_ flags on next bump
Now AVIO_RDONLY is defined as 0, so it's not usable as a flag.
flv demuxer: dont error out due to index problems, but inform the user about it.Signed-off-by: Michael Niedermayer <email@example.com>
Check for successful h263 init in msmpeg4 init
Signed-off-by: Ronald S. Bultje <firstname.lastname@example.org>
lavf/utils.c: Order packets with identical PTS by stream index.
This allows for more reproducible results when using multi-threading.
ASS decoder also requires ass_split.o to be compiled.
flvdec: Allow parsing keyframes metadata without seeking in most cases
Stop the avio input at a point where amf_parse_object cancontinue parsing the end of the object seamlessly, when alldata is available.
If unsupported data is encountered within the keyframes object,...
Error out if vaapi is not found
Make the behaviour consistent with the other external deps.
avio: undeprecate av_url_read_fseek/fpause under nicer names
It seems their replacements won't be ready anytime soon.
Fix compilation with --disable-yasm.
Add forgotten const to enum AVSampleFormatSigned-off-by: Michael Niedermayer <email@example.com>
libvo-*: Don't use deprecated sample format names and enum names
flvdec: Fix support for flvtool2 "keyframes based" generated index
Current keyframes data parser unconditionally rewind metadata tothe end at the end of function. As result ALL metadata locatedafter keyframes index not parsed, and as metadata object can have...
libavcodec: Use "const enum AVSampleFormat" in AVCodec initialization
Cosmetics: Rename variable param as the more appropriate dpyname.
Cosmetics: Fix white-space in av_log() message.
Fix output of AV_CH_LAYOUT_5POINT0 via alsa by reordering channels.
Support CODEC_ID_PCM_F64* output via alsa (stereo only).
Support CODEC_ID_PCM_S24* output via alsa (stereo only).
Use const where appropriate.
Spotted by Reimar.
Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.
(1<<31) is undefined and seems to be evaluated by gcc to -2^31 whenthese formulae require 2^31.
These conversions still need fate tests.
Convert some undefined 1<<31 shifts into 1U<<31.
According to ISO 9899:1999 S 6.5.7/4:
The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bitsare filled with zeros. If E1 has an unsigned type, the value of theresult is E1× 2^E2, reduced modulo one more than the maximum value...
vpxenc: add CQ_LEVEL mapping
via the equivalent AVCodecContext::crf modifying the range allowed byoptions.c (0-51 -> 0-63)update configure check to require libvpx 0.9.6 (Bali)
Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping
via the equivalent AVCodecContext::mb_threshold
ffplay: fix weird brace placement in video_image_display()
ffplay: rename output_picture2() to output_picture()
The "2" suffix is confusing.
ffplay: remove useless intermediary variable dst_pix_fmt in queue_picture()
ffplay: avoid forward declaration for packet_queue_put()
Define the function before it is used. Simplify.
ffplay: compact expression in compute_mod()
Prefer "return X ? Y : Z" over "if (x) return Y; else return Z",reduce line count.
compute rects duration in ASS decoder
Signed-off-by: Aurelien Jacobs <email@example.com>
add avcodec_get_subtitle_defaults() to initialize AVSubtitle struct
Call this new function before decode() to replace the custom andinconsistant initialization in various decoders.This function is equivalent to avcodec_get_frame_defaults() for AVFrame....
Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().
When HAVE_7REGS was not defined these functions had an empty bodycausing the following warnings during compilation.In file included from libswscale/x86/yuv2rgb_mmx.c:58:libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_rgb32_MMX’:...
Fix compilation of timefilter test program.
The printf function is forbidden in library code, but not in test programs,so #undefine the printf macro that disables the system printf function.
Signed-off-by: Diego Biurrun <firstname.lastname@example.org>
Add support for AMR-WB encoding via libvo-amrwbenc
The wrapper code is based on the libamr wrapper removed in SVN rev 19365.
Add an AAC encoder by using the libvo-aacenc library
oggdec: use av_freep() instead of av_free()Signed-off-by: Michael Niedermayer <email@example.com>
vsrc_buffer.h: add file doxy
vsrc_buffer.h: add multiple inclusion guards
vsrc_buffer: tweak error message in init()
Change:Expected 7 arguments, but only %d found in '%s'\nto:Expected 7 arguments, but %d found in '%s'\n
as the user may provide more than 7 arguments, in that case the erroris not misleading.
g722: Return 8 bits per sample for g722 in av_get_bits_per_sample
This fixes a failing assert in ff_raw_read_header (infate-g722dec-1), where bits_per_coded_sample is set using thisfunction and is required to have a positive value.
Revert "fbdev: simplify logic in fbdev_read_packet()"
This change is buggy.
This reverts commit d46c9f83cf495c901e6128ce1042190f620b89c4.
ffmpeg: rename configure_filters() to configure_video_filters()
Mostly useful for the audio-filters branch, to make more apparent thedistinction between configure_audio_filters() andconfigure_video_filters().
lavfi: add fieldorder filter
fbdev: simplify logic in fbdev_read_packet()
H264: Allow templating hl_decode_mb based on pixel_size.Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
H264: factor if() out of coef decoding loop of decode_cabac_residual_internal()Signed-off-by: Michael Niedermayer <email@example.com>
H264: Split out hl_motion and template it, this seems a bit fasterSigned-off-by: Michael Niedermayer <firstname.lastname@example.org>
H264: replace pixel_size by pixel_shiftSigned-off-by: Michael Niedermayer <email@example.com>
h264: Print bpp Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
Enable decoding of high bit depth h264.
This patch completes the high bit depth h264 decoding support.
Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
This patch lets e.g. dsputil_init chose dsp functions with respect tothe bit depth to decode. The naming scheme of bit depth dependentfunctions is <base name>_<bit depth>[_
] (i.e. the old...
Add support for higher QP values in h264.
In high bit depth, the QP values may now be up to (51 + 6*(bit_depth-8)).
Preparatory patch for high bit depth h264 decoding support.
H264: fix prefetchSigned-off-by: Michael Niedermayer <email@example.com>
Add the notion of pixel size in h264 related functions.
In high bit depth the pixels will not be stored in uint8_t like in thenormal case, but in uint16_t. The pixel size is thus 1 in normal bitdepth and 2 in high bit depth.
Preparatory patch for high bit depth h264 decoding support....
Make the h264 loop filter bit depth aware.
Template dsputil_internal.h with respect to pixel size, etc.
Template h264idct_internal.h with respect to pixel size, etc.