Michael Niedermayer
57288c4a06
Remove redundant h->mmco_index= 0.
...
Originally committed as revision 14386 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
5118c6c771
Assert that long_ref has been cleared for released pics.
...
Originally committed as revision 14385 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
849b9cef32
Clear long_ref when a frame is no longer a long_ref.
...
Originally committed as revision 14384 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
d9fe1749fc
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
17 years ago
Michael Niedermayer
9296f5d81a
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
17 years ago
Michael Niedermayer
357282c6f3
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
17 years ago
Michael Niedermayer
b78a6baaf1
Minor simplification of code in init_poc().
...
Originally committed as revision 14379 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
5710b37160
cosmetics (indent and 2 empty lines)
...
Originally committed as revision 14378 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
80f8e035ba
init_poc() vs. idr() cleanup
...
Originally committed as revision 14377 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
ac5057c2de
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
17 years ago
Diego Biurrun
1412060e78
misc spelling/grammar fixes
...
Originally committed as revision 14367 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
a149c1a59f
Reset prev_frame_num for idr frames as required by the spec.
...
Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
b4cf222870
Better explanation for buf_size==0 code.
...
Originally committed as revision 14353 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cf67f1655c
100l cross_idr simplification had a typo
...
Originally committed as revision 14351 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
f3ba9db42d
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
17 years ago
Michael Niedermayer
617e42e2c4
Simplify cross_idr calculation.
...
Originally committed as revision 14349 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
55f22dd473
Remove redundant keyframe checks.
...
Originally committed as revision 14347 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
26b86e47c0
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
17 years ago
Michael Niedermayer
e44e48372b
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
17 years ago
Michael Niedermayer
2e916cb392
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
17 years ago
Michael Niedermayer
5a78bfbde7
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
17 years ago
Michael Niedermayer
a82688b003
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
17 years ago
Michael Niedermayer
3a75616940
Deobfusate chroma_qp_table[1] init code.
...
Originally committed as revision 14334 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Carl Eugen Hoyos
6aaff88fd9
Revert r13542: Spatial direct mode probably also works with PAFF.
...
Originally committed as revision 14332 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
c32867b5b6
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
17 years ago
Michael Niedermayer
9f5c1037b1
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
17 years ago
Michael Niedermayer
4b30289ec9
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
17 years ago
Michael Niedermayer
932f396f50
Remove superfluous ().
...
Originally committed as revision 14324 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
e3e6f18f16
Simplify slice type checks.
...
Originally committed as revision 14323 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
72caa912f2
More correct ref comparison in the loop filter.
...
Originally committed as revision 14322 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
29d05ebc7a
Simplify spatial direct ref selection with FFMIN3()
...
Originally committed as revision 14319 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
41f5c62f5c
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
17 years ago
Michael Niedermayer
4f20b45fbe
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
17 years ago
Michael Niedermayer
fb19e1443b
Take the brain amputated spec literally if the user asks for it (-strict 1).
...
That is, add 16 frames delay, cache trashing and av desync.
fixes at least the following reference bitstreams:
CABA3_Sony_C.jsv
CACQP3_Sony_D.jsv
CAMANL1_TOSHIBA_B.264
CANL3_Sony_C.jsv
CVBS3_Sony_C.jsv
CVMANL1_TOSHIBA_B.264
Originally committed as revision 14308 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
2a811db238
Make the automatic has_b_frames increasing code increase it up to the
...
same maximum that can be achieved by specifying the value in the bitstream.
Originally committed as revision 14302 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
28bb9eb24b
Try to fix my latest 100l fate SVQ3 breakage.
...
Originally committed as revision 14300 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
801b27fa7c
Remove apparently unneeded out!=NULL check.
...
Originally committed as revision 14299 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
3eaa6d0e56
Simplify picture output code.
...
Originally committed as revision 14298 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
6b476f05e3
Remove useless #if 0 code.
...
Originally committed as revision 14297 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
7c0efeccfa
Do not forget marking disposed delayed pics as unused.
...
Fixes issue335
Originally committed as revision 14296 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
79f4494a04
indent
...
Originally committed as revision 14292 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
0ab515e935
simplify
...
Originally committed as revision 14291 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
df8a7dff29
Remove delayed_output_pic, I do not understand what this variable was good for.
...
It is simpler and might be faster now.
Originally committed as revision 14289 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
1b547abaa3
Drop out of order pics even if bitstream_restriction_flag is set.
...
Originally committed as revision 14288 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
197ea52443
Make frames non reference by default, so they are disposed of automatically
...
in MPV_frame_start() if we break out due to an error at a random place.
Fixes issue334
Originally committed as revision 14283 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
1d42f41091
indent
...
Originally committed as revision 14258 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
7a9dba3cd6
SVQ3 uses the JPEG variant of YUV 4:2:0.
...
Fixes issue256
Originally committed as revision 14257 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
64b9d48f76
Move the size of the H264Context delayed_pic array into a #define.
...
This improves readability by getting rid of some magic numbers.
Originally committed as revision 14248 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
e1f15d3836
H264: fix index range assert() in remove_short_at_index()
...
Originally committed as revision 14233 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jason Garrett-Glaser
3a8322b133
H264: Fix decoding with CABAC/delta_qp/PCM macroblocks.
...
Patch by Jason Garrett-Glaser (darkshikari gmail com)
Originally committed as revision 14160 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago