#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "internal.h"
#include "riff.h"
Go to the source code of this file.
Data Structures | |
struct | LXFDemuxContext |
Defines | |
#define | LXF_MAX_PACKET_HEADER_SIZE 256 |
#define | LXF_HEADER_DATA_SIZE 120 |
#define | LXF_IDENT "LEITCH\0" |
#define | LXF_IDENT_LENGTH 8 |
#define | LXF_SAMPLERATE 48000 |
#define | LXF_MAX_AUDIO_PACKET (8008*15*4) |
15-channel 32-bit NTSC audio frame | |
Functions | |
static int | lxf_probe (AVProbeData *p) |
static int | check_checksum (const uint8_t *header, int size) |
Verify the checksum of an LXF packet header. | |
static int | sync (AVFormatContext *s, uint8_t *header) |
Read input until we find the next ident. | |
static int | get_packet_header (AVFormatContext *s) |
Read and checksum the next packet header. | |
static int | lxf_read_header (AVFormatContext *s) |
static void | deplanarize (LXFDemuxContext *lxf, AVStream *ast, uint8_t *out, int bytes) |
De-planerize the PCM data in lxf->temp FIXME: remove this once support for planar audio is added to libavcodec. | |
static int | lxf_read_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
static const AVCodecTag | lxf_tags [] |
AVInputFormat | ff_lxf_demuxer |
#define LXF_HEADER_DATA_SIZE 120 |
#define LXF_IDENT "LEITCH\0" |
#define LXF_IDENT_LENGTH 8 |
#define LXF_MAX_AUDIO_PACKET (8008*15*4) |
15-channel 32-bit NTSC audio frame
Definition at line 33 of file lxfdec.c.
Referenced by lxf_read_packet().
#define LXF_MAX_PACKET_HEADER_SIZE 256 |
#define LXF_SAMPLERATE 48000 |
Verify the checksum of an LXF packet header.
[in] | header | the packet header to check |
Definition at line 70 of file lxfdec.c.
Referenced by get_packet_header().
static void deplanarize | ( | LXFDemuxContext * | lxf, | |
AVStream * | ast, | |||
uint8_t * | out, | |||
int | bytes | |||
) | [static] |
De-planerize the PCM data in lxf->temp FIXME: remove this once support for planar audio is added to libavcodec.
[out] | out | where to write the de-planerized data to |
[in] | bytes | the total size of the PCM data |
Definition at line 298 of file lxfdec.c.
Referenced by lxf_read_packet().
static int get_packet_header | ( | AVFormatContext * | s | ) | [static] |
Read and checksum the next packet header.
Definition at line 113 of file lxfdec.c.
Referenced by lxf_read_header(), and lxf_read_packet().
static int lxf_probe | ( | AVProbeData * | p | ) | [static] |
static int lxf_read_header | ( | AVFormatContext * | s | ) | [static] |
static int lxf_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int sync | ( | AVFormatContext * | s, | |
uint8_t * | header | |||
) | [static] |
Read input until we find the next ident.
If found, copy it to the header buffer
[out] | header | where to copy the ident to |
Definition at line 87 of file lxfdec.c.
Referenced by avi_sync(), ff_gen_syncpoint_search(), get_packet_header(), ogg_read_page(), opt_map(), rm_read_dts(), and rm_read_packet().
Initial value:
{ .name = "lxf", .long_name = NULL_IF_CONFIG_SMALL("VR native stream (LXF)"), .priv_data_size = sizeof(LXFDemuxContext), .read_probe = lxf_probe, .read_header = lxf_read_header, .read_packet = lxf_read_packet, .codec_tag = (const AVCodecTag* const []){lxf_tags, 0}, }
const AVCodecTag lxf_tags[] [static] |
Initial value:
{ { AV_CODEC_ID_MJPEG, 0 }, { AV_CODEC_ID_MPEG1VIDEO, 1 }, { AV_CODEC_ID_MPEG2VIDEO, 2 }, { AV_CODEC_ID_MPEG2VIDEO, 3 }, { AV_CODEC_ID_DVVIDEO, 4 }, { AV_CODEC_ID_DVVIDEO, 5 }, { AV_CODEC_ID_DVVIDEO, 6 }, { AV_CODEC_ID_RAWVIDEO, 7 }, { AV_CODEC_ID_RAWVIDEO, 8 }, { AV_CODEC_ID_MPEG2VIDEO, 9 }, { AV_CODEC_ID_NONE, 0 }, }