pcm-mpeg.c File Reference

PCM codecs for encodings found in MPEG streams (DVD/Blu-ray) More...

#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PCMBRDecode
 

Typedefs

typedef struct PCMBRDecode PCMBRDecode
 

Functions

static int pcm_bluray_parse_header (AVCodecContext *avctx, const uint8_t *header)
 Parse the header of a LPCM frame read from a MPEG-TS stream. More...
 
static av_cold int pcm_bluray_decode_init (AVCodecContext *avctx)
 
static int pcm_bluray_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

AVCodec ff_pcm_bluray_decoder
 

Detailed Description

PCM codecs for encodings found in MPEG streams (DVD/Blu-ray)

Definition in file pcm-mpeg.c.

Typedef Documentation

typedef struct PCMBRDecode PCMBRDecode

Function Documentation

static int pcm_bluray_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 138 of file pcm-mpeg.c.

static av_cold int pcm_bluray_decode_init ( AVCodecContext avctx)
static

Definition at line 128 of file pcm-mpeg.c.

static int pcm_bluray_parse_header ( AVCodecContext avctx,
const uint8_t header 
)
static

Parse the header of a LPCM frame read from a MPEG-TS stream.

Parameters
avctxthe codec context
headerpointer to the first four bytes of the data packet

Definition at line 53 of file pcm-mpeg.c.

Referenced by pcm_bluray_decode_frame().

Variable Documentation

AVCodec ff_pcm_bluray_decoder
Initial value:
= {
.name = "pcm_bluray",
.priv_data_size = sizeof(PCMBRDecode),
.capabilities = CODEC_CAP_DR1,
.sample_fmts = (const enum AVSampleFormat[]){
},
.long_name = NULL_IF_CONFIG_SMALL("PCM signed 16|20|24-bit big-endian for Blu-ray media"),
}
static int pcm_bluray_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: pcm-mpeg.c:138
static av_cold int pcm_bluray_decode_init(AVCodecContext *avctx)
Definition: pcm-mpeg.c:128
signed 16 bits
Definition: samplefmt.h:52
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:335
sample_fmts
Definition: avconv_filter.c:63
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:88
signed 32 bits
Definition: samplefmt.h:53
AV_SAMPLE_FMT_NONE
Definition: avconv_filter.c:63
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:49
struct PCMBRDecode PCMBRDecode

Definition at line 318 of file pcm-mpeg.c.