Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#21 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
IDEA: how about for 2x2 average(separately for each color - e.g. Y)? Code:
clip FitY2U UtoY Last edited by redfordxx; 18th March 2005 at 00:02. |
|
|
|
|
|
|
#22 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
Can't remember what is (I)DC Transformation... |
|
|
|
|
|
|
#23 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
almost means that some blocks look like: Code:
22222222 22222222 22222222 11111111 11111111 22222222 22222222 22222222 |
|
|
|
|
|
|
#24 | Link |
|
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,407
|
Aaaah ... yes, of course. DCTFilter(1,0,...) keeps the topmost line and leftmost row /*slaps forehead*/.
DCTFilterD(14) should do the job.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
|
|
|
|
|
#25 | Link |
|
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
So, if using YV12 colourspace then each 4 pixel block shares the same U and V data -yes?
So all thats needed is a 2x2 block averager of the Y plane - yes? regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
|
|
|
|
|
#26 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
But, what is interesting: Consequently I was experimenting with idct algo's using following script: Code:
LoadPlugin("C:\PROGRA~1\MULTIM~1\GORDIA~1\AviSynthPlugins\MaskTools.dll")
LoadPlugin("C:\PROGRA~1\MULTIM~1\GORDIA~1\AviSynthPlugins\dgdecode121.dll")
r=mpeg2source("D:\record\rip\lotr tt\1\tt1new.d2v", CPU=0, iDCT=4) # iDCT=4 is "Reference", right?!
r=r.trim(0,5000).crop(4,76,712,424)
d1=mpeg2source("D:\record\rip\lotr tt\1\tt1new.d2v", CPU=0, iDCT=1)
d1=d1.trim(0,5000).crop(4,76,712,424)
d2=mpeg2source("D:\record\rip\lotr tt\1\tt1new.d2v", CPU=0, iDCT=2)
d2=d2.trim(0,5000).crop(4,76,712,424)
d3=mpeg2source("D:\record\rip\lotr tt\1\tt1new.d2v", CPU=0, iDCT=3)
d3=d3.trim(0,5000).crop(4,76,712,424)
d7=mpeg2source("D:\record\rip\lotr tt\1\tt1new.d2v", CPU=0, iDCT=7)
d7=d7.trim(0,5000).crop(4,76,712,424)
s1=YV12Subtract(r,d1,Y=3,U=3,V=3)
s2=YV12Subtract(r,d2,Y=3,U=3,V=3)
s3=YV12Subtract(r,d3,Y=3,U=3,V=3)
s7=YV12Subtract(r,d7,Y=3,U=3,V=3)
StackHorizontal(Stackvertical(s1,s3),Stackvertical(s2,s7)).ColorYUV(cont_y=2048,cont_u=2048,cont_v=2048)
BTW: Although 4=reference, I tend to like 3 more... Last edited by redfordxx; 22nd March 2005 at 00:14. |
|
|
|
|
|
|
#27 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
|
|
|
|
|
|
|
#28 | Link |
|
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
Its a question
I think what you want can be simply acheived by a simple average of the 4 bytes that make up the [EDIT] 2x2 [/EDIT] pixel block of a Y plane in a YV12 image. But I didn't want to code it up if it wasn't that easy. I'm not called Simple Si for nothing regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html Last edited by Si; 27th March 2005 at 21:51. |
|
|
|
|
|
#29 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
... for this "simple average" I got many answers --- all wrong but the one by Didée: DEdgeMask |
|
|
|
|
|
|
#30 | Link |
|
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
I finally knocked up a simple filter (BlockAverage) to see if this does what you originally expecting/wanted.
regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
|
|
|
|
|
#31 | Link | |
|
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
|
|
|
|
|
![]() |
|
|