Closed
Bug 177670
Opened 22 years ago
Closed 18 years ago
Support dynamic MNGs
Categories
(Core :: Graphics: ImageLib, enhancement)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: hakon_, Unassigned)
References
()
Details
Are there any plans to support dynamic MNG's natively? Those could be used for
mouse-over effects and similar implementations...
Comment 1•22 years ago
|
||
Reporter, do you mean animated MNG's ? That's already supported : see
http://www.libpng.org/pub/mng/img_mng/pnglogo-grr-anim-lc.mng for a testcase.
Not high on my priority list - reassigning to nobody.
Assignee: tor → nobody
Keywords: helpwanted
![]() |
||
Updated•22 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Dynamic MNG will be part of libmng 1.0.5, so adding dependency on bug 181676.
Depends on: 181676
OS: Linux → All
Hardware: PC → All
Summary: Support dynamic MNG's → Support dynamic MNGs
Comment 5•22 years ago
|
||
Does Mozilla need specific code to enable dynamic mng ? Are the nightly builds
done with the new libmng 1.05 (from bug 181676) ?
I just tried the example mentioned on http://www.libmng.com/dynamicMNG.html
using build 2003030908 on Win2k but they don't animate when I mouse over the
images or maps.
Comment 6•22 years ago
|
||
> Does Mozilla need specific code to enable dynamic mng ?
Yes. That code is not written yet.
Comment 7•22 years ago
|
||
this seems not too difficult to implement:
1. imgContainerMNG should implement nsIDOMMouseListener as well as
nsIDOMMouseMotionListener
2. find a way to get to the imgIContainer in nsImageFrame.cpp ::OnStopDecode
3. Try to QI it to aforementioned interfaces, if it succeeds, add code similar
to nsObjectFrame.cpp around line 3966
4. when the methods on nsIDOMMouse*Listener get called, do the appropriate mng
calls.
Comment 8•22 years ago
|
||
actually, in point 2), OnStartContainer is maybe better than OnStopDecode,
because people might want to interact with the image before it is fully loaded...
Comment 9•22 years ago
|
||
taking, I can fix this, I hope an additional QueryInterface per image load is
not too bad a thing.
Assignee: nobody → cbiesinger
Keywords: helpwanted
Comment 10•22 years ago
|
||
let's be optimistic with the target milestone.
Priority: -- → P1
Target Milestone: --- → mozilla1.4alpha
Comment 11•22 years ago
|
||
> actually, in point 2), OnStartContainer is maybe better than OnStopDecode,
> because people might want to interact with the image before it is fully
> loaded...
Dynamic MNG's actually don't get dynamic until the entire stream is read, so
OnStopDecode would do for now. This is a design issue. The internal labels used
for dynamics precede the content, and it would crash jumping to one, if the
underlying image(s) aren't loaded yet. I still have to figure out a way around
that, but don't expect that any time soon. (yeah I know... a challenge... ;)
Comment 12•22 years ago
|
||
The advantage of OnStartContainer is that it easily has access to imgIContainer,
because it's a function argument :)
Comment 13•22 years ago
|
||
wow, do you believe that it is _not_ trivial to get the x/y position relative to
the corner of the image?
the form-submission code might be of help. It figures out the clicked x and y
position of the image.
http://lxr.mozilla.org/mozilla/source/content/html/content/src/nsHTMLInputElement.cpp#2269
Comment 15•22 years ago
|
||
sicking: thanks, that does help me!
Now... how do I get the coordinates to the image container...
Reporter | ||
Comment 16•22 years ago
|
||
Since mng support has been lifted out of mozilla trunk, should this bug be closed?
Comment 17•22 years ago
|
||
No.
Comment 18•21 years ago
|
||
-> default owner. I know no acceptable way to implement this.
Assignee: cbiesinger → jdunn
Updated•21 years ago
|
Priority: P1 → --
Target Milestone: mozilla1.4alpha → ---
Assignee: jdunn → nobody
QA Contact: tpreston → imagelib
Comment 19•18 years ago
|
||
As bug 18574 was ultimately WONTFIXed I do the same to this one.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•