FFmpeg
Data Structures | Functions | Variables
crcenc.c File Reference
#include <inttypes.h>
#include "libavutil/adler32.h"
#include "avformat.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 AVOutputFormat ff_crc_muxer
 

Function Documentation

◆ crc_init()

static int crc_init ( struct AVFormatContext s)
static

Definition at line 31 of file crcenc.c.

◆ crc_write_packet()

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

Definition at line 41 of file crcenc.c.

◆ crc_write_trailer()

static int crc_write_trailer ( struct AVFormatContext s)
static

Definition at line 48 of file crcenc.c.

Variable Documentation

◆ ff_crc_muxer

const AVOutputFormat ff_crc_muxer
Initial value:
= {
.name = "crc",
.long_name = NULL_IF_CONFIG_SMALL("CRC testing"),
.priv_data_size = sizeof(CRCState),
.audio_codec = AV_CODEC_ID_PCM_S16LE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
}

Definition at line 57 of file crcenc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:314
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:475
AV_CODEC_ID_RAWVIDEO
@ AV_CODEC_ID_RAWVIDEO
Definition: codec_id.h:63
crc_init
static int crc_init(struct AVFormatContext *s)
Definition: crcenc.c:31
init
static int init
Definition: av_tx.c:47
crc_write_packet
static int crc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
Definition: crcenc.c:41
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
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
crc_write_trailer
static int crc_write_trailer(struct AVFormatContext *s)
Definition: crcenc.c:48
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:727
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
CRCState
Definition: crcenc.c:27