Update of /cvsroot/dirac/compress/libdirac_common
In directory
sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv10266/libdirac_com
mon
Modified Files:
common.cpp common.h common_types.h
Log Message:
Added support for various forms of prefiltering.
Prefiltering using rectangular, diagonal or centre-weighted
median filtering
is now available as a command-line option. Rectangular and
diagonal low-pass
filtering are both adaptive, with strength determined by the
QF and also a
strength parameter added on the command line.
Centre-weighted median filtering
is non-adaptive, but adjusts the centre weight according to
the strength parameter.
Usage is :
dirac_encoder ... -prefilter FILTER_NAME n ....
where FILTER_NAME is one of NO_PF, CWM, RECTLP, DIAGLP and n
is from 0 to 10.
NO_PF means no prefilter.
Index: common_types.h
============================================================
=======
RCS file:
/cvsroot/dirac/compress/libdirac_common/common_types.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** common_types.h 31 Jan 2008 11:25:16 -0000 1.16
--- common_types.h 29 Apr 2008 14:09:35 -0000 1.17
***************
*** 71,74 ****
--- 71,83 ----
} WltFilter;
+ /*! Enumerated type that defines prefiltering types
supported by the
+ encoder. */
+ typedef enum
+ {
+ NO_PF = 0,
+ DIAGLP,
+ RECTLP,
+ CWM
+ } PrefilterType;
static const int NUM_WLT_FILTERS = 8;
Index: common.cpp
============================================================
=======
RCS file:
/cvsroot/dirac/compress/libdirac_common/common.cpp,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** common.cpp 29 Apr 2008 08:51:52 -0000 1.68
--- common.cpp 29 Apr 2008 14:09:35 -0000 1.69
***************
*** 476,480 ****
m_ufactor(1.0),
m_vfactor(1.0),
! m_denoise(false),
m_I_lambda(0.0f),
m_L1_lambda(0.f),
--- 476,481 ----
m_ufactor(1.0),
m_vfactor(1.0),
! m_prefilter(NO_PF),
! m_prefilter_strength(0),
m_I_lambda(0.0f),
m_L1_lambda(0.f),
Index: common.h
============================================================
=======
RCS file:
/cvsroot/dirac/compress/libdirac_common/common.h,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** common.h 29 Apr 2008 08:51:52 -0000 1.73
--- common.h 29 Apr 2008 14:09:35 -0000 1.74
***************
*** 1357,1362 ****
float CPD() const {return m_cpd;}
! //! Return whether input denoising is on or off
! bool Denoise() const {return m_denoise;}
//! Return the Lagrangian parameter to be used for
I pictures
--- 1357,1365 ----
float CPD() const {return m_cpd;}
! //! Return what prefiltering is in place
! PrefilterType Prefilter() const {return
m_prefilter;}
!
! //! Return the prefiltering strength
! int PrefilterStrength() const {return
m_prefilter_strength;}
//! Return the Lagrangian parameter to be used for
I pictures
***************
*** 1437,1443 ****
void SetCPD(const float cpd){m_cpd=cpd;}
-
//! Set denoising value - true or false
! void SetDenoise(const bool
denoise){m_denoise=denoise;}
//! Set the output path to be used for diagnostic
data
--- 1440,1446 ----
void SetCPD(const float cpd){m_cpd=cpd;}
//! Set denoising value - true or false
! void SetPrefilter(const PrefilterType pf, const
int str){m_prefilter=pf;
!
m_prefilter_strength=str;}
//! Set the output path to be used for diagnostic
data
***************
*** 1509,1514 ****
float m_cpd;
! //! Flag indicating input denoising
! bool m_denoise;
//! Lagrangian parameter for Intra picture coding
--- 1512,1520 ----
float m_cpd;
! //! Indicator for prefiltering
! PrefilterType m_prefilter;
!
! //! Prefiltering strength
! int m_prefilter_strength;
//! Lagrangian parameter for Intra picture coding
------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
Don't miss this year's exciting event. There's still time to
save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Dirac-commits mailing list
Dirac-commits lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dirac-com
mits
|