FFmpeg
Loading...
Searching...
No Matches
astcenc.c File Reference

ASTC (Adaptive Scalable Texture Compression) muxer. More...

#include "avformat.h"
#include "avio.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  ASTCMuxerContext
 

Macros

#define ASTC_HEADER_SIZE   16
 

Functions

static int astc_write_header (AVFormatContext *s)
 
static int astc_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_astc_muxer
 

Detailed Description

ASTC (Adaptive Scalable Texture Compression) muxer.

The .astc container is a 16-byte header followed by the raw ASTC bitstream. The header is taken verbatim from the encoder's extradata (which it publishes in .astc form).

Definition in file astcenc.c.

Macro Definition Documentation

◆ ASTC_HEADER_SIZE

#define ASTC_HEADER_SIZE   16

Definition at line 35 of file astcenc.c.

Function Documentation

◆ astc_write_header()

static int astc_write_header ( AVFormatContext * s)
static

Definition at line 41 of file astcenc.c.

◆ astc_write_packet()

static int astc_write_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 55 of file astcenc.c.

Variable Documentation

◆ ff_astc_muxer

const FFOutputFormat ff_astc_muxer
Initial value:
= {
.p.name = "astc",
.p.long_name = NULL_IF_CONFIG_SMALL("ASTC (Adaptive Scalable Texture Compression)"),
.p.mime_type = "image/astc",
.p.extensions = "astc",
.p.audio_codec = AV_CODEC_ID_NONE,
.p.video_codec = AV_CODEC_ID_ASTC,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.priv_data_size = sizeof(ASTCMuxerContext),
.p.flags = AVFMT_NOTIMESTAMPS,
}
static int astc_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition astcenc.c:55
static int astc_write_header(AVFormatContext *s)
Definition astcenc.c:41
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:500
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition ffmpeg_mux.c:205
static void write_header(FFV1Context *f)
Definition ffv1enc.c:384
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_ASTC
Definition codec_id.h:327
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:97
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition mux.h:50
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition mux.h:59

Definition at line 72 of file astcenc.c.