NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 93 Next »
GBPVRLibrary - Open Source Components

 
  • 0 Vote(s) - 0 Average
GBPVRLibrary - Open Source Components
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#41
2008-12-27, 03:48 AM (This post was last modified: 2008-12-27, 08:21 AM by whurlston.)
If you want to play with it before I commit it, here is the CS file so far. It's very raw but you can see what it does. The methods still have the color parameter but they end up being ignored, so just remove it or use any color. And it's using FadeImage2 to create the fade at the moment. FadeImage2 will end up being FadeImage when I commit of course. I'm about to start working on the cleanup so I can commit but I'm a slow typer. Wink

edit: removed attachment - now committed to svn
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#42
2008-12-27, 08:20 AM
Modified image transforms committed. Added a few extra methods. Fades are now properly done. Diagonal fades are not yet possible with the new code.

BTW: UtilityLibrary.csproj file is missing from the svn. I created one myself but since I'm new to SVN, I decided not to upload it just in case.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#43
2008-12-27, 08:36 AM
whurlston Wrote:Modified image transforms committed. Added a few extra methods. Fades are now properly done. Diagonal fades are not yet possible with the new code.

BTW: UtilityLibrary.csproj file is missing from the svn. I created one myself but since I'm new to SVN, I decided not to upload it just in case.

my bad, i missed it when i was adding the other files (must have unchecked it when i unchecked all the bin/object folder crap Smile, it happens)

any who ive uploaded the csproj file now
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#44
2008-12-27, 08:39 AM
reven Wrote:my bad, i missed it when i was adding the other files (must have unchecked it when i unchecked all the bin/object folder crap Smile, it happens)

any who ive uploaded the csproj file now
I figured, I just didn't want to upload mine and break something. BTW: which svn software do you use/recommend?
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#45
2008-12-27, 08:57 AM
Oh, ReflectImage(image) currently returns a 100% reflection but I think we should decide on a "GBPVR standard" for reflections (like 30% or something) and set it as the default. That way users can have some consistency across plugins.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#46
2008-12-27, 08:14 PM
whurlston Wrote:Oh, ReflectImage(image) currently returns a 100% reflection but I think we should decide on a "GBPVR standard" for reflections (like 30% or something) and set it as the default. That way users can have some consistency across plugins.

for svn i use tortoise svn

for the reflection im currently using
Code:
GBPVRLibrary.UtilityLibrary.Drawing.ImageTransforms.ReflectImage(VideoFile.Metadata.MetadataArt, 45, 50, true)
i want to alter the method to take in another parameter for max alpha level. so instead of the top of the reflection being solid, it can be set to say only 200 alpha (instead of 255), currently it looks funny being completely solid.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#47
2008-12-27, 09:10 PM
oh you have a "Quality" parameter, which is the max alpha level, but in the FadeImage method, you stop the loop when that value is reached.

it probably should be changed from quality to MaxAlphaLevel and still loop through each line of the image but set the alpha to
float alpha = MaxAlphaLevel / linenumber;
so line 1 with MaxAlphaLevel of 50
alpha = 50 / 1;
line 2
alpah = 50/2;
etc
so that should make the fade out work correctly.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#48
2008-12-27, 09:58 PM
reven Wrote:oh you have a "Quality" parameter, which is the max alpha level, but in the FadeImage method, you stop the loop when that value is reached.

it probably should be changed from quality to MaxAlphaLevel and still loop through each line of the image but set the alpha to
float alpha = MaxAlphaLevel / linenumber;
so line 1 with MaxAlphaLevel of 50
alpha = 50 / 1;
line 2
alpah = 50/2;
etc
so that should make the fade out work correctly.
My original intent of the "quality" parameter was actually max alpha but my calculations are off and it wasn't working properly. It was too late and I could wrap my head around the problem so I copped out and changed it to "quality". Wink I'll fix it in a tomorrow. Tonight's pretty full for me. "quality" should actually be the number of fade steps (max quality would be the number of lines so one fade step for each line).
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#49
2008-12-28, 12:54 AM
I know the problem but I'm at a late Christmas party so I will fix it later
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#50
2008-12-28, 10:25 AM
Got it working. I just have to clean it up tomorrow and I'll commit it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 3 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,858 2014-11-14, 02:05 AM
Last Post: Benoire
  Open Source Mheg+ Graham 0 1,413 2012-11-30, 06:32 PM
Last Post: Graham
  sample video overlay plugin source code? reven 2 2,326 2011-10-03, 12:42 AM
Last Post: reven
  Source code for older versions ? Spark 1 1,727 2011-02-23, 01:19 AM
Last Post: sub
  Capture source names imilne 4 2,568 2010-11-18, 01:49 PM
Last Post: imilne
  Source for plugin similiar to Video Library ishmale423 2 1,845 2009-05-01, 04:49 PM
Last Post: jasonbs10
  Select capture source khaver 3 1,855 2008-12-15, 02:20 AM
Last Post: khaver
  CommunitySkin 4 Open development thread. Fatman_do 110 24,240 2008-12-14, 09:04 PM
Last Post: McBainUK
  vlc as live TV Source theGressier 4 2,731 2008-09-13, 12:35 AM
Last Post: drlava
  What SCM (Source Control Management) system do you use? JavaWiz 3 2,015 2008-08-19, 07:28 PM
Last Post: Manderson

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode