summaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1.c
Commit message (Collapse)AuthorAgeFilesLines
* ffv1: fix 16bits multithreadingMichael Niedermayer2011-05-261-8/+10
| | | | | | fixes ticket237 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote branch 'qatar/master'Michael Niedermayer2011-05-131-11/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (33 commits) rtpdec_qdm2: Don't try to parse data packet if no configuration is received ac3enc: put the counting of stereo rematrixing bits in the same place to make the code easier to understand. ac3enc: clean up count_frame_bits() and count_frame_bits_fixed() mpegvideo: make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of just via AVFrame. srtdec: make sure we don't write past the end of buffer wmaenc: improve channel count and bitrate error handling in encode_init() matroskaenc: make sure we don't produce invalid file with no codec ID matroskadec: check that pointers were initialized before accessing them lavf: fix function name in compute_pkt_fields2 av_dlog message lavf: fix av_find_best_stream when providing a wanted stream. lavf: fix av_find_best_stream when decoder_ret is given and using a related stream. ffmpeg: factorize quality calculation tiff: add support for SamplesPerPixel tag in tiff_decode_tag() tiff: Prefer enum TiffCompr over int for TiffContext.compr. mov: Support edit list atom version 1. configure: Enable libpostproc automatically if GPL code is enabled. Cosmetics: fix prototypes in oggdec oggdec: fix memleak with continuous streams. matroskaenc: add missing new line in av_log() call dnxhdenc: add AVClass in private context. ... swscale changes largely rewritten by me or replaced by baptsites due to lots of bugs in ronalds code. Above code is also just in case its not obvios to a large extended duplicates that where cherry picked from ffmpeg. Conflicts: configure ffmpeg.c libavformat/matroskaenc.c libavutil/pixfmt.h libswscale/ppc/swscale_template.c libswscale/swscale.c libswscale/swscale_template.c libswscale/utils.c libswscale/x86/swscale_template.c tests/fate/h264.mak tests/ref/lavfi/pixdesc_le tests/ref/lavfi/pixfmts_copy_le tests/ref/lavfi/pixfmts_null_le tests/ref/lavfi/pixfmts_scale_le tests/ref/lavfi/pixfmts_vflip_le Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace int_fast integer types with their sized standard posix counterparts.Diego Biurrun2011-05-121-11/+20
| | | | | | | | | | The _fast integer types provide no realworld benefits, but may introduce portability issues and are just plain ugly.
| * Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-2/+2
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | ffv1: Add PIX_FMT_YUV420P9 support.Michael Niedermayer2011-05-121-1/+11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffv1dec: output PIX_FMT_YUV422P10 and PIX_FMT_YUV420P10 when possible.Michael Niedermayer2011-05-121-3/+19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffv1enc: support PIX_FMT_YUV420P10 & PIX_FMT_YUV422P10Michael Niedermayer2011-05-081-3/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffv1: set internal frame defaultsStefano Sabatini2011-05-081-0/+2
| | | | | | | | Another fix missed before the vsrc_buffer changes.
* | replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*Stefano Sabatini2011-05-021-2/+2
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-221-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition. Introduce slice threads flag. FATE: allow forcing thread-type when doing threaded fate runs. Use av_log_ask_for_sample() where appropriate. error: sort, pack, and align error code and string definitions The stabilization period after version bumps should be one month, not one week. applehttp: Expose the stream bitrate via metadata doc: Add some initial docs on the applehttp demuxer Provide a fallback version of the libm function trunc libavdevice: Define _XOPEN_SOURCE for usleep lavc: provide deprecated avcodec_thread_init until next major version lavc: provide the opt.h header until the next bump error: change AVERROR_EOF value error: remove AVERROR_NUMEXPECTED error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c Conflicts: libavcodec/h264.c libavutil/error.c libavutil/error.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Introduce slice threads flag.Ronald S. Bultje2011-04-211-1/+2
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | Fix undefined behavior in ffv1 with insane widths.Michael Niedermayer2011-04-011-1/+1
| | | | | | | | | | | | The new tables is large enough to prevent this together with our image size checks. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'newdev/master'Michael Niedermayer2011-03-231-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * newdev/master: (33 commits) Fix an infinite loop when RoQ encoded generated a frame with a size greater than the maximum valid size. Add kbdwin.o to AC3 decoder Detect byte-swapped AC-3 and support decoding it directly. cosmetics: indentation Always copy input data for AC3 decoder. ac3enc: make sym_quant() branch-free cosmetics: indentation Add a CPU flag for the Atom processor. id3v2: skip broken tags with invalid size id3v2: don't explicitly skip padding Make sure kbhit() is in conio.h fate: update wmv8-drm reference vc1: make P-frame deblock filter bit-exact. configure: Add the -D parameter to the dlltool command amr: Set the AVFMT_GENERIC_INDEX flag amr: Set the pkt->pos field properly to the start of the packet amr: Set the codec->bit_rate field based on the last packet rtsp: Specify unicast for TCP interleaved streams, too Set the correct target for mingw64 dlltool applehttp: Change the variable for stream position in seconds into int64_t ... Conflicts: ffmpeg.c ffplay.c libavcodec/ac3dec.c libavformat/avio.h libavformat/id3v2.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ffv1: allocate correct size for sample bufferMans Rullgard2011-03-201-1/+1
| | | | | | | | | | | | | | This fixes a typo in the size calculation for the sample buffer introduced in cbabccc367424. Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-2/+2
| | | | | | | | | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-281-2/+2
|/ | | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit d36beb3f6902b1217beda576aa18abf7eb72b03c)
* Fix indention of one forgotten line in ffv1.cMichael Niedermayer2010-12-121-1/+1
| | | | Originally committed as revision 25935 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix FFv1 decoder buffer releasing.Stefano Sabatini2010-11-041-3/+7
| | | | | | | Previously it was releasing the buffer which was returned to the user, which was resulting in a crash in case of direct rendering. Originally committed as revision 25678 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix 10l leak in ffv1.Michael Niedermayer2010-10-281-0/+4
| | | | Originally committed as revision 25595 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to find a bit better initial states in ffv1 2pass.Michael Niedermayer2010-10-281-4/+48
| | | | | | | | | | | | Difference in filesizes to foreman ffv1 version=2, context=1 coder=1 18637016 adv-pass2-g300.avi 18638806 adv-pass1-g300.avi 18640534 ref-pass2-g300.avi 18918214 adv-pass2-g1.avi 18982048 ref-pass2-g1.avi 21516230 adv-pass1-g1.avi Originally committed as revision 25594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Keep track of how many slices*gops where encoded in ffv1 2 pass.Michael Niedermayer2010-10-281-1/+10
| | | | Originally committed as revision 25593 to svn://svn.ffmpeg.org/ffmpeg/trunk
* factorize variable declaration in ffv1.Michael Niedermayer2010-10-281-2/+1
| | | | Originally committed as revision 25592 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FFV1 initial state 2pass code.Michael Niedermayer2010-10-261-3/+63
| | | | Originally committed as revision 25584 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Read & write initial_states for ffv1Michael Niedermayer2010-10-261-3/+39
| | | | Originally committed as revision 25583 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add initial_states array to ffv1.Michael Niedermayer2010-10-261-0/+20
| | | | Originally committed as revision 25582 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add rc_stat2 to ffv1 this will be needed for finding good initial contexts ↵Michael Niedermayer2010-10-261-5/+23
| | | | | | in 2 pass mode. Originally committed as revision 25581 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize state initialization in ffv1 clear_state().Michael Niedermayer2010-10-261-4/+4
| | | | Originally committed as revision 25580 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only allocate stats_out when needed in ffv1Michael Niedermayer2010-10-261-1/+2
| | | | Originally committed as revision 25579 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize litteral constents in ffv1 into STATS_OUT_SIZE.Michael Niedermayer2010-10-261-2/+3
| | | | Originally committed as revision 25578 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make 1pass statistic collection in ffv1 put_symbol_inline() conditional to ↵Michael Niedermayer2010-10-261-2/+7
| | | | | | avoid slowdown when more statistic collection code is added. Originally committed as revision 25577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Increase ffv1 encoding speed from 65 to 80 fps by forcing some inlining.Michael Niedermayer2010-10-261-2/+2
| | | | Originally committed as revision 25571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add quant_table_index to ffv1 PlaneContext and use it instead of duplicating ↵Michael Niedermayer2010-10-261-7/+10
| | | | | | the currents implementation of calculating it. Originally committed as revision 25570 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ffv1 state transition table sorting to its own function.Michael Niedermayer2010-10-241-40/+45
| | | | Originally committed as revision 25563 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix the case with swaping states 127 and 129 in ffv1Michael Niedermayer2010-10-241-2/+6
| | | | Originally committed as revision 25562 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize state transition table sorting in ffv1Michael Niedermayer2010-10-241-1/+1
| | | | Originally committed as revision 25561 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 2 pass mode for ffv1 to optimally order the range coder states.Michael Niedermayer2010-10-241-4/+94
| | | | Originally committed as revision 25560 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize state_transition init out.Michael Niedermayer2010-10-241-4/+6
| | | | Originally committed as revision 25559 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace 5 by named constant MAX_CONTEXT_INPUTS in ffv1.cMichael Niedermayer2010-10-191-5/+6
| | | | Originally committed as revision 25529 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move shared functions out of CONFIG_FFV1_ENCODER ifdefMichael Niedermayer2010-10-161-37/+37
| | | | Originally committed as revision 25511 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store slice position and size per keyframe in ffv1.2Michael Niedermayer2010-10-151-4/+35
| | | | Originally committed as revision 25478 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indention of ffv1.c after previous commits.Michael Niedermayer2010-10-141-71/+70
| | | | Originally committed as revision 25477 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store quant table index per plane and slice.Michael Niedermayer2010-10-141-17/+23
| | | | Originally committed as revision 25476 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Assert that the context doesnt overflow in ffv1.Michael Niedermayer2010-10-141-0/+1
| | | | Originally committed as revision 25475 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rectangular slice support for ffv1.2Michael Niedermayer2010-10-141-76/+237
| | | | Originally committed as revision 25474 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow storing multiple quant tables in extradata that can then be selected ↵Michael Niedermayer2010-10-101-38/+47
| | | | | | per keyframe in ffv1. Originally committed as revision 25439 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store global things in extradata for ffv1 ver=2.Michael Niedermayer2010-10-101-1/+88
| | | | | | ver=2 is not set yet so this does not affect output. Originally committed as revision 25438 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure version is not decreased for 16bit per sample colorspaces in ffv1.Michael Niedermayer2010-10-101-1/+1
| | | | Originally committed as revision 25437 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize quant table read and write code in ffv1.cMichael Niedermayer2010-10-101-9/+22
| | | | Originally committed as revision 25436 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffv1: remove VLAsMåns Rullgård2010-06-261-14/+19
| | | | Originally committed as revision 23802 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud