Update of /cvsroot/dirac/compress/libdirac_common
In directory
sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv1153/libdirac_comm
on
Modified Files:
common.cpp
Log Message:
Introduced small codeblocks and removed cap on qf when
coding intra-only with CBR
Index: common.cpp
============================================================
=======
RCS file:
/cvsroot/dirac/compress/libdirac_common/common.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** common.cpp 31 Jan 2008 11:25:16 -0000 1.65
--- common.cpp 28 Feb 2008 11:58:20 -0000 1.66
***************
*** 555,579 ****
case VIDEO_FORMAT_DIGI_CINEMA_2K24:
case VIDEO_FORMAT_DIGI_CINEMA_4K24:
! if (ftype == INTRA_PICTURE)
! {
int depth = TransformDepth();
! for (int i = 1; i <= 2; ++i)
! {
SetCodeBlocks(i, 1, 1);
- }
- for (int i = 3; i <=depth; ++i)
- {
- SetCodeBlocks(i, 4, 3);
- }
}
! else
! {
! int level = TransformDepth();
! SetCodeBlocks(1, 1, 1);
! SetCodeBlocks(2, 8, 6);
! for (int i = 3; i <=level; ++i)
! {
! SetCodeBlocks(i, 12, 8);
! }
}
break;
--- 555,571 ----
case VIDEO_FORMAT_DIGI_CINEMA_2K24:
case VIDEO_FORMAT_DIGI_CINEMA_4K24:
! if (ftype == INTRA_PICTURE){
int depth = TransformDepth();
! for (int i=depth; i>=std::max(1,depth-1);
--i)
! SetCodeBlocks(i, OrigXl()/(24*2^(depth-i)),
OrigYl()/(24*2^(depth-i)));
! for (int i = 0; i<std::max(1,depth-1);
++i)
SetCodeBlocks(i, 1, 1);
}
! else{
! int depth = TransformDepth();
! for (int i=depth; i>=std::max(1,depth-3);
--i)
! SetCodeBlocks(i, OrigXl()/(24*2^(depth-i)),
OrigYl()/(24*2^(depth-i)));
! for (int i = 0; i<std::max(1,depth-3);
++i)
! SetCodeBlocks(i, 1, 1);
}
break;
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Dirac-commits mailing list
Dirac-commits lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dirac-com
mits
|