[svn] / branches / dev-api-4 / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Log of /branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 1267 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 17 15:16:16 2003 UTC (20 years, 3 months ago) by edgomez
File length: 46926 byte(s)
Diff to previous 1247 , to selected 1053
* Two pass update (see patch-141 entry for more details)
* vfw AR widget + typo mistake

Revision 1247 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 8 12:38:04 2003 UTC (20 years, 3 months ago) by syskin
File length: 45479 byte(s)
Diff to previous 1246 , to selected 1053
fixed crash when statsfile is too short

Revision 1246 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 7 15:08:15 2003 UTC (20 years, 3 months ago) by edgomez
File length: 45366 byte(s)
Diff to previous 1242 , to selected 1053
Big file handling.

Revision 1242 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 14:44:35 2003 UTC (20 years, 3 months ago) by edgomez
File length: 45354 byte(s)
Diff to previous 1219 , to selected 1053
See ChangeLog patch-120 to patch-123

Revision 1219 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 15:59:41 2003 UTC (20 years, 4 months ago) by edgomez
File length: 46188 byte(s)
Diff to previous 1217 , to selected 1053
new XVID_PLG_FRAME hook handling

Revision 1217 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 15:42:39 2003 UTC (20 years, 4 months ago) by edgomez
File length: 46165 byte(s)
Diff to previous 1204 , to selected 1053
The reversing bframe formula in 2pass 2 was not right. This was in fact
a test code i used when i was maintaining the code on its own branch.
I should not have commited it :\

Revision 1204 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 13 22:35:30 2003 UTC (20 years, 4 months ago) by edgomez
File length: 46161 byte(s)
Diff to previous 1202 , to selected 1053
* encoder.c: GMC code fix in encoder.c. Now gmcval is initialized
  correctly when using GME.
* xvid_decraw.c: Fix elementary stream output.
* plugin_2pass2.c: Small parsing bug in stats reading in 2pass2.
* decoder.c: Read resync markers in bframes.

Revision 1202 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 9 20:49:21 2003 UTC (20 years, 4 months ago) by edgomez
File length: 46169 byte(s)
Diff to previous 1161 , to selected 1053
New two pass code. I may say it's just a fixed version, though it looks
more like a "take all the ideas and write it again" version. It performs
better with all natural sequences i have and a bit worse with anime.

Including it now, allow me improving the code during the beta releases.

Revision 1161 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 1 23:23:01 2003 UTC (20 years, 6 months ago) by edgomez
File length: 29705 byte(s)
Diff to previous 1064 , to selected 1053
removed trailing spaces

Revision 1064 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 10 20:47:29 2003 UTC (20 years, 9 months ago) by edgomez
File length: 29710 byte(s)
Diff to previous 1063 , to selected 1053
Cosmetic (applied CodingSytle/we must use tabs)

Revision 1063 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 10 10:12:24 2003 UTC (20 years, 9 months ago) by suxen_drol
File length: 30829 byte(s)
Diff to previous 1054 , to selected 1053
plugin_2pass2.c: arbitary target size (when bitrate is negative)

Revision 1054 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 9 13:55:56 2003 UTC (20 years, 9 months ago) by edgomez
File length: 30665 byte(s)
Diff to previous 1053
Added legal header

Revision 1053 - (view) (download) (annotate) - [selected]
Modified Mon Jun 9 01:25:19 2003 UTC (20 years, 9 months ago) by edgomez
File length: 30646 byte(s)
Diff to previous 1051
ISO C89 comment style

Revision 1051 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 29 14:18:18 2003 UTC (20 years, 10 months ago) by edgomez
File length: 30634 byte(s)
Diff to previous 1050 , to selected 1053
Simplified equations.

Scaling was needed because of the non linear formulas used in AltCC but
now we can directly use avg_length[s->type-1] instead of "first prescaling
bframes to pframes lengths then use pframe stats and at last prescaling back
frame length to bframe lengths"

See my new XXX: question about the overflow.

Revision 1050 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 29 13:53:17 2003 UTC (20 years, 10 months ago) by edgomez
File length: 31949 byte(s)
Diff to previous 1049 , to selected 1053
Force frame type during the second pass.

Revision 1049 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 29 12:38:44 2003 UTC (20 years, 10 months ago) by edgomez
File length: 31901 byte(s)
Diff to previous 1048 , to selected 1053
I read VFW and noticed that min_length was supposed to be:
  min{hard coded length, min{observed lengths}}

Revision 1048 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 29 11:37:20 2003 UTC (20 years, 10 months ago) by edgomez
File length: 31621 byte(s)
Diff to previous 1047 , to selected 1053
- Some comment changes
- bquant_error and pquant_error have been replaced by an array
  quant_error[3][32] indexed by frame type and quantizer value.
- Moved some initialization stuff

Revision 1047 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 29 10:36:41 2003 UTC (20 years, 10 months ago) by edgomez
File length: 31431 byte(s)
Diff to previous 1046 , to selected 1053
After reading VFW code, i found out that it was using the blocks stats
fields  to  retrieve  the number  of  MBs  in  a  frame. So  all  this
min_size[]  was  not meant  to  discover  a  min_size for  each  frame
according to  its intra  MBs but rather  an hardcoded minimum  for all
frames as advertised in earlier  cvs revisions.  It would be easier if
original code was commented :-(

Revision 1046 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 29 10:19:35 2003 UTC (20 years, 10 months ago) by edgomez
File length: 31194 byte(s)
Diff to previous 1043 , to selected 1053
Removed Alt curve treatment

Revision 1043 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 24 22:03:50 2003 UTC (20 years, 10 months ago) by edgomez
File length: 42113 byte(s)
Diff to previous 1042 , to selected 1053
Added frame type to the debug output. It makes clear that
bframe quantizers are too high compared to their reference
frames' quantizer.

Revision 1042 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 24 21:22:18 2003 UTC (20 years, 10 months ago) by edgomez
File length: 42028 byte(s)
Diff to previous 1041 , to selected 1053
- function ordering changes
- mimimum frame lengths in internal_scale() are now computed for each
  frame, i don't know why these values where computed with the first
  frame values only.

Revision 1041 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 22 22:57:54 2003 UTC (20 years, 10 months ago) by edgomez
File length: 38573 byte(s)
Diff to previous 1040 , to selected 1053
Added container_frame_overhead field to the 2pass2 plugin

Revision 1040 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 22 22:17:44 2003 UTC (20 years, 10 months ago) by edgomez
File length: 38324 byte(s)
Diff to previous 1038 , to selected 1053
Fixes an overflow bug in target filesize calculation, adds some more debug output

Revision 1038 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 22 16:36:07 2003 UTC (20 years, 10 months ago) by edgomez
File length: 37381 byte(s)
Diff to previous 1037 , to selected 1053
Removed this annoying \n from DPRINTF output. DPRINTF behaves
now like usual printf.

Just for fun, i decided to exercice my regexp skills:

for i in `find . -name "*.c"` ; do
     sed s/'\(DPRINTF(XVID_DEBUG.*\)"\([^"]\+[^\\][^n]\)"\(.*\)$'/'\1"\2\\n"\3'/g $i > $i.tmp;
     mv $i.tmp $i
done

Nice isn't it ? It just adds a \n to every DPRINTF call that
was relying on old behavior (automatic trailing \n).

Revision 1037 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 22 10:57:33 2003 UTC (20 years, 10 months ago) by edgomez
File length: 37369 byte(s)
Diff to previous 1036 , to selected 1053
Cleaned up a bit, lot of coments added to ease the comprehension of the
algorithm.

Revision 1036 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 20 17:28:25 2003 UTC (20 years, 10 months ago) by edgomez
File length: 35669 byte(s)
Diff to previous 1032 , to selected 1053
Fixed a stupid typo mistake that was preventing everyone from using internal scaling.

Revision 1032 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 17 13:37:49 2003 UTC (20 years, 10 months ago) by suxen_drol
File length: 35656 byte(s)
Diff to previous 1030 , to selected 1053
* dynamic bvop decision stats bug fixed
* added runtime debug level option. this only only activated when _DEBUG is defined.
  level is specified globaly, via "xvid_glb_init_t.debug" and XVID_DEBUG_xxx defines.
  references to previous DPRINTF_LEVEL_xxx's have been replaced throughout libxvidcore
* futher bitrate zone fixes for plugin_2pass2.c
* removed old ratecontrol.c from msvc project
* xvid_encraw.c specifc:
  * added "-max_key_interval integer" option
  * renamed -debug to -vop_debug
  * added "-debug integer" option, which sets xvid_gbl_init_t.debug field
  * s/length/len/ status line
* vfw specific:
  * zone/bitrate typos fixed ("you eediot")
  * renamed "debug" regkey to "vop_debug"
  * added "debug" regeky and textbox which sets xvid_gbl_init_t.debug field

Revision 1030 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 16 17:19:51 2003 UTC (20 years, 10 months ago) by suxen_drol
File length: 35311 byte(s)
Diff to previous 1014 , to selected 1053
2pass2 zone support; zone weights are now used to scale curve internally.

Revision 1014 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 12 12:33:16 2003 UTC (20 years, 10 months ago) by suxen_drol
File length: 35669 byte(s)
Diff to previous 977 , to selected 1053
zones, profiles, vfw changes

Revision 977 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 8 14:01:35 2003 UTC (20 years, 11 months ago) by suxen_drol
File length: 36078 byte(s)
Diff to previous 942 , to selected 1053
2pass2 (basic) internal scaler

Revision 942 - (view) (download) (annotate) - [select for diffs]
Added Tue Mar 25 11:01:48 2003 UTC (21 years ago) by suxen_drol
File length: 34109 byte(s)
Diff to selected 1053
2pass2

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4