comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » More Details on MPEG color problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
More Details on MPEG color problem [message #12088] Sun, 28 June 1998 00:00
boccio is currently offline  boccio
Messages: 10
Registered: November 1994
Junior Member
Let me elaborate on the MPEG color problem.

I am on a PowerMacintosh MacOS V8.1.
IDL version is V5.1 (not a beta version)

Code #1.....

openr,unit,filepath('abnorm.dat',subdir=['examples','data']) ,/get_lun
h=bytarr(64,64,16)
readu,unit,h
close,unit
free_lun,unit
h=rebin(h,128,128,16)
xinteranimate,set=[128,128,16],/showload
for i=0,15 do xinteranimate,frame=i,image=h[*,*,i]
xinteranimate,/keep_pixmaps

execute as batch file
create mpeg inside xinteranimate --> colors

Code #2 .....

pro xanim
openr,unit,filepath('abnorm.dat',subdir=['examples','data']) ,/get_lun
h=bytarr(64,64,16)
readu,unit,h
close,unit
free_lun,unit
h=rebin(h,128,128,16)
window,0,xsize=128,ysize=128
loadct,3
mpegID=mpeg_open([128,128])
for i=0,15 do begin
tvscl,h[*,*,i]
mpeg_put,mpegID,frame=i,image=h[*,*,i]
endfor
mpeg_save,mpegID,filename='xanim.mpg'
mpeg_close,mpegID
end

compile and execute
shows images in color on screen, creates mpeg --> black and white

have done this in two ways

DEVICE, RETAIN=2, DECOMPOSED=0,PSEUDO=8

DEVICE, RETAIN=2, DECOMPOSED=1,PSEUDO=8

The same thing happens under UNIX on a DEC ALPHA
(I did not issue the DEVICE commands on UNIX).

Thanks for any help.

John
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: [Q] OOP IDL and the self parameter ...
Next Topic: Re: Color in MPEGs ???

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 15 13:34:24 PDT 2025

Total time taken to generate the page: 2.00043 seconds