FFmpeg
Data Structures | Functions | Variables
sapenc.c File Reference
#include "avformat.h"
#include "libavutil/parseutils.h"
#include "libavutil/random_seed.h"
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/time.h"
#include "internal.h"
#include "mux.h"
#include "network.h"
#include "os_support.h"
#include "rtpenc_chain.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  SAPState
 

Functions

static int sap_write_close (AVFormatContext *s)
 
static int sap_write_header (AVFormatContext *s)
 
static int sap_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_sap_muxer
 

Function Documentation

◆ sap_write_close()

static int sap_write_close ( AVFormatContext s)
static

Definition at line 43 of file sapenc.c.

Referenced by sap_write_header().

◆ sap_write_header()

static int sap_write_header ( AVFormatContext s)
static

Definition at line 69 of file sapenc.c.

◆ sap_write_packet()

static int sap_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 254 of file sapenc.c.

Variable Documentation

◆ ff_sap_muxer

const FFOutputFormat ff_sap_muxer
Initial value:
= {
.p.name = "sap",
.p.long_name = NULL_IF_CONFIG_SMALL("SAP output"),
.priv_data_size = sizeof(struct SAPState),
.p.audio_codec = AV_CODEC_ID_AAC,
.p.video_codec = AV_CODEC_ID_MPEG4,
.write_header = sap_write_header,
.write_packet = sap_write_packet,
.write_trailer = sap_write_close,
}

Definition at line 271 of file sapenc.c.

sap_write_packet
static int sap_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: sapenc.c:254
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:64
SAPState
Definition: sapdec.c:35
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: codec_id.h:440
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:115
AVFMT_NOFILE
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:468
AVFMT_GLOBALHEADER
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:478
sap_write_header
static int sap_write_header(AVFormatContext *s)
Definition: sapenc.c:69
sap_write_close
static int sap_write_close(AVFormatContext *s)
Definition: sapenc.c:43