FFmpeg
Loading...
Searching...
No Matches
pcm-bluray.c File Reference

PCM codec for Blu-ray PCM audio tracks. More...

#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.
 
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,
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition codec.h:94
@ AV_CODEC_ID_PCM_BLURAY
Definition codec_id.h:354
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition pcm-bluray.c:125

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