FFmpeg
Functions | Variables
pcm-bluray.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.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, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

const AVCodec 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 53 of file pcm-bluray.c.

Referenced by pcm_bluray_decode_frame().

◆ pcm_bluray_decode_frame()

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

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

Variable Documentation

◆ ff_pcm_bluray_decoder

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

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

AV_CODEC_ID_PCM_BLURAY
@ AV_CODEC_ID_PCM_BLURAY
Definition: codec_id.h:336
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
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:104
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
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:59
pcm_bluray_decode_frame
static int pcm_bluray_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: pcm-bluray.c:126
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:61
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:62