Design
QTJ lays an object-oriented API on top of the native C-based QuickTime library. It does this by associating common struct
s and the functions that work with them into classes. For example, the Movie
struct is the basis of the class quicktime.std.movies.Movie
, with functions like NewMovieFromFile
and GetMovieTrackCount
becoming the instance methods fromFile
and getTrackCount
respectively. The result is more like a genuine object-oriented API than other C-to-Java adaptations (such as JOGL, which dumps the OpenGL header files into classes with thousands of static methods).
The Cocoa-based QTKit is a similar attempt to put an object-oriented layer atop the procedural QuickTime library, using Objective-C.
Apple's use of the top-level package name quicktime
violates the Java Language's Specification convention that packages use a reverse-domain-name scheme, such as com.apple.quicktime
. However, as Apple owns the "QuickTime" trademark, there is no realistic chance of a namespace collision, the prevention of which is the purpose of the package naming convention.
It is important to remember that QTJ is not a Java implementation of QuickTime, it is a Java wrapper around native QuickTime calls. For this reason, it can only run on systems that have the QuickTime libraries installed, namely the classic Mac OS (which is no longer supported), Mac OS X, and Windows.
Read more about this topic: Quick Time For Java
Famous quotes containing the word design:
“For I choose that my remembrances of him should be pleasing, affecting, religious. I will love him as a glorified friend, after the free way of friendship, and not pay him a stiff sign of respect, as men do to those whom they fear. A passage read from his discourses, a moving provocation to works like his, any act or meeting which tends to awaken a pure thought, a flow of love, an original design of virtue, I call a worthy, a true commemoration.”
—Ralph Waldo Emerson (18031882)
“I begin with a design for a hearse.
For Christs sake not black
nor white eitherand not polished!
Let it be weatheredlike a farm wagon”
—William Carlos Williams (18831963)
“If I commit suicide, it will not be to destroy myself but to put myself back together again. Suicide will be for me only one means of violently reconquering myself, of brutally invading my being, of anticipating the unpredictable approaches of God. By suicide, I reintroduce my design in nature, I shall for the first time give things the shape of my will.”
—Antonin Artaud (18961948)