Module conversions
[show private | hide private]
[frames | no frames]

Module conversions

Routines to do various file format conversions
Exceptions
ConversionFailed  

Function Summary
  adjustwavfilevolume(wavfilename, gain)
Ajdust the volume of a wav file.
  convertavitobmp(avi_data, frame_num)
  convertbmptolgbit(bmp_data)
Takes a BMP image file and returns BIT image file (LG proprietary)
  convertfileavitobmp(avi_file_name, frame_num)
  convertfilelgbittobmp(bit_file_name)
File-based wrapper for convertlgbittobmp.
  convertjpgtoavi(jpg_data, avi_file_name, fps, new_file)
  convertlgbittobmp(bit_data)
Takes a BIT image file (LG proprietary) and returns BMP
  convertqcptowav(qcpfile, wavfile)
  convertto8bitpng(pngdata, maxsize)
Convert a PNG file to 8bit color map
  convertto8bitpng_joe(pngdata)
Convert a PNG file to 8bit color map
  converttomp3(inputfilename, bitrate, samplerate, channels)
Reads inputfilename and returns data for an mp3 conversion
  converttowav(mp3filename, wavfilename, samplerate, channels, start, duration)
  convertwavtoqcp(wavfile, qcpfile, optimization)
  gethelperbinary(basename)
Returns the full pathname to the specified helper binary
  getpvconvbinary()
PVConv can't be distributed with BitPim so the user has to install it and we have to find it
  helperavailable(helper_name)
  run(*args)
Runs the specified command (args[0]) with supplied parameters.
  shortfilename(x)
  trimwavdata(wavedatain, start, duration)
  trimwavfile(wavfilename, wavoutfilename, start, duration, gain)

Function Details

adjustwavfilevolume(wavfilename, gain)

Ajdust the volume of a wav file.

convertbmptolgbit(bmp_data)

Takes a BMP image file and returns BIT image file (LG proprietary)
Returns:
16BPP LGBIT image file data

convertfilelgbittobmp(bit_file_name)

File-based wrapper for convertlgbittobmp.

convertlgbittobmp(bit_data)

Takes a BIT image file (LG proprietary) and returns BMP
Parameters:
bit_data - 16BPP BIT image file data
Returns:
24BPP BMP image file data

convertto8bitpng(pngdata, maxsize)

Convert a PNG file to 8bit color map

convertto8bitpng_joe(pngdata)

Convert a PNG file to 8bit color map

converttomp3(inputfilename, bitrate, samplerate, channels)

Reads inputfilename and returns data for an mp3 conversion
Parameters:
bitrate - bitrate to use in khz (ie 16 is 16000 bits per second)
samplerate - audio sampling rate in Hertz
channels - 1 is mono, 2 is stereo

gethelperbinary(basename)

Returns the full pathname to the specified helper binary

getpvconvbinary()

PVConv can't be distributed with BitPim so the user has to install it and we have to find it

run(*args)

Runs the specified command (args[0]) with supplied parameters. Note that your path is not searched for the command.

Generated by Epydoc 2.1 on Fri Aug 15 18:58:23 2008 http://epydoc.sf.net