View Single Post
Old 23rd May 2006, 20:28   #3  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Usage examples

#deblocks on defaults, ...
source.SmoothDeblock()

#deblocks on density 4, ...
source.SmoothDeblock(density=4,wieghtMX="16center255border0smooth_1",gain=10,pregain=10, pregainoffset=0)

#deblocks on quant 5 density 2, ...
source.SmoothDeblockLayer(5,2,orig.AddBorders(16,16,0,0).WeightMatrixClip("04center255border0smooth_1"),WeightMatrixSum("04center255border0smooth_1"))

#shows which detail would be destroyed by DCTFilter on quant 4
qd4=source.QuantDiff(4)

# makes block oriented mask based on clip from previous function
qd4.AdaptionMask(10,0,10,"1","1 1 1 1 1")

# the higher following values the mor detail and blocking is kept
pregainoffset= default(pregainoffset,-1)
pregain= default(pregain,10)
gain= default(gain,5)
redfordxx is offline   Reply With Quote