[cvs] / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Log of /xvidcore/src/plugins/plugin_2pass2.c

Parent Directory Parent Directory


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

Revision 1.10.2.1 - (view) (download) (annotate) - [select for diffs]
Tue Dec 28 19:19:57 2010 UTC (8 years, 7 months ago) by Isibaar
Branch: release-1_3-branch
CVS Tags: rc1_1_3_0, release-1_3_0, release-1_3_1
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 , to next main 1.11
get rid off compiler warnings

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Tue Dec 28 19:19:43 2010 UTC (8 years, 7 months ago) by Isibaar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +4 -4 lines
Diff to previous 1.10
get rid off compiler warnings

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Nov 16 14:42:07 2010 UTC (8 years, 9 months ago) by Isibaar
Branch: MAIN
CVS Tags: tag-branching-1_3_0
Branch point for: release-1_3-branch
Changes since 1.9: +16 -16 lines
Diff to previous 1.9
Clean-up for vbv_peakrate handling (many thanks to Lasse Collin)

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Mar 9 10:00:14 2010 UTC (9 years, 5 months ago) by Isibaar
Branch: MAIN
Changes since 1.8: +10 -5 lines
Diff to previous 1.8
app-level multi-threading for xvid_encraw

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Wed Jul 1 09:25:38 2009 UTC (10 years, 1 month ago) by Isibaar
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7
Additional sanity check when reading stats file

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Mar 27 03:59:42 2005 UTC (14 years, 4 months ago) by suxen_drol
Branch: MAIN
CVS Tags: release-1_1_0, release-1_1_0_final, release-1_1_1-final, release-1_1_2, release-1_1_3, release-1_1_3-final, release-1_2_0, release-1_2_2, tag-branching-1_2_0
Branch point for: release-1_1-branch, release-1_2-branch
Changes since 1.6: +7 -6 lines
Diff to previous 1.6
xvidcore
========
* added XVID_GLOBAL_DIVX5_USERDATA global flag
* removed the bvop delay warning text ("warning: nothing to output), as this often confuses joe user.
* minor changed to closed gop image_printf statement: s/"DX50 BVOP->PVOP"/"CLOSED GOP BVOP->PVOP"
* additional comments for low_delay_default mode within decoder_decode()
* divx userdata string: s/DivX999b000/DivX503b1393. this has been suggested by dxn for improved hardware compatibility [nb: i dont have a hardware player to confirm this]
* vbv_peakrate constraint is ignored if <= 0

vfw frontend
============
* dxn profiles now confirm to "DivX Certified Profile Compatibility v1.1", February 2005. this document was provided by DivXNetworks, USA. when a dxn profile is selected, strict conformance is enabled:
  - force 1:1 picture aspect ratio
  - disable bframes if interlacing is enabled
  - force maximum of 1 consecutive bvops for the portable and ht profiles, 2 bvops for the hd profile
  - always write divx 5 userdata string to bitstream
  - force packed bitstream option
  - updated dxn vbv parameters
* added PROFILE_4MV flag. 4mv is now disabled for the dxn handheld profile.
* moved PROFILE_AS/PROFILE_ARTS/PROFILE_S to config.c
* profile[].max_bitrate now measured in bit/sec (not kbps)
* profile->level box: widgets are now greyed-out if they are not used.
* increase vertical size of profile drop down list.
* about box button: s/Dismiss/OK

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sun Jan 9 20:26:42 2005 UTC (14 years, 7 months ago) by edgomez
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5
Fixes merged from my branch

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sat Jun 12 13:53:19 2004 UTC (15 years, 2 months ago) by edgomez
Branch: MAIN
Changes since 1.4: +287 -296 lines
Diff to previous 1.4
Coding style + DPRINTF

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Fri Jun 11 08:44:30 2004 UTC (15 years, 2 months ago) by suxen_drol
Branch: MAIN
Changes since 1.3: +28 -3 lines
Diff to previous 1.3
1.1.0 versioning rules for vbv
msvc compile time error

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Thu Jun 10 18:13:42 2004 UTC (15 years, 2 months ago) by chl
Branch: MAIN
Changes since 1.2: +332 -2 lines
Diff to previous 1.2
Initial version of VBV support, activate in 2pass by setting vbv_size!=0

Revision 1.1.2.38 - (view) (download) (annotate) - [select for diffs]
Sun May 9 14:00:35 2004 UTC (15 years, 3 months ago) by chl
Branch: dev-api-4
Changes since 1.1.2.37: +343 -2 lines
Diff to previous 1.1.2.37 , to branch point 1.1 , to next main 1.11
VBV check and scaling for 2nd-pass of twopass
enable by defining VBV macro and setting rcparam->vbvsize nonzero

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Mar 22 22:36:24 2004 UTC (15 years, 4 months ago) by edgomez
Branch: MAIN
CVS Tags: release-1_0_0, release-1_0_1, release-1_0_2, release-1_0_3
Branch point for: release-1_0-branch
Changes since 1.1: +1509 -0 lines
Diff to previous 1.1
xvidcore 1.0.0 rc3 merge back to HEAD

Revision 1.1.2.37 - (view) (download) (annotate) - [select for diffs]
Sat Jan 31 14:51:56 2004 UTC (15 years, 6 months ago) by syskin
Branch: dev-api-4
Changes since 1.1.2.36: +24 -1 lines
Diff to previous 1.1.2.36 , to branch point 1.1
automatically adjusts settings to fight most common problems

Revision 1.1.2.36 - (view) (download) (annotate) - [select for diffs]
Thu Jan 22 20:54:31 2004 UTC (15 years, 6 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.35: +7 -12 lines
Diff to previous 1.1.2.35 , to branch point 1.1
unitialized reads -- wasn't hurting anyway

Revision 1.1.2.35 - (view) (download) (annotate) - [select for diffs]
Wed Jan 21 06:59:23 2004 UTC (15 years, 7 months ago) by syskin
Branch: dev-api-4
Changes since 1.1.2.34: +2 -3 lines
Diff to previous 1.1.2.34 , to branch point 1.1
a small fix related to 2nd pass bigger than 1st pass

Revision 1.1.2.34 - (view) (download) (annotate) - [select for diffs]
Wed Jan 7 13:51:24 2004 UTC (15 years, 7 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.33: +39 -59 lines
Diff to previous 1.1.2.33 , to branch point 1.1
Scaled zones

Revision 1.1.2.33 - (view) (download) (annotate) - [select for diffs]
Sun Dec 21 17:38:17 2003 UTC (15 years, 8 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.32: +13 -3 lines
Diff to previous 1.1.2.32 , to branch point 1.1
Fixed frame type in quant zones and added some comments

Revision 1.1.2.32 - (view) (download) (annotate) - [select for diffs]
Sun Dec 21 12:41:48 2003 UTC (15 years, 8 months ago) by syskin
Branch: dev-api-4
Changes since 1.1.2.31: +14 -5 lines
Diff to previous 1.1.2.31 , to branch point 1.1
second pass can now be bigger than first

Revision 1.1.2.31 - (view) (download) (annotate) - [select for diffs]
Wed Dec 17 15:16:16 2003 UTC (15 years, 8 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.30: +69 -40 lines
Diff to previous 1.1.2.30 , to branch point 1.1
* Two pass update (see patch-141 entry for more details)
* vfw AR widget + typo mistake

Revision 1.1.2.30 - (view) (download) (annotate) - [select for diffs]
Mon Dec 8 12:38:04 2003 UTC (15 years, 8 months ago) by syskin
Branch: dev-api-4
Changes since 1.1.2.29: +9 -5 lines
Diff to previous 1.1.2.29 , to branch point 1.1
fixed crash when statsfile is too short

Revision 1.1.2.29 - (view) (download) (annotate) - [select for diffs]
Sun Dec 7 15:08:15 2003 UTC (15 years, 8 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.28: +1 -1 lines
Diff to previous 1.1.2.28 , to branch point 1.1
Big file handling.

Revision 1.1.2.28 - (view) (download) (annotate) - [select for diffs]
Fri Dec 5 14:44:35 2003 UTC (15 years, 8 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.27: +8 -30 lines
Diff to previous 1.1.2.27 , to branch point 1.1
See ChangeLog patch-120 to patch-123

Revision 1.1.2.27 - (view) (download) (annotate) - [select for diffs]
Wed Nov 19 15:59:41 2003 UTC (15 years, 9 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.26: +1 -0 lines
Diff to previous 1.1.2.26 , to branch point 1.1
new XVID_PLG_FRAME hook handling

Revision 1.1.2.26 - (view) (download) (annotate) - [select for diffs]
Wed Nov 19 15:42:39 2003 UTC (15 years, 9 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.25: +1 -1 lines
Diff to previous 1.1.2.25 , to branch point 1.1
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 1.1.2.25 - (view) (download) (annotate) - [select for diffs]
Thu Nov 13 22:35:30 2003 UTC (15 years, 9 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.24: +8 -10 lines
Diff to previous 1.1.2.24 , to branch point 1.1
* 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 1.1.2.24 - (view) (download) (annotate) - [select for diffs]
Sun Nov 9 20:49:21 2003 UTC (15 years, 9 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.23: +858 -385 lines
Diff to previous 1.1.2.23 , to branch point 1.1
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 1.1.2.23 - (view) (download) (annotate) - [select for diffs]
Wed Oct 1 23:23:01 2003 UTC (15 years, 10 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.22: +6 -6 lines
Diff to previous 1.1.2.22 , to branch point 1.1
removed trailing spaces

Revision 1.1.2.22 - (view) (download) (annotate) - [select for diffs]
Tue Jun 10 20:47:29 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.21: +238 -241 lines
Diff to previous 1.1.2.21 , to branch point 1.1
Cosmetic (applied CodingSytle/we must use tabs)

Revision 1.1.2.21 - (view) (download) (annotate) - [select for diffs]
Tue Jun 10 10:12:24 2003 UTC (16 years, 2 months ago) by suxen_drol
Branch: dev-api-4
Changes since 1.1.2.20: +6 -2 lines
Diff to previous 1.1.2.20 , to branch point 1.1
plugin_2pass2.c: arbitary target size (when bitrate is negative)

Revision 1.1.2.20 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 13:55:07 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.19: +24 -24 lines
Diff to previous 1.1.2.19 , to branch point 1.1
Added legal header

Revision 1.1.2.19 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 01:22:58 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.18: +5 -5 lines
Diff to previous 1.1.2.18 , to branch point 1.1
ISO C89 comment style

Revision 1.1.2.18 - (view) (download) (annotate) - [select for diffs]
Thu May 29 14:18:18 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.17: +23 -56 lines
Diff to previous 1.1.2.17 , to branch point 1.1
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 1.1.2.17 - (view) (download) (annotate) - [select for diffs]
Thu May 29 13:53:17 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.16: +4 -1 lines
Diff to previous 1.1.2.16 , to branch point 1.1
Force frame type during the second pass.

Revision 1.1.2.16 - (view) (download) (annotate) - [select for diffs]
Thu May 29 12:38:44 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.15: +15 -7 lines
Diff to previous 1.1.2.15 , to branch point 1.1
I read VFW and noticed that min_length was supposed to be:
  min{hard coded length, min{observed lengths}}

Revision 1.1.2.15 - (view) (download) (annotate) - [select for diffs]
Thu May 29 11:37:20 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.14: +170 -146 lines
Diff to previous 1.1.2.14 , to branch point 1.1
- 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 1.1.2.14 - (view) (download) (annotate) - [select for diffs]
Thu May 29 10:36:41 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.13: +13 -11 lines
Diff to previous 1.1.2.13 , to branch point 1.1
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 1.1.2.13 - (view) (download) (annotate) - [select for diffs]
Thu May 29 10:19:35 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.12: +13 -253 lines
Diff to previous 1.1.2.12 , to branch point 1.1
Removed Alt curve treatment

Revision 1.1.2.12 - (view) (download) (annotate) - [select for diffs]
Sat May 24 22:03:50 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.11: +5 -3 lines
Diff to previous 1.1.2.11 , to branch point 1.1
Added frame type to the debug output. It makes clear that
bframe quantizers are too high compared to their reference
frames' quantizer.

Revision 1.1.2.11 - (view) (download) (annotate) - [select for diffs]
Sat May 24 21:22:18 2003 UTC (16 years, 2 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.10: +943 -868 lines
Diff to previous 1.1.2.10 , to branch point 1.1
- 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 1.1.2.10 - (view) (download) (annotate) - [select for diffs]
Thu May 22 22:56:22 2003 UTC (16 years, 3 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.9: +5 -5 lines
Diff to previous 1.1.2.9 , to branch point 1.1
Added container_frame_overhead field to the 2pass2 plugin

Revision 1.1.2.9 - (view) (download) (annotate) - [select for diffs]
Thu May 22 22:17:44 2003 UTC (16 years, 3 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.8: +53 -20 lines
Diff to previous 1.1.2.8 , to branch point 1.1
Fixes an overflow bug in target filesize calculation, adds some more debug output

Revision 1.1.2.8 - (view) (download) (annotate) - [select for diffs]
Thu May 22 16:36:07 2003 UTC (16 years, 3 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.7: +7 -7 lines
Diff to previous 1.1.2.7 , to branch point 1.1
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 1.1.2.7 - (view) (download) (annotate) - [select for diffs]
Thu May 22 10:57:33 2003 UTC (16 years, 3 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.6: +322 -230 lines
Diff to previous 1.1.2.6 , to branch point 1.1
Cleaned up a bit, lot of coments added to ease the comprehension of the
algorithm.

Revision 1.1.2.6 - (view) (download) (annotate) - [select for diffs]
Tue May 20 17:28:25 2003 UTC (16 years, 3 months ago) by edgomez
Branch: dev-api-4
Changes since 1.1.2.5: +6 -5 lines
Diff to previous 1.1.2.5 , to branch point 1.1
Fixed a stupid typo mistake that was preventing everyone from using internal scaling.

Revision 1.1.2.5 - (view) (download) (annotate) - [select for diffs]
Sat May 17 13:36:38 2003 UTC (16 years, 3 months ago) by suxen_drol
Branch: dev-api-4
Changes since 1.1.2.4: +32 -31 lines
Diff to previous 1.1.2.4 , to branch point 1.1
* 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 1.1.2.4 - (view) (download) (annotate) - [select for diffs]
Fri May 16 17:19:51 2003 UTC (16 years, 3 months ago) by suxen_drol
Branch: dev-api-4
Changes since 1.1.2.3: +389 -430 lines
Diff to previous 1.1.2.3 , to branch point 1.1
2pass2 zone support; zone weights are now used to scale curve internally.

Revision 1.1.2.3 - (view) (download) (annotate) - [select for diffs]
Mon May 12 12:33:16 2003 UTC (16 years, 3 months ago) by suxen_drol
Branch: dev-api-4
Changes since 1.1.2.2: +5 -11 lines
Diff to previous 1.1.2.2 , to branch point 1.1
zones, profiles, vfw changes

Revision 1.1.2.2 - (view) (download) (annotate) - [select for diffs]
Tue Apr 8 14:01:09 2003 UTC (16 years, 4 months ago) by suxen_drol
Branch: dev-api-4
Changes since 1.1.2.1: +161 -67 lines
Diff to previous 1.1.2.1 , to branch point 1.1
2pass2 (basic) internal scaler

Revision 1.1.2.1 - (view) (download) (annotate) - [select for diffs]
Tue Mar 25 10:58:33 2003 UTC (16 years, 4 months ago) by suxen_drol
Branch: dev-api-4
Changes since 1.1: +994 -0 lines
Diff to previous 1.1
2pass2

Revision 1.1
Tue Mar 25 10:58:33 2003 UTC (16 years, 4 months ago) by suxen_drol
Branch: MAIN
Branch point for: dev-api-4
FILE REMOVED
file plugin_2pass2.c was initially added on branch dev-api-4.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and 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