FFmpeg
Data Structures | Functions | Variables
crcenc.c File Reference
#include <inttypes.h>
#include "libavutil/adler32.h"
#include "avformat.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  CRCState
 

Functions

static int crc_init (struct AVFormatContext *s)
 
static int crc_write_packet (struct AVFormatContext *s, AVPacket *pkt)
 
static int crc_write_trailer (struct AVFormatContext *s)
 

Variables

const FFOutputFormat ff_crc_muxer
 

Function Documentation

◆ crc_init()

static int crc_init ( struct AVFormatContext s)
static

Definition at line 32 of file crcenc.c.

◆ crc_write_packet()

static int crc_write_packet ( struct AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 42 of file crcenc.c.

◆ crc_write_trailer()

static int crc_write_trailer ( struct AVFormatContext s)
static

Definition at line 49 of file crcenc.c.

Variable Documentation

◆ ff_crc_muxer

const FFOutputFormat ff_crc_muxer
Initial value:
= {
.p.name = "crc",
.p.long_name = NULL_IF_CONFIG_SMALL("CRC testing"),
.priv_data_size = sizeof(CRCState),
.p.audio_codec = AV_CODEC_ID_PCM_S16LE,
.p.video_codec = AV_CODEC_ID_RAWVIDEO,
.init = crc_init,
.write_packet = crc_write_packet,
.write_trailer = crc_write_trailer,
.p.flags = AVFMT_NOTIMESTAMPS,
}

Definition at line 58 of file crcenc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:334
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
AV_CODEC_ID_RAWVIDEO
@ AV_CODEC_ID_RAWVIDEO
Definition: codec_id.h:65
crc_init
static int crc_init(struct AVFormatContext *s)
Definition: crcenc.c:32
crc_write_packet
static int crc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
Definition: crcenc.c:42
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:94
crc_write_trailer
static int crc_write_trailer(struct AVFormatContext *s)
Definition: crcenc.c:49
CRCState
Definition: crcenc.c:28