Squeak Class Documentation category index | class index  
 
Mpeg3Plugin
  category: VMConstruction-Plugins
  superclass: TestInterpreterPlugin
  subclasses:

/********************************************************
* An interface to LibMPEG3
* Author: Adam Williams <broadcast@earthling.net>
* Page: heroine.linuxbox.com
*
* Changed for Squeak to work with Squeak and to work on the Macintosh
* Sept 2000, by John M McIntosh johnmci@smalltalkconsulting.com
* The smalltalk code and the C code it produces is released under the
* Squeak licence. The libmpeg3 C code is co-licenced under either the Squeak licence or
* the GNU LGPL

instance methods
  primitives
  primitiveMPEG3AudioChannels:stream:
primitiveMPEG3AudioSamples:stream:
primitiveMPEG3CheckSig:
primitiveMPEG3Close:
primitiveMPEG3DropFrames:frames:stream:
primitiveMPEG3EndOfAudio:stream:
primitiveMPEG3EndOfVideo:stream:
primitiveMPEG3FrameRate:stream:
primitiveMPEG3GenerateToc:useSearch:doStreams:buffer:
primitiveMPEG3GetFrame:stream:
primitiveMPEG3GetSample:stream:
primitiveMPEG3GetTime:
primitiveMPEG3HasAudio:
primitiveMPEG3HasVideo:
primitiveMPEG3Open:
primitiveMPEG3PreviousFrame:stream:
primitiveMPEG3ReReadAudio:shortArray:channel:samples:stream:
primitiveMPEG3ReadAudio:shortArray:channel:samples:stream:
primitiveMPEG3ReadFrame:buffer:x:y:w:h:ow:oh:colorModel:stream:bytesPerRow:
primitiveMPEG3SampleRate:stream:
primitiveMPEG3SeekPercentage:percentage:
primitiveMPEG3SetCpus:number:
primitiveMPEG3SetFrame:frame:stream:
primitiveMPEG3SetMmx:useMmx:
primitiveMPEG3SetSample:sample:stream:
primitiveMPEG3TellPercentage:
primitiveMPEG3TotalAStreams:
primitiveMPEG3TotalVStreams:
primitiveMPEG3VideoFrames:stream:
primitiveMPEG3VideoHeight:stream:
primitiveMPEG3VideoWidth:stream:

  support
  checkFileEntry:
initialiseModule
makeFileEntry:
mpeg3tValueOf:
removeFileEntry:
shutdownModule

class methods
  initialize-release
  declareCVarsIn:
headerFile

instance methods
  primitives top  
 

primitiveMPEG3AudioChannels:stream:

int mpeg3_audio_channels(mpeg3_t *file,int stream)


 

primitiveMPEG3AudioSamples:stream:

long mpeg3_audio_samples(mpeg3_t *file, int stream)


 

primitiveMPEG3CheckSig:

int mpeg3_check_sig(char *path)


 

primitiveMPEG3Close:

int mpeg3_close(mpeg3_t *file)


 

primitiveMPEG3DropFrames:frames:stream:

int mpeg3_drop_frames(mpeg3_t *file, long frames, int stream)


 

primitiveMPEG3EndOfAudio:stream:

int mpeg3_end_of_audio(mpeg3_t *file, int stream)


 

primitiveMPEG3EndOfVideo:stream:

int mpeg3_end_of_video(mpeg3_t *file, int stream)


 

primitiveMPEG3FrameRate:stream:

float mpeg3_frame_rate(mpeg3_t *file, int stream)


 

primitiveMPEG3GenerateToc:useSearch:doStreams:buffer:

int mpeg3_generate_toc_for_Squeak(FILE *output, char *path, int timecode_search, int print_streams, char *buffer)


 

primitiveMPEG3GetFrame:stream:

long mpeg3_get_frame(mpeg3_t *file,int stream)


 

primitiveMPEG3GetSample:stream:

int mpeg3_video_width(mpeg3_t *file, int stream)


 

primitiveMPEG3GetTime:

double mpeg3_get_time(mpeg3_t *file)


 

primitiveMPEG3HasAudio:

int mpeg3_has_audio(mpeg3_t *file)


 

primitiveMPEG3HasVideo:

int mpeg3_has_video(mpeg3_t *file)


 

primitiveMPEG3Open:

mpeg3_t* mpeg3_open(char *path)


 

primitiveMPEG3PreviousFrame:stream:

int mpeg3_previous_frame(mpeg3_t *file, int stream)


 

primitiveMPEG3ReReadAudio:shortArray:channel:samples:stream:

int mpeg3_reread_audio(mpeg3_t *file,
float *output_f,
short *output_i,
int channel,
long samples,
int stream)


 

primitiveMPEG3ReadAudio:shortArray:channel:samples:stream:

int mpeg3_read_audio(mpeg3_t *file,
float *output_f,
short *output_i,
int channel,
long samples,
int stream)


 

primitiveMPEG3ReadFrame:buffer:x:y:w:h:ow:oh:colorModel:stream:bytesPerRow:

int mpeg3_read_frame(mpeg3_t *file,
unsigned char **output_rows,
int in_x,
int in_y,
int in_w,
int in_h,
int out_w,
int out_h,
int color_model,
int stream)


 

primitiveMPEG3SampleRate:stream:

int mpeg3_sample_rate(mpeg3_t *file,int stream)


 

primitiveMPEG3SeekPercentage:percentage:

int mpeg3_seek_percentage(mpeg3_t *file, double percentage)


 

primitiveMPEG3SetCpus:number:

int mpeg3_set_cpus(mpeg3_t *file, int cpus)


 

primitiveMPEG3SetFrame:frame:stream:

int mpeg3_set_frame(mpeg3_t *file, long frame, int stream)


 

primitiveMPEG3SetMmx:useMmx:

int mpeg3_set_mmx(mpeg3_t *file, int use_mmx)


 

primitiveMPEG3SetSample:sample:stream:

int mpeg3_set_sample(mpeg3_t *file, long sample, int stream)


 

primitiveMPEG3TellPercentage:

double mpeg3_tell_percentage(mpeg3_t *file)


 

primitiveMPEG3TotalAStreams:

int mpeg3_total_astreams(mpeg3_t *file)


 

primitiveMPEG3TotalVStreams:

int mpeg3_total_vstreams(mpeg3_t *file)


 

primitiveMPEG3VideoFrames:stream:

long mpeg3_video_frames(mpeg3_t *file, int stream)


 

primitiveMPEG3VideoHeight:stream:

int mpeg3_video_height(mpeg3_t *file,int stream)


 

primitiveMPEG3VideoWidth:stream:

int mpeg3_video_width(mpeg3_t *file, int stream)


  support top  
 

checkFileEntry:


 

initialiseModule


 

makeFileEntry:


 

mpeg3tValueOf:

Return a pointer to the first byte of of the mpeg3_t record within the
given Smalltalk object, or nil if socketOop is not a mpeg3_t record.


 

removeFileEntry:


 

shutdownModule


class methods
  initialize-release top  
 

declareCVarsIn:

Note: This method must be implemented by all subclasses to declare variables.


 

headerFile

If there is a single intrinsic header file to be associated with the plugin, here is where you want to put it. It will be generated and included automatically.