[xiph-commits] r15548 - branches/theora-thusnelda/lib/enc
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Mon Dec 1 23:22:59 PST 2008
Author: xiphmont
Date: 2008-12-01 23:22:58 -0800 (Mon, 01 Dec 2008)
New Revision: 15548
Modified:
branches/theora-thusnelda/lib/enc/frarray.c
Log:
Projected cost was yielding significantly inferior results to opportunity
cost in bitrate optimization.
Modified: branches/theora-thusnelda/lib/enc/frarray.c
===================================================================
--- branches/theora-thusnelda/lib/enc/frarray.c 2008-12-01 23:24:45 UTC (rev 15547)
+++ branches/theora-thusnelda/lib/enc/frarray.c 2008-12-02 07:22:58 UTC (rev 15548)
@@ -400,13 +400,9 @@
int cost;
fr_skipblock(NULL,&temp);
- fr_finishsb(NULL,&temp);
- fr_flush(NULL,&temp);
cost=temp.cost;
temp=*fr;
fr_codeblock(NULL,&temp);
- fr_finishsb(NULL,&temp);
- fr_flush(NULL,&temp);
return temp.cost - cost;
}
@@ -419,10 +415,8 @@
fr_skipblock(NULL,&temp);
fr_skipblock(NULL,&temp);
fr_finishsb(NULL,&temp);
- fr_flush(NULL,&temp);
cost=temp.cost;
temp=*post;
fr_finishsb(NULL,&temp);
- fr_flush(NULL,&temp);
return temp.cost - cost;
}
More information about the commits
mailing list