MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » View Pictures » Support


Support Post your problems with picture features here.

Reply
 
Thread Tools Display Modes
Old 2007-03-06, 14:03   #11 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

Hi.

I've played a little bit with the source code

Attached you can find a WindowPlugins.dll which should fix all issues discussed here.
Simple copy it to your "Plugins/Windows" folder. Make a backup of the existing file!

This is for test propose only. If the changes work like requested and I've not build in any new bugs, I will see how I'am able to "play back" this piece of source code back to the devs....

CU
Lars

Last edited by lkuech; 2007-03-07 at 10:05.
lkuech is offline   Reply With Quote
Old 2007-03-06, 14:20   #12 (permalink)
Retired Team Member
 
DalaNorth's Avatar
 
Join Date: Dec 2006
Location: Skellefteå, Sweden
Age: 31
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Hi lkuech! We appreciate your work!

I have not tested your dll yet, since I don't know what you have done to it, but please post your patch to our patch section on SourceForge so that we can verify it and integrate it in the main code branch.

Follow the instructions here:
Patch Policy

Again,

Regards
DalaNorth
DalaNorth is offline   Reply With Quote
Old 2007-03-07, 05:46   #13 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

Thanks. I will do that.

CU
Lars
lkuech is offline   Reply With Quote
Old 2007-03-07, 10:03   #14 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

@DalaNorth: The patch uploaded to sourceforge.
Here is the link http://sourceforge.net/tracker/index...97&atid=647927

Just a few lines of modification ... I've created remarks for every change.
I hope you like it and the fix will make it in the svn code

CU
Lars
lkuech is offline   Reply With Quote
Old 2007-03-07, 10:55   #15 (permalink)
Retired Team Member
 
DalaNorth's Avatar
 
Join Date: Dec 2006
Location: Skellefteå, Sweden
Age: 31
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Thank you!

I tested your patch, but it isn't quite perfect yet... Follow these steps to see some weird behavior:

1. Skip to a small image that fits well within all bounds.
2. Press 2. This will zoom the image in to fit the screen.
3. Press Page Down -> Nothing happens
4. Press Page Up -> Picture is zoomed out to actual size
5. Press Page Down -> The picture is zoomed in to 200%
6. Press 1 -> Picture is zoomed out to actual size
7. Press Page Down -> The picture is zoomed in to fit screen.

Step 3->Nothing happens. Seems wrong...
Step 5 and 7 -> Different results zooming in from actual size

The results seem to differ a bit depending on how small the picture is to begin with. Probably due to the MAX_ZOOM_FACTOR. But try it a bit and I'm sure you'll see the problems too.

I haven't had to time to look at the code to understand why this happens, but you should already be somewhat familiar with how it works, so please try again!

Regards
DalaNorth
DalaNorth is offline   Reply With Quote
Old 2007-03-07, 11:26   #16 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

Yes. One of the problems seems to be, that all zoom level calculations are based on _defaultZoomFactor which may be different from file to file.

So well... I guess I have to analyse the code a little bit deeper. I hope it will be still possible to fix it with hand full of changes... but we will see

BTW: The "ZoomOut" bug itself is a single line in the "case Action.ActionType.ACTION_ZOOM_OUT:". The line "_isPictureZoomed = false;" was missing and because of this the behaviour of the left and right keys remains in moving mode...

CU
Lars
lkuech is offline   Reply With Quote
Old 2007-03-07, 12:54   #17 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

Oh damn... a small "<" makes a huge difference if the code is designed to use a "=="
... Ok I guess I've found the problem.

Code:
      if (_isSlideShow) _isPictureZoomed = _userZoomLevel == 1.0f ? false : true;
      else _isPictureZoomed = _userZoomLevel == _defaultZoomFactor ? false : true;
makes more sense

But I will do some more testing.
How should I proceed further. Simple attach the new .cs file at sourceforge or is it easier for you if I provide a svn patch?

CU
Lars
lkuech is offline   Reply With Quote
Old 2007-03-07, 13:15   #18 (permalink)
Retired Team Member
 
DalaNorth's Avatar
 
Join Date: Dec 2006
Location: Skellefteå, Sweden
Age: 31
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

The new .cs file will be fine.

Regards
DalaNorth

PS. Tried editing those lines according to your post, but there are still problems...

Last edited by DalaNorth; 2007-03-07 at 13:27. Reason: Tested new code
DalaNorth is offline   Reply With Quote
Old 2007-03-07, 15:38   #19 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

Hi again.

I've uploaded a new version. Additionally to the line I have posted, there was a modification of the zoom out action (back to the original... nearly) I forgot to mention...


Take a look at the new file. I've tested it with a lot of images. Larger and smaller than my screen resolution. It seems to work as I expected even with a 16:9 skin.

All the "problems" that I was still able to found were there before Like not being able to zoom very small images (16x16) etc.

CU
Lars
lkuech is offline   Reply With Quote
Old 2007-03-07, 15:39   #20 (permalink)
Portal Developer
 
lkuech's Avatar
 
Join Date: Feb 2007
Location: Hamburg
Age: 34
Posts: 551
Thanks: 28
Thanked 44 Times in 18 Posts

Country:

My System

Default

double post...
lkuech is offline   Reply With Quote
Reply

Bookmarks

Tags
zoomout

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
#920 - [pictures] zoom out less than 99% is not working & zoomOSD is not shown again chefkoch fixed 0.2.0.0 bugs 4 2006-11-27 14:56
Zoom : adding 'no aspect ratio change' in general settings miljbee Improvement Suggestions 61 2006-11-10 14:54
New tumbnail zoom view mirk Improvement Suggestions 2 2006-09-30 13:45
PVR500 only 1 Tuner working rovalis General Support 2 2006-03-09 15:13
MyVideos : progessive zoom Anonymous Improvement Suggestions 0 2005-01-11 05:43


All times are GMT +1. The time now is 23:57.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress