libavformat/oma.c File Reference

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

#include "avformat.h"
#include "libavutil/intreadwrite.h"
#include "pcm.h"
#include "riff.h"
#include "id3v2.h"

Go to the source code of this file.

Defines

#define EA3_HEADER_SIZE   96
#define ID3v2_EA3_MAGIC   "ea3"

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 ff_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 52 of file oma.c.

Referenced by oma_read_header(), and oma_read_probe().

#define ID3v2_EA3_MAGIC   "ea3"

Definition at line 68 of file oma.c.

Referenced by oma_read_header(), and oma_read_probe().


Enumeration Type Documentation

anonymous enum

Enumerator:
OMA_CODECID_ATRAC3 
OMA_CODECID_ATRAC3P 
OMA_CODECID_MP3 
OMA_CODECID_LPCM 
OMA_CODECID_WMA 

Definition at line 54 of file oma.c.


Function Documentation

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

Definition at line 70 of file oma.c.

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

Definition at line 161 of file oma.c.

static int oma_read_probe ( AVProbeData p  )  [static]

Definition at line 172 of file oma.c.


Variable Documentation

const AVCodecTag codec_oma_tags[] [static]

Initial value:

Definition at line 62 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 195 of file oma.c.


Generated on Fri Oct 26 02:38:21 2012 for FFmpeg by  doxygen 1.5.8