"Fossies" - the Fresh Open Source Software Archive

Member "pacpl-code/extra/sample.m" (22 Aug 2019, 561 Bytes) of package /linux/privat/pacpl-6.1.3.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Matlab source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Sample MP5 codec - John Doe (johndoe@example.org)
    2 #
    3 # This is just a sample.
    4 
    5 my $mp5 = {
    6 
    7         NAME => 'mp5',
    8     DEFAULT_ENCODER => 'ffmpeg',
    9         DEFAULT_DECODER => 'lame',
   10     TAGS => { READ => 0, WRITE => 0, MODULE => undef }, # do not change
   11 
   12         ENCODER => {
   13                      ffmpeg => {
   14                      NAME => 'ffmpeg',
   15                      ESTR => sub { "-y -i %i %o" },
   16                    },
   17                },
   18 
   19         DECODER => {
   20              lame => {
   21                    NAME => 'lame',
   22                    DSTR => sub { "--decode %i %o" },
   23                  },
   24            },
   25 };
   26 
   27 import_module($mp5);