Author Topic: Image and video viewer  (Read 2850 times)

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Image and video viewer
« on: May 21, 2020, 10:25:56 PM »
Attached a simple but fast image viewer. It handles animated GIF and multiframe TIFF images, too.

- use the mousewheel to zoom in and out
- arrow left/right move the (zoomed) image
- same for Shift arrow up/down
- arrow up/down selects the next image

It plays videos, too: arrow right starts the play, arrow left stops it. Arrow up/down is for speed.

This was built with the latest MasmBasic of 21 May 2020.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Image and video viewer
« Reply #1 on: May 21, 2020, 11:15:53 PM »
Works OK here, did you use some form of smoothing filter on it ? I tested it with a 64k JPG.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Image and video viewer
« Reply #2 on: May 21, 2020, 11:26:51 PM »
No special filter, just ordinary gdiplus.

Siekmanski

  • Member
  • *****
  • Posts: 2698
Re: Image and video viewer
« Reply #3 on: May 21, 2020, 11:37:22 PM »
Works Ok here also.
Creative coders use backward thinking techniques as a strategy.

Vortex

  • Member
  • *****
  • Posts: 2768
Re: Image and video viewer
« Reply #4 on: May 22, 2020, 12:11:21 AM »
Hi Jochen,

Works fine on Windows 10 64-bit. :thumbsup:

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Image and video viewer
« Reply #5 on: May 22, 2020, 11:31:58 AM »
Thanks for the feedback :thup:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Image and video viewer
« Reply #6 on: May 24, 2020, 01:17:17 PM »
I should have added, the zooming technique is very impressive.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Image and video viewer
« Reply #7 on: May 24, 2020, 07:34:56 PM »
Thanks, Hutch :thumbsup:

What I find more impressive is how fast it loads, and how fast it displays images. Or rather: I am deeply impressed by the extreme slowness of the official Micros**t viewer. What is their secret, how can they slow down so much a simple viewer that doesn't even use the anti-aliasing of GdiPlus?