ffmpeg.git
11 years agoRemove another 2 incorrect checks.
Michael Niedermayer [Fri, 25 Jul 2008 23:49:01 +0000 (23:49 +0000)]
Remove another 2 incorrect checks.
These would ignore fields of different parity.

Originally committed as revision 14404 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoPrint an error if a reference picture is missing.
Michael Niedermayer [Fri, 25 Jul 2008 23:39:43 +0000 (23:39 +0000)]
Print an error if a reference picture is missing.

Originally committed as revision 14403 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove mysterious ref->data[0] check.
Michael Niedermayer [Fri, 25 Jul 2008 23:36:48 +0000 (23:36 +0000)]
Remove mysterious ref->data[0] check.
What the standard calls non-existent is not related to the
value of the data[0] pointer.

Originally committed as revision 14402 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years ago10l typo, fix compilation
Michael Niedermayer [Fri, 25 Jul 2008 22:42:49 +0000 (22:42 +0000)]
10l typo, fix compilation

Originally committed as revision 14401 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove another stupidity, long_ref==0 check 4 lines after assert(long_ref==0).
Michael Niedermayer [Fri, 25 Jul 2008 22:39:43 +0000 (22:39 +0000)]
Remove another stupidity, long_ref==0 check 4 lines after assert(long_ref==0).

Originally committed as revision 14400 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoindent
Michael Niedermayer [Fri, 25 Jul 2008 21:51:50 +0000 (21:51 +0000)]
indent

Originally committed as revision 14399 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRewrite fill_default_ref_list(), the old code was obfuscated beyond
Michael Niedermayer [Fri, 25 Jul 2008 21:46:15 +0000 (21:46 +0000)]
Rewrite fill_default_ref_list(), the old code was obfuscated beyond
repair with hacks.
new code is ~60lines old was ~200
Fixes at least:
FRExt/HCHP2_HHI_A.264
one sample also get decoded much better:
FRExt/FRExt1_Panasonic.avc (PSNR 11 -> 80)
(no i do not know why, the old code was too a big mess to figure out
 what it did)

Originally committed as revision 14398 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoImprove documentation about -bt option
Jason Garrett-Glaser [Fri, 25 Jul 2008 21:04:06 +0000 (21:04 +0000)]
Improve documentation about -bt option

Originally committed as revision 14397 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDo not scare the user with error messages when everything is ok.
Michael Niedermayer [Fri, 25 Jul 2008 14:52:58 +0000 (14:52 +0000)]
Do not scare the user with error messages when everything is ok.

Originally committed as revision 14396 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake remove_short() match remove_long() in that it calls unreference_pic().
Michael Niedermayer [Fri, 25 Jul 2008 14:00:01 +0000 (14:00 +0000)]
Make remove_short() match remove_long() in that it calls unreference_pic().

Originally committed as revision 14395 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemoving yet another weird field pic special case,
Michael Niedermayer [Fri, 25 Jul 2008 13:40:13 +0000 (13:40 +0000)]
Removing yet another weird field pic special case,
now related to SHORT2LONG MMCOs.

Originally committed as revision 14394 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake remove_long() call unreference_pic() internally.
Michael Niedermayer [Fri, 25 Jul 2008 13:09:06 +0000 (13:09 +0000)]
Make remove_long() call unreference_pic() internally.

Originally committed as revision 14393 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMerge oddly duplicated remove_long/remove_long_at_index() function.
Michael Niedermayer [Fri, 25 Jul 2008 12:56:58 +0000 (12:56 +0000)]
Merge oddly duplicated remove_long/remove_long_at_index() function.

Originally committed as revision 14392 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove strange long_ref=0.
Michael Niedermayer [Fri, 25 Jul 2008 12:34:39 +0000 (12:34 +0000)]
Remove strange long_ref=0.

Originally committed as revision 14391 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoindent
Michael Niedermayer [Fri, 25 Jul 2008 12:26:24 +0000 (12:26 +0000)]
indent

Originally committed as revision 14390 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years ago10000l, forgotton }
Michael Niedermayer [Fri, 25 Jul 2008 12:25:28 +0000 (12:25 +0000)]
10000l, forgotton }

Originally committed as revision 14389 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove another of these obfuscated special cases for field pictures
Michael Niedermayer [Fri, 25 Jul 2008 12:23:41 +0000 (12:23 +0000)]
Remove another of these obfuscated special cases for field pictures
that does not do anything.

Originally committed as revision 14388 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify mmco setup code used in IDR pictures.
Michael Niedermayer [Fri, 25 Jul 2008 12:12:25 +0000 (12:12 +0000)]
Simplify mmco setup code used in IDR pictures.

Originally committed as revision 14387 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove redundant h->mmco_index= 0.
Michael Niedermayer [Fri, 25 Jul 2008 12:02:45 +0000 (12:02 +0000)]
Remove redundant h->mmco_index= 0.

Originally committed as revision 14386 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAssert that long_ref has been cleared for released pics.
Michael Niedermayer [Fri, 25 Jul 2008 11:54:03 +0000 (11:54 +0000)]
Assert that long_ref has been cleared for released pics.

Originally committed as revision 14385 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoClear long_ref when a frame is no longer a long_ref.
Michael Niedermayer [Fri, 25 Jul 2008 11:52:40 +0000 (11:52 +0000)]
Clear long_ref when a frame is no longer a long_ref.

Originally committed as revision 14384 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake sure mmco index is 0 (instead of uninitialized) in all error returns.
Michael Niedermayer [Fri, 25 Jul 2008 11:48:32 +0000 (11:48 +0000)]
Make sure mmco index is 0 (instead of uninitialized) in all error returns.

Originally committed as revision 14383 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocompilation fix with GCC 4.0.1 on MacOSX tiger, broken by the removal of AVV() macro
Guillaume Poirier [Fri, 25 Jul 2008 09:15:08 +0000 (09:15 +0000)]
compilation fix with GCC 4.0.1 on MacOSX tiger, broken by the removal of AVV() macro

Originally committed as revision 27349 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoFix handling of old nuv files where an aspect of 1 actually means 4/3
Joakim Plate [Fri, 25 Jul 2008 04:10:32 +0000 (04:10 +0000)]
Fix handling of old nuv files where an aspect of 1 actually means 4/3
Patch by elupus (elupus ecce se)

Originally committed as revision 14382 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify strange obfuscated code in MMCO_LONG handling.
Michael Niedermayer [Fri, 25 Jul 2008 00:13:02 +0000 (00:13 +0000)]
Simplify strange obfuscated code in MMCO_LONG handling.
Note, this might change behavior for invalid bitstreams.

Originally committed as revision 14381 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSet field_poc (it was half uninitialized before) and use it
Michael Niedermayer [Thu, 24 Jul 2008 23:43:44 +0000 (23:43 +0000)]
Set field_poc (it was half uninitialized before) and use it
instead of the fragile first_field check to determine if we have
2 fields at the end.

Originally committed as revision 14380 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMinor simplification of code in init_poc().
Michael Niedermayer [Thu, 24 Jul 2008 22:29:38 +0000 (22:29 +0000)]
Minor simplification of code in init_poc().

Originally committed as revision 14379 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics (indent and 2 empty lines)
Michael Niedermayer [Thu, 24 Jul 2008 22:05:58 +0000 (22:05 +0000)]
cosmetics (indent and 2 empty lines)

Originally committed as revision 14378 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoinit_poc() vs. idr() cleanup
Michael Niedermayer [Thu, 24 Jul 2008 22:04:29 +0000 (22:04 +0000)]
init_poc() vs. idr() cleanup

Originally committed as revision 14377 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: typo fixes
Diego Biurrun [Thu, 24 Jul 2008 21:12:37 +0000 (21:12 +0000)]
cosmetics: typo fixes

Originally committed as revision 14376 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoaspect stored in nuv files must be converted from display- to sample-aspect.
Joakim Plate [Thu, 24 Jul 2008 18:40:43 +0000 (18:40 +0000)]
aspect stored in nuv files must be converted from display- to sample-aspect.
Patch by elupus (elupus ecce se)

Originally committed as revision 14375 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix tiny_psnr so it compares all bytes (it did skip the last block).
Michael Niedermayer [Thu, 24 Jul 2008 17:24:36 +0000 (17:24 +0000)]
Fix tiny_psnr so it compares all bytes (it did skip the last block).
Also display both file sizes and slightly change the output formatting.
[not split in 3 patches to avoid the huge checksum files from being changed
 and having to be reviewed 3 times, if people want it split i can revert and
 split it]

Originally committed as revision 14374 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix loop filter with CAVLC 8x8dct.
Michael Niedermayer [Thu, 24 Jul 2008 17:13:37 +0000 (17:13 +0000)]
Fix loop filter with CAVLC 8x8dct.
Fixes at least:
FRExt/HPCV_BRCM_A.264
FRExt/HVLCFI0_Sony_B.264
FRExt/HVLCPFF0_Sony_B.264
H264_artifacts_motion.h264

Originally committed as revision 14373 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: Fix two common typos: wont --> will not, lets --> let us.
Diego Biurrun [Thu, 24 Jul 2008 17:09:28 +0000 (17:09 +0000)]
cosmetics: Fix two common typos: wont --> will not, lets --> let us.

Originally committed as revision 14372 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: typo/grammar fixes
Diego Biurrun [Thu, 24 Jul 2008 17:04:14 +0000 (17:04 +0000)]
cosmetics: typo/grammar fixes

Originally committed as revision 14371 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: Fix indentation after last commit.
Diego Biurrun [Thu, 24 Jul 2008 16:54:51 +0000 (16:54 +0000)]
cosmetics: Fix indentation after last commit.

Originally committed as revision 14370 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix indentation after last commit.
Diego Biurrun [Thu, 24 Jul 2008 16:52:35 +0000 (16:52 +0000)]
Fix indentation after last commit.

Originally committed as revision 27345 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoRemove AltiVec vector declaration compiler compatibility macros.
Diego Biurrun [Thu, 24 Jul 2008 16:49:14 +0000 (16:49 +0000)]
Remove AltiVec vector declaration compiler compatibility macros.
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.

Originally committed as revision 27344 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoFix segfault with non existing input files.
Michael Niedermayer [Thu, 24 Jul 2008 15:47:28 +0000 (15:47 +0000)]
Fix segfault with non existing input files.

Originally committed as revision 14369 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCosmetics: grammar nits
Vitor Sessak [Thu, 24 Jul 2008 11:55:01 +0000 (11:55 +0000)]
Cosmetics: grammar nits

Originally committed as revision 14368 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agomisc spelling/grammar fixes
Diego Biurrun [Thu, 24 Jul 2008 10:55:36 +0000 (10:55 +0000)]
misc spelling/grammar fixes

Originally committed as revision 14367 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove AltiVec vector declaration compiler compatibility macros.
Diego Biurrun [Thu, 24 Jul 2008 10:53:32 +0000 (10:53 +0000)]
Remove AltiVec vector declaration compiler compatibility macros.
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.

Originally committed as revision 14366 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoUse tkhd matrix for proper display in mov.
John Schmiederer [Thu, 24 Jul 2008 07:55:11 +0000 (07:55 +0000)]
Use tkhd matrix for proper display in mov.
Patch by John Schmiederer jschmiederer on2 com
Original thread: [PATCH] Use tkhd matrix for proper display in mov
Date: 05/23/2008 09:31 PM

Originally committed as revision 14365 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRename update() function to backward_filter() and add a doxy comment
Vitor Sessak [Thu, 24 Jul 2008 04:29:23 +0000 (04:29 +0000)]
Rename update() function to backward_filter() and add a doxy comment

Originally committed as revision 14364 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRename and comment bandwidth broadening tables
Vitor Sessak [Thu, 24 Jul 2008 04:15:50 +0000 (04:15 +0000)]
Rename and comment bandwidth broadening tables
(s/table1a/syn_bw_tab/, s/table2a/gain_bw_tab/).

Originally committed as revision 14363 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFollow FFmpeg convention of returning negative values on error in eval_lpc_coeffs()
Vitor Sessak [Thu, 24 Jul 2008 04:07:50 +0000 (04:07 +0000)]
Follow FFmpeg convention of returning negative values on error in eval_lpc_coeffs()

Originally committed as revision 14362 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRename pred() to eval_lpc_coeffs() and add a doxy comment
Vitor Sessak [Thu, 24 Jul 2008 04:05:41 +0000 (04:05 +0000)]
Rename pred() to eval_lpc_coeffs() and add a doxy comment

Originally committed as revision 14361 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoGive windowing tables a more descriptive name
Vitor Sessak [Thu, 24 Jul 2008 03:50:06 +0000 (03:50 +0000)]
Give windowing tables a more descriptive name
(s/table1/syn_window/, s/table2/gain_window/).

Originally committed as revision 14360 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAdd comments to do_hybrid_window()
Vitor Sessak [Thu, 24 Jul 2008 03:28:42 +0000 (03:28 +0000)]
Add comments to do_hybrid_window()

Originally committed as revision 14359 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoGive parameters of do_hybrid_window() more meaningful names
Vitor Sessak [Thu, 24 Jul 2008 03:28:01 +0000 (03:28 +0000)]
Give parameters of do_hybrid_window() more meaningful names

Originally committed as revision 14358 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRename co() function to the much more descriptive name of
Vitor Sessak [Thu, 24 Jul 2008 03:23:51 +0000 (03:23 +0000)]
Rename co() function to the much more descriptive name of
do_hybrid_window(). Also change a misleading and wrong comment.

Originally committed as revision 14357 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify co(): write constant in a more readable way
Vitor Sessak [Thu, 24 Jul 2008 03:22:19 +0000 (03:22 +0000)]
Simplify co(): write constant in a more readable way

Originally committed as revision 14356 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify co(), use memcpy/memmove and colmult() when useful.
Vitor Sessak [Thu, 24 Jul 2008 03:19:52 +0000 (03:19 +0000)]
Simplify co(), use memcpy/memmove and colmult() when useful.

Originally committed as revision 14355 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoReset prev_frame_num for idr frames as required by the spec.
Michael Niedermayer [Thu, 24 Jul 2008 00:45:18 +0000 (00:45 +0000)]
Reset prev_frame_num for idr frames as required by the spec.

Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoBetter explanation for buf_size==0 code.
Michael Niedermayer [Wed, 23 Jul 2008 17:24:11 +0000 (17:24 +0000)]
Better explanation for buf_size==0 code.

Originally committed as revision 14353 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSMPTE 421M Annex L (aka .rcv) muxer
Kostya Shishkov [Wed, 23 Jul 2008 17:06:40 +0000 (17:06 +0000)]
SMPTE 421M Annex L (aka .rcv) muxer

Originally committed as revision 14352 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years ago100l cross_idr simplification had a typo
Michael Niedermayer [Wed, 23 Jul 2008 14:59:55 +0000 (14:59 +0000)]
100l cross_idr simplification had a typo

Originally committed as revision 14351 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove truncated support, use an AVParser if you used that, it is the same.
Michael Niedermayer [Wed, 23 Jul 2008 14:44:07 +0000 (14:44 +0000)]
Remove truncated support, use an AVParser if you used that, it is the same.

Originally committed as revision 14350 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify cross_idr calculation.
Michael Niedermayer [Wed, 23 Jul 2008 14:37:15 +0000 (14:37 +0000)]
Simplify cross_idr calculation.

Originally committed as revision 14349 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoReduce the loglevel on a log message in the Nellymoser decoder. Related to Roundup...
Benjamin Larsson [Wed, 23 Jul 2008 12:21:56 +0000 (12:21 +0000)]
Reduce the loglevel on a log message in the Nellymoser decoder. Related to Roundup 447.

Originally committed as revision 14348 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove redundant keyframe checks.
Michael Niedermayer [Wed, 23 Jul 2008 11:24:04 +0000 (11:24 +0000)]
Remove redundant keyframe checks.

Originally committed as revision 14347 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoReindent after last commit
Luca Abeni [Wed, 23 Jul 2008 10:57:51 +0000 (10:57 +0000)]
Reindent after last commit

Originally committed as revision 14346 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDo not rescale AV_NOPTS_VALUE in output_example.c
Luca Abeni [Wed, 23 Jul 2008 10:56:56 +0000 (10:56 +0000)]
Do not rescale AV_NOPTS_VALUE in output_example.c

Originally committed as revision 14345 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoIn-loop deblocking filter for VC-1 decoder
Kostya Shishkov [Wed, 23 Jul 2008 06:21:27 +0000 (06:21 +0000)]
In-loop deblocking filter for VC-1 decoder

Originally committed as revision 14344 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMy commit at r14340 was not the right solution. For a monochromatic
Vitor Sessak [Wed, 23 Jul 2008 05:54:34 +0000 (05:54 +0000)]
My commit at r14340 was not the right solution. For a monochromatic
frame, there will be only one centroid and it will be impossible to
find three distinct ones. It is better to just avoid shifting if
there are not three different centroids.

Originally committed as revision 14343 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDo declaration and initialization separately in elbg.c
Vitor Sessak [Wed, 23 Jul 2008 03:56:13 +0000 (03:56 +0000)]
Do declaration and initialization separately in elbg.c
to workaround an ICC bug.

Originally committed as revision 14342 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoWhen picking a "high utility centroid" do not pick one
Vitor Sessak [Wed, 23 Jul 2008 03:55:37 +0000 (03:55 +0000)]
When picking a "high utility centroid" do not pick one
that has no corresponding points. Not only it is the
worst possible pick, but also the code was written
without this case in mind.

Originally committed as revision 14341 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoThe codebook generator algorithm involves picking three
Vitor Sessak [Wed, 23 Jul 2008 03:54:31 +0000 (03:54 +0000)]
The codebook generator algorithm involves picking three
different codebook centroids ("high utility", "low
utility" and "closest to the low utility one"). This
change avoid the corner case of choosing two times the
same centroid.

Originally committed as revision 14340 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSupport gaps in the frame num.
Michael Niedermayer [Wed, 23 Jul 2008 02:12:54 +0000 (02:12 +0000)]
Support gaps in the frame num.
Fixes at least:
MR3_TANDBERG_B.264
MR4_TANDBERG_C.264
MR5_TANDBERG_C.264

Originally committed as revision 14339 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoReset frame_num for MMCO 5.
Michael Niedermayer [Tue, 22 Jul 2008 19:30:45 +0000 (19:30 +0000)]
Reset frame_num for MMCO 5.
Fixes at least
MR2_TANDBERG_E.264

Originally committed as revision 14338 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years ago3rd try to get the loop filter ref/mv check working correctly.
Michael Niedermayer [Tue, 22 Jul 2008 17:44:36 +0000 (17:44 +0000)]
3rd try to get the loop filter ref/mv check working correctly.
Fixes at least:
src19td.IBP.264
CVWP3_TOSHIBA_E.264
cvmp_mot_picaff0_full_B.26l
CVMP_MOT_FRM_L31_B.26l
cvmp_mot_frm0_full_B.26l
CVMP_MOT_FLD_L30_B.26l
cvmp_mot_fld0_full_B.26l

Originally committed as revision 14337 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoqscale has a range of 0..51 we thus do not need a 256 entry table and neither need
Michael Niedermayer [Tue, 22 Jul 2008 13:01:10 +0000 (13:01 +0000)]
qscale has a range of 0..51 we thus do not need a 256 entry table and neither need
to and it with 0xFF.

Originally committed as revision 14336 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSetting chroma_qp to 0 for PCM blocks is really an interesting minor
Michael Niedermayer [Tue, 22 Jul 2008 12:31:48 +0000 (12:31 +0000)]
Setting chroma_qp to 0 for PCM blocks is really an interesting minor
optimization, more interresting would it have been had the author
thought about what value chroma_qp would have for the following MB.
Or failing that, had actually tested the code.
So this reverts this non-functional optimization, and makes the code work.
Fixes at least CAPM3_Sony_D.jsv

Originally committed as revision 14335 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDeobfusate chroma_qp_table[1] init code.
Michael Niedermayer [Tue, 22 Jul 2008 11:56:56 +0000 (11:56 +0000)]
Deobfusate chroma_qp_table[1] init code.

Originally committed as revision 14334 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoEnhance qblur and qcomp documentation.
tripp [Tue, 22 Jul 2008 07:20:17 +0000 (07:20 +0000)]
Enhance qblur and qcomp documentation.
Patch by tripp eliared yahoo com

Originally committed as revision 14333 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRevert r13542: Spatial direct mode probably also works with PAFF.
Carl Eugen Hoyos [Mon, 21 Jul 2008 22:46:47 +0000 (22:46 +0000)]
Revert r13542: Spatial direct mode probably also works with PAFF.

Originally committed as revision 14332 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoLoop filtering with multiple slice types fix.
Michael Niedermayer [Mon, 21 Jul 2008 22:19:06 +0000 (22:19 +0000)]
Loop filtering with multiple slice types fix.
Fixes at least:
CABAST3_Sony_E.jsv
CABASTBR3_Sony_A.jsv
CABASTBR3_Sony_B.jsv

Originally committed as revision 14331 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake configure --help document the --enable-debug option.
Stefano Sabatini [Mon, 21 Jul 2008 21:32:46 +0000 (21:32 +0000)]
Make configure --help document the --enable-debug option.

Originally committed as revision 14330 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAdd complete listing of bitstream filters and 2 examples to the documentation.
tripp [Mon, 21 Jul 2008 21:06:49 +0000 (21:06 +0000)]
Add complete listing of bitstream filters and 2 examples to the documentation.
patch by tripp, eliared yahoo com

Originally committed as revision 14329 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCorrect b_quant offset comment in avcodec.h, it is the description for
tripp [Mon, 21 Jul 2008 20:52:24 +0000 (20:52 +0000)]
Correct b_quant offset comment in avcodec.h, it is the description for
b_quant factor. patch by tripp, eliared yahoo com

Originally committed as revision 14328 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMove --disable-debug to a better place within configure help output.
Diego Biurrun [Mon, 21 Jul 2008 20:40:25 +0000 (20:40 +0000)]
Move --disable-debug to a better place within configure help output.

Originally committed as revision 14327 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoUse slice_type_nos instead of slice_type where it makes no difference.
Michael Niedermayer [Mon, 21 Jul 2008 19:11:41 +0000 (19:11 +0000)]
Use slice_type_nos instead of slice_type where it makes no difference.
This way we use slice_type_nos almost everywhere which means 1 variable less
for gcc to put in a register.

Originally committed as revision 14326 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSI/SP slice support. (not bitexact)
Michael Niedermayer [Mon, 21 Jul 2008 18:44:57 +0000 (18:44 +0000)]
SI/SP slice support. (not bitexact)
SI untested as I did not find any samples.

Originally committed as revision 14325 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove superfluous ().
Michael Niedermayer [Mon, 21 Jul 2008 18:26:11 +0000 (18:26 +0000)]
Remove superfluous ().

Originally committed as revision 14324 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify slice type checks.
Michael Niedermayer [Mon, 21 Jul 2008 18:24:45 +0000 (18:24 +0000)]
Simplify slice type checks.

Originally committed as revision 14323 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMore correct ref comparison in the loop filter.
Michael Niedermayer [Mon, 21 Jul 2008 18:06:23 +0000 (18:06 +0000)]
More correct ref comparison in the loop filter.

Originally committed as revision 14322 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agofix memleak
Michael Niedermayer [Mon, 21 Jul 2008 11:41:13 +0000 (11:41 +0000)]
fix memleak

Originally committed as revision 27332 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoCleanup, use av_freep() instead of av_free(x); x=NULL
Michael Niedermayer [Mon, 21 Jul 2008 11:18:24 +0000 (11:18 +0000)]
Cleanup, use av_freep() instead of av_free(x); x=NULL

Originally committed as revision 27331 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoCheck the allocated pointer instead of the given pointer as intended
Erik Hovland [Mon, 21 Jul 2008 05:46:56 +0000 (05:46 +0000)]
Check the allocated pointer instead of the given pointer as intended
in vhook/ppm.c:Configure.
patch by Erik Hovland, erik hovland org

Originally committed as revision 14321 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoClarify -minrate/-maxrate description in the documentation.
tripp [Mon, 21 Jul 2008 05:25:59 +0000 (05:25 +0000)]
Clarify -minrate/-maxrate description in the documentation.
patch by tripp, eliared yahoo com

Originally committed as revision 14320 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify spatial direct ref selection with FFMIN3()
Michael Niedermayer [Mon, 21 Jul 2008 01:41:56 +0000 (01:41 +0000)]
Simplify spatial direct ref selection with FFMIN3()

Originally committed as revision 14319 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: Make libavcodec/ppc/dsputil_altivec.c conform to style guidelines.
Diego Biurrun [Sun, 20 Jul 2008 20:56:40 +0000 (20:56 +0000)]
cosmetics: Make libavcodec/ppc/dsputil_altivec.c conform to style guidelines.
This includes indentation changes, comment reformatting, consistent brace
placement and some prettyprinting.

Originally committed as revision 14318 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: Reindent two misplaced braces.
Diego Biurrun [Sun, 20 Jul 2008 20:02:09 +0000 (20:02 +0000)]
cosmetics: Reindent two misplaced braces.

Originally committed as revision 14317 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetics: Reformat PPC code in libavcodec according to style guidelines.
Diego Biurrun [Sun, 20 Jul 2008 18:58:30 +0000 (18:58 +0000)]
cosmetics: Reformat PPC code in libavcodec according to style guidelines.
This includes indentation changes, comment reformatting, consistent brace
placement and some prettyprinting.

Originally committed as revision 14316 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix used references indexes in the loop filter.
Michael Niedermayer [Sun, 20 Jul 2008 18:06:41 +0000 (18:06 +0000)]
Fix used references indexes in the loop filter.
Disable filter_mb_fast() as it optimized the incorrect code.
Fixes at least:
BA3_SVA_C.264
CABA3_SVA_B.264
CABACI3_Sony_B.jsv
CAFI1_SVA_C.264
camp_mot_frm0_full.26l
CAWP5_TOSHIBA_E.264
CVFI2_SVA_C.264
CVSE3_Sony_H.jsv
CVWP2_TOSHIBA_E.264
CVWP5_TOSHIBA_E.264
SL1_SVA_B.264

Originally committed as revision 14315 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAdd skip* AVOptions, which seem to have been missed.
Michael Niedermayer [Sun, 20 Jul 2008 16:02:49 +0000 (16:02 +0000)]
Add skip* AVOptions, which seem to have been missed.

Originally committed as revision 14314 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDecrease severity of 'invalid new backstep' log message to warning
Andreas Öman [Sun, 20 Jul 2008 15:01:20 +0000 (15:01 +0000)]
Decrease severity of 'invalid new backstep' log message to warning
in mpeg audio decoder.

Originally committed as revision 14313 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSupply context argument to av_log() in mpeg audio decoder.
Andreas Öman [Sun, 20 Jul 2008 14:58:49 +0000 (14:58 +0000)]
Supply context argument to av_log() in mpeg audio decoder.

Originally committed as revision 14312 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoread 'coupling in use' parameter from bitstream into decoder context first,
Justin Ruggles [Sat, 19 Jul 2008 22:01:46 +0000 (22:01 +0000)]
read 'coupling in use' parameter from bitstream into decoder context first,
then copy to the local variable.

Originally committed as revision 14311 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix h264_loop_filter_strength_mmx2() so it works with PAFF.
Michael Niedermayer [Sat, 19 Jul 2008 21:53:54 +0000 (21:53 +0000)]
Fix h264_loop_filter_strength_mmx2() so it works with PAFF.
fixed at least:
CVFI1_Sony_D.jsv
CVFI1_SVA_C.264
MR6_BT_B.h264

Originally committed as revision 14310 to svn://svn.ffmpeg.org/ffmpeg/trunk