Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9255 - WPS automatic screenshot utility

Attached to Project: Rockbox
Opened by Maurus Cuelenaere (mcuelenaere) - Friday, 08 August 2008, 19:26 GMT+2
Last edited by Maurus Cuelenaere (mcuelenaere) - Wednesday, 03 September 2008, 22:52 GMT+2
Task Type Patches
Category Applications
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This is an automatic WPS screenshot utility, which is based on the on-going WPS editor SoC project.
   wps_editor_screenshot.diff (11.2 KiB)
 screenshot/src/wpsdrawer.cpp |  187 +++++++++++++++++++++++++++++++++++++++++++
 screenshot/src/utils.cpp     |   15 +++
 screenshot/src/wpsdrawer.h   |   52 +++++++++++
 screenshot/src/main.cpp      |   55 ++++++++++++
 screenshot/src/utils.h       |   11 ++
 screenshot/screenshot.pro    |   30 ++++++
 6 files changed, 350 insertions(+)

This task depends upon

Closed by  Maurus Cuelenaere (mcuelenaere)
Wednesday, 03 September 2008, 22:52 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  In r18402
Comment by Maurus Cuelenaere (mcuelenaere) - Wednesday, 13 August 2008, 00:24 GMT+2
Update:
* updated to r70
* added verbose mode
* tried getting the colors to work
* tried imitating lcd-16bit.c in fill_rect(), hline(), vline() & draw_pixel()
* other fixes
   wps_editor_screenshot.diff (14.6 KiB)
 screenshot/src/wpsdrawer.cpp |  235 +++++++++++++++++++++++++++++++++++++++++++
 screenshot/src/utils.cpp     |   15 ++
 screenshot/src/wpsdrawer.h   |   52 +++++++++
 screenshot/src/main.cpp      |   78 ++++++++++++++
 screenshot/src/utils.h       |   13 ++
 screenshot/screenshot.pro    |   30 +++++
 proxy/src/api.c              |   10 +
 proxy/src/api.h              |    2 
 8 files changed, 435 insertions(+)

Comment by Maurus Cuelenaere (mcuelenaere) - Wednesday, 13 August 2008, 18:22 GMT+2
Update:
* updated to r72
* revert fill_rect(), hline() & draw_pixel()
* Fix proxy makefile & buildall.sh
* add charge_state to dummies.c

Currently the following proxies can be built:
* proxy_c200.dll
* proxy_e200.dll
* proxy_e200r.dll
* proxy_gigabeatf.dll
* proxy_gigabeats.dll
* proxy_h10_5gb.dll
* proxy_h10.dll
* proxy_ipodcolor.dll
* proxy_ipodnano.dll
* proxy_ipodvideo.dll
   wps_editor_screenshot.diff (11.6 KiB)
 screenshot/src/wpsdrawer.cpp |  183 +++++++++++++++++++++++++++++++++++++++++++
 screenshot/src/utils.cpp     |   15 +++
 screenshot/src/wpsdrawer.h   |   52 ++++++++++++
 screenshot/src/main.cpp      |   78 ++++++++++++++++++
 screenshot/src/utils.h       |   13 +++
 screenshot/screenshot.pro    |   30 +++++++
 6 files changed, 371 insertions(+)

   wps_editor_proxy.diff (3.5 KiB)
 proxy/buildall.sh   |    3 +--
 proxy/cleanall.sh   |    2 +-
 proxy/src/dummies.c |    3 +++
 proxy/Makefile      |   38 ++++++++++++++++++++++++++------------
 4 files changed, 31 insertions(+), 15 deletions(-)

Comment by Maurus Cuelenaere (mcuelenaere) - Wednesday, 13 August 2008, 21:21 GMT+2
Update:
* sync with r73
* add nid3 support
* add audio_status support
   wps_editor_proxy.diff (4.5 KiB)
 proxy/src/api.h      |    2 ++
 proxy/src/wpsstate.h |    1 +
 proxy/src/proxy.c    |    4 ++--
 proxy/src/dummies.c  |    7 ++++++-
 proxy/src/dummies.h  |    5 +++++
 proxy/src/api.c      |   21 +++++++++++++++++++--
 6 files changed, 35 insertions(+), 5 deletions(-)

   wps_editor_screenshot.diff (11.8 KiB)
 screenshot/src/wpsdrawer.cpp |  183 +++++++++++++++++++++++++++++++++++++++++++
 screenshot/src/utils.cpp     |   15 +++
 screenshot/src/wpsdrawer.h   |   52 ++++++++++++
 screenshot/src/main.cpp      |   81 +++++++++++++++++++
 screenshot/src/utils.h       |   13 +++
 screenshot/screenshot.pro    |   30 +++++++
 6 files changed, 374 insertions(+)

Comment by Maurus Cuelenaere (mcuelenaere) - Thursday, 14 August 2008, 01:04 GMT+2
Update:
* remove audio_status from wpsstate as it's only needed in as a function
* make building on Linux work
* fix warnings
* remove proxy building from screenshot.pro (you'll need to do buildall.sh manually)
   wps_editor_proxy.diff (4.2 KiB)
 proxy/src/api.c     |   21 +++++++++++++++++++--
 proxy/src/api.h     |    2 ++
 proxy/src/proxy.c   |    4 ++--
 proxy/src/dummies.c |    7 ++++++-
 proxy/src/dummies.h |    5 +++++
 5 files changed, 34 insertions(+), 5 deletions(-)

   wps_editor_screenshot.diff (11.7 KiB)
 screenshot/src/wpsdrawer.cpp |  183 +++++++++++++++++++++++++++++++++++++++++++
 screenshot/src/utils.cpp     |   15 +++
 screenshot/src/wpsdrawer.h   |   52 ++++++++++++
 screenshot/src/main.cpp      |   80 ++++++++++++++++++
 screenshot/src/utils.h       |   13 +++
 screenshot/screenshot.pro    |   27 ++++++
 6 files changed, 370 insertions(+)

Comment by Maurus Cuelenaere (mcuelenaere) - Thursday, 14 August 2008, 15:32 GMT+2
Update:
* get rid of Qt dependancy and convert C++ -> C
* use libgd2 instead in order to have a truely 'headless' implementation
   wps_editor_proxy.diff (4.2 KiB)
 proxy/src/api.c     |   21 +++++++++++++++++++--
 proxy/src/api.h     |    2 ++
 proxy/src/proxy.c   |    4 ++--
 proxy/src/dummies.c |    7 ++++++-
 proxy/src/dummies.h |    5 +++++
 5 files changed, 34 insertions(+), 5 deletions(-)

   wps_editor_screenshot.diff (32.5 KiB)
 screenshot/bmp.h    |  114 +++++++
 screenshot/main.c   |  359 ++++++++++++++++++++++++
 screenshot/gd_bmp.c |  776 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 screenshot/Makefile |   43 ++
 4 files changed, 1292 insertions(+)

Comment by Maurus Cuelenaere (mcuelenaere) - Monday, 18 August 2008, 21:30 GMT+2
Sync with r74

(wps_editor_proxy.diff also contains fixes of  FS#9277 )
   wps_editor_screenshot.diff (32.7 KiB)
 screenshot/bmp.h    |  114 +++++++
 screenshot/gd_bmp.c |  776 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 screenshot/main.c   |  367 ++++++++++++++++++++++++
 screenshot/Makefile |   43 ++
 4 files changed, 1300 insertions(+)

   wps_editor_proxy.diff (2.8 KiB)
 proxy/buildall.sh    |   14 +++++++-------
 proxy/Makefile       |    8 ++++----
 proxy/src/api.h      |    3 +++
 proxy/src/checkwps.c |    6 +++---
 4 files changed, 17 insertions(+), 14 deletions(-)

Comment by Maurus Cuelenaere (mcuelenaere) - Saturday, 30 August 2008, 02:28 GMT+2
Sync with current SVN
   wps_editor_screenshot.diff (32.8 KiB)
 utils/wpseditor/screenshot/bmp.h    |  114 +++++
 utils/wpseditor/screenshot/gd_bmp.c |  776 ++++++++++++++++++++++++++++++++++++
 utils/wpseditor/screenshot/main.c   |  360 ++++++++++++++++
 utils/wpseditor/screenshot/Makefile |   43 +
 4 files changed, 1293 insertions(+)

Loading...