SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2008, 04:46 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Question Any success with AutoRotatePictureFile?

Hi,

I tried using the CanAutoRotatePictureFile() and AutoRotatePictureFile() API calls, but they don't seem to be working. Has anyone gotten these to work? Any tips or tricks? I searched the default STV and couldn't find an example of its usage.

Also, does the AutoRotatePictureFile() API call change the source file, or does it apply the rotation on-the-fly? Thanks.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #2  
Old 09-17-2008, 08:52 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
If those are the exact names you are using... AutorotatePictureFile() and CanAutorotatePictureFile() are the correct (case sensitive) names used in the default STV.

BTW: I suggest you use Greg's Studio Tools, if you aren't using them already. It can search case insensitively & do lots of other useful stuff.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 11-05-2008, 08:50 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Would someone be able to post an example of an AutoRotatePictureFile or RotatePictureFile. I'm in way over my head and need a little push in the right direction.

Thanks

Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #4  
Old 11-05-2008, 10:14 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Just search for the calls in the default STV to see them in use.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #5  
Old 11-05-2008, 12:30 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Ok, I'll take another look.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #6  
Old 11-06-2008, 01:14 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
I've looked but it doesnt seem to work, for me anyway! All I want to do is flip an image (cover art) horizontially so it looks like a mirror image of the original cover art (see attached file). I have to be honest and say that I'm really only good at copying and pasting other exaples.
So basically I'm asking if someone would be kind enough to post an example which I can copy

Thanks
Attached Images
File Type: jpg image.jpg (72.3 KB, 227 views)
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #7  
Old 11-06-2008, 01:26 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Then you don't want to rotate it, or auto-rotate it, you want FlipPictureFile().

I'm not sure what your goal is, but if you are trying to have the image shown on screen with its flipped version below it, this isn't the way to do it.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #8  
Old 11-06-2008, 02:16 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by Opus4 View Post
but if you are trying to have the image shown on screen with its flipped version below it, this isn't the way to do it.
Thanks for the quick reply again Andy

Thats exactly what I'm trying to do, any clues on how to do this?

Thanks
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #9  
Old 11-06-2008, 03:55 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by jaminben View Post
Thats exactly what I'm trying to do, any clues on how to do this?
No. The API docs point out that those calls modify the image file. There isn't a built-in way to do what you are trying to do.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #10  
Old 11-06-2008, 04:26 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
You could probably accomplish what you want using Java runtime image-manipulation functions, but that's likely to take more savvy than a simple copy-and-paste job.

As Andy noted, the built-in Rotate and Flip APIs are for operating on imported picture files in the media library, not on UI graphics.
__________________
-- Greg
Reply With Quote
  #11  
Old 11-06-2008, 04:46 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Quote:
Originally Posted by GKusnick View Post
You could probably accomplish what you want using Java runtime image-manipulation functions, but that's likely to take more savvy than a simple copy-and-paste job.

As Andy noted, the built-in Rotate and Flip APIs are for operating on imported picture files in the media library, not on UI graphics.
I cobbled together a few java image manipulation methods (flip, rotate, skew, and create reflection) a while back, but they required buffered images and suffered from significant performance issues. The performance problems were bad enough that I had to abandon the project. It was a sad day. I really wanted to add dynamically generated reflections to SageMC. Oh well, maybe someday.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #12  
Old 11-06-2008, 05:07 PM
Brent Brent is offline
SageTVaholic
 
Join Date: May 2006
Location: KC, Missouri
Posts: 3,695
Quote:
Originally Posted by MeInMaui View Post
I cobbled together a few java image manipulation methods (flip, rotate, skew, and create reflection) a while back, but they required buffered images and suffered from significant performance issues. The performance problems were bad enough that I had to abandon the project. It was a sad day. I really wanted to add dynamically generated reflections to SageMC. Oh well, maybe someday.

Aloha,
Mike
Here's hoping that those issues you experienced can be overcome & it can still be done some day
Reply With Quote
  #13  
Old 11-07-2008, 05:56 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by Opus4 View Post
No. The API docs point out that those calls modify the image file. There isn't a built-in way to do what you are trying to do.
Ah, ok.

Thats a shame, I guess I'll stick with an image that sort of looks like a mirrored version Maybe someday as others have said above.

While I have some of your attention would it be possible to have a dynamic background imported into the info screen for a movie a bit like cover art does currently. So basically you have a folder with your movie in and also within that folder is folder.jpg for cover art and another image called fanart.jpg for the background.

28 Weeks Later - (Movie Folder)
-28 Weeks Later.mkv
-folder.jpg
-fanart.jpg

I've made a mockup of my current layout as shown in the image below but obviously the background stays static at the moment.

Regards

Ben
Attached Images
File Type: jpg BackgroundImage.jpg (86.6 KB, 214 views)
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sporadic success logging on remotely ace007 SageTV Placeshifter 2 09-29-2008 07:50 AM
Any r5000hd success h.264 playback ? HawgGuy SageTV Beta Test Software 0 03-23-2007 05:12 PM
HDHomeRun success story jbarr Hardware Support 9 02-22-2007 04:46 PM
HDTV & VMR9 Success? Humanzee Hardware Support 13 04-03-2006 06:40 AM
Success jimmyb SageTV Media Extender 0 03-25-2006 08:19 PM


All times are GMT -6. The time now is 08:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.