FFmpeg
Data Structures | Functions | Variables
fitsenc.c File Reference
#include "avio_internal.h"
#include "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,
.priv_data_size = sizeof(FITSContext),
}

Definition at line 195 of file fitsenc.c.

FITSContext
Definition: fitsdec.c:43
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:289
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
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
write_packet
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition: ffmpeg_mux.c:61
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:346