home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / misc / 19306 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.8 KB

  1. Xref: sparky comp.sys.next.misc:19306 comp.sys.next.programmer:5992
  2. Path: sparky!uunet!gatech!psuvax1!rutgers!psinntp!psinntp!cubetech.com!imladris!andrew
  3. From: andrew@cubetech.com (Andrew Loewenstern)
  4. Newsgroups: comp.sys.next.misc,comp.sys.next.programmer
  5. Subject: Re: looking at the bits in video frames (3.0 NeXT Dimension)
  6. Message-ID: <1992Sep3.090837.4884@cubetech.com>
  7. Date: 3 Sep 92 09:08:37 GMT
  8. References: <1992Sep1.033025.7164@news.media.mit.edu>
  9. Organization: Cube Technologies, Inc.
  10. Lines: 32
  11.  
  12. In article <1992Sep1.033025.7164@news.media.mit.edu> mike@media-lab.mit.edu writes:
  13. >Has anyone got a convenient and efficient way to get at
  14. >the bits in grabbed video frames (on a NeXT Dimension under 3.0)?
  15. >
  16. >The problem is this: when you grab the frame, you get an
  17. >image with representation NXCachedImageRep, which presumably
  18. >somewhere has a pointer to the raw image in NeXTDimension memory.
  19. >There are no methods to directly read this data, although you
  20. >can draw it out to another view.  I tried compositing the
  21. >NXCachedImageRep image into a newly allocated image with
  22. >an NXBitmapImageRep (a TIFF), but the latter was converted
  23. >to an NXCachedImageRep!
  24.  
  25. This is appkit.732 in NeXTanswers...  send a setDataRetained:YES to
  26. the NXImage to prevent it from converting the NXBitmapImageRep to a
  27. NXCachedImageRep...
  28.  
  29. >What I would like to do is simply get my hands on the pixel array
  30. >that underlies the NXCachedImageRep of a grabbed frame,
  31. >without copying and converting the whole frame.
  32.  
  33.  
  34. Try to use either NXReadBitmap() or NXBitmapImageRep's
  35. initData:fromRect: method (NeXT prefers NXBitmapImageRep).
  36.  
  37.  
  38. andrew
  39. -- 
  40. andrew@cubetech.com     | "We shall not cease from exploration
  41. Andrew Loewenstern      |  And the end of our exploring
  42. Cube Technologies, Inc. |  Will be to arrive where we started
  43.                         |  And know the place for the first time." -T.S. Eliot
  44.