libavformat/oma.c File Reference

This is a demuxer for Sony OpenMG Music files. More...

#include "avformat.h"
#include "libavutil/intreadwrite.h"
#include "raw.h"
#include "riff.h"

Go to the source code of this file.

Defines

#define EA3_HEADER_SIZE   96

Enumerations

enum  {
  OMA_CODECID_ATRAC3 = 0, OMA_CODECID_ATRAC3P = 1, OMA_CODECID_MP3 = 3, OMA_CODECID_LPCM = 4,
  OMA_CODECID_WMA = 5
}

Functions

static int oma_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int oma_read_packet (AVFormatContext *s, AVPacket *pkt)
static int oma_read_probe (AVProbeData *p)

Variables

static const AVCodecTag codec_oma_tags []
AVInputFormat oma_demuxer


Detailed Description

This is a demuxer for Sony OpenMG Music files.

Known file extensions: ".oma", "aa3" The format of such files consists of three parts:

LIMITATIONS: This version supports only plain (unencrypted) OMA files. If any DRM-protected (encrypted) file is encountered you will get the corresponding error message. Try to remove the encryption using any Sony software (for example SonicStage). CODEC SUPPORT: Only ATRAC3 codec is currently supported!

Definition in file oma.c.


Define Documentation

#define EA3_HEADER_SIZE   96

Definition at line 50 of file oma.c.

Referenced by oma_read_header().


Enumeration Type Documentation

anonymous enum

Enumerator:
OMA_CODECID_ATRAC3 
OMA_CODECID_ATRAC3P 
OMA_CODECID_MP3 
OMA_CODECID_LPCM 
OMA_CODECID_WMA 

Definition at line 52 of file oma.c.


Function Documentation

static int oma_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 66 of file oma.c.

static int oma_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 167 of file oma.c.

static int oma_read_probe ( AVProbeData p  )  [static]

Definition at line 178 of file oma.c.


Variable Documentation

const AVCodecTag codec_oma_tags[] [static]

Initial value:

Definition at line 60 of file oma.c.

Initial value:

 {
    "oma",
    NULL_IF_CONFIG_SMALL("Sony OpenMG audio"),
    0,
    oma_read_probe,
    oma_read_header,
    oma_read_packet,
    0,
    pcm_read_seek,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "oma,aa3",
    .codec_tag= (const AVCodecTag* const []){codec_oma_tags, 0},
}

Definition at line 187 of file oma.c.


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8