FFmpeg
Functions | Variables
pcm-bluray.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Functions

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

Variables

const FFCodec ff_pcm_bluray_decoder
 

Detailed Description

PCM codec for Blu-ray PCM audio tracks

Definition in file pcm-bluray.c.

Function Documentation

◆ pcm_bluray_parse_header()

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

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

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

Definition at line 54 of file pcm-bluray.c.

Referenced by pcm_bluray_decode_frame().

◆ pcm_bluray_decode_frame()

static int pcm_bluray_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 125 of file pcm-bluray.c.

Variable Documentation

◆ ff_pcm_bluray_decoder

const FFCodec ff_pcm_bluray_decoder
Initial value:
= {
.p.name = "pcm_bluray",
CODEC_LONG_NAME("PCM signed 16|20|24-bit big-endian for Blu-ray media"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.sample_fmts = (const enum AVSampleFormat[]){
},
}

Definition at line 303 of file pcm-bluray.c.

AV_CODEC_ID_PCM_BLURAY
@ AV_CODEC_ID_PCM_BLURAY
Definition: codec_id.h:358
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:106
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:56
pcm_bluray_decode_frame
static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: pcm-bluray.c:125
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:55
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:58
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:59