FFmpeg
Data Structures | Functions | Variables
fitsenc.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  FITSContext
 

Functions

static int fits_write_header (AVFormatContext *s)
 
static int write_keyword_value (AVFormatContext *s, const char *fmt, const char *keyword, void *value, int *lines_written)
 Write one header line comprising of keyword and value(int) More...
 
static int write_image_header (AVFormatContext *s)
 
static int fits_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_fits_muxer
 

Detailed Description

FITS muxer.

Definition in file fitsenc.c.

Function Documentation

◆ fits_write_header()

static int fits_write_header ( AVFormatContext s)
static

Definition at line 35 of file fitsenc.c.

◆ write_keyword_value()

static int write_keyword_value ( AVFormatContext s,
const char *  fmt,
const char *  keyword,
void *  value,
int lines_written 
)
static

Write one header line comprising of keyword and value(int)

Parameters
sAVFormat Context
keywordpointer to the char array in which keyword is stored
valuethe value corresponding to the keyword
lines_writtento keep track of lines written so far
Returns
0

Definition at line 50 of file fitsenc.c.

Referenced by write_image_header().

◆ write_image_header()

static int write_image_header ( AVFormatContext s)
static

Definition at line 76 of file fitsenc.c.

Referenced by fits_write_packet().

◆ fits_write_packet()

static int fits_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 186 of file fitsenc.c.

Variable Documentation

◆ ff_fits_muxer

const FFOutputFormat ff_fits_muxer
Initial value:
= {
.p.name = "fits",
.p.long_name = NULL_IF_CONFIG_SMALL("Flexible Image Transport System"),
.p.extensions = "fits",
.p.audio_codec = AV_CODEC_ID_NONE,
.p.video_codec = AV_CODEC_ID_FITS,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.priv_data_size = sizeof(FITSContext),
.p.flags = AVFMT_NOTIMESTAMPS,
}

Definition at line 195 of file fitsenc.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
FITSContext
Definition: fitsdec.c:43
FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
#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
fits_write_packet
static int fits_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: fitsenc.c:186
AV_CODEC_ID_FITS
@ AV_CODEC_ID_FITS
Definition: codec_id.h:286
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
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#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
write_packet
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition: ffmpeg_mux.c:209
fits_write_header
static int fits_write_header(AVFormatContext *s)
Definition: fitsenc.c:35
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:345