FFmpeg
Functions | Variables
framecrcenc.c File Reference
#include <inttypes.h>
#include "libavutil/adler32.h"
#include "libavutil/avstring.h"
#include "libavcodec/codec_id.h"
#include "libavcodec/codec_par.h"
#include "libavcodec/packet.h"
#include "avformat.h"
#include "internal.h"
#include "mux.h"

Go to the source code of this file.

Functions

static int framecrc_write_header (struct AVFormatContext *s)
 
static int framecrc_write_packet (struct AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_framecrc_muxer
 

Function Documentation

◆ framecrc_write_header()

static int framecrc_write_header ( struct AVFormatContext s)
static

Definition at line 35 of file framecrcenc.c.

◆ framecrc_write_packet()

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

Definition at line 51 of file framecrcenc.c.

Variable Documentation

◆ ff_framecrc_muxer

const FFOutputFormat ff_framecrc_muxer
Initial value:
= {
.p.name = "framecrc",
.p.long_name = NULL_IF_CONFIG_SMALL("framecrc testing"),
.p.audio_codec = AV_CODEC_ID_PCM_S16LE,
.p.video_codec = AV_CODEC_ID_RAWVIDEO,
.write_header = framecrc_write_header,
.write_packet = framecrc_write_packet,
}

Definition at line 73 of file framecrcenc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:334
AVFMT_NODIMENSIONS
#define AVFMT_NODIMENSIONS
Format does not need width/height.
Definition: avformat.h:483
AVFMT_VARIABLE_FPS
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:482
AV_CODEC_ID_RAWVIDEO
@ AV_CODEC_ID_RAWVIDEO
Definition: codec_id.h:65
framecrc_write_packet
static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
Definition: framecrcenc.c:51
framecrc_write_header
static int framecrc_write_header(struct AVFormatContext *s)
Definition: framecrcenc.c:35
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
AVFMT_TS_NEGATIVE
#define AVFMT_TS_NEGATIVE
Format allows muxing negative timestamps.
Definition: avformat.h:494
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:491