FFmpeg  4.0
Data Structures | Functions | Variables
fitsenc.c File Reference

FITS muxer. More...

#include "internal.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 *keyword, int 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

AVOutputFormat 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 33 of file fitsenc.c.

◆ write_keyword_value()

static int write_keyword_value ( AVFormatContext s,
const char *  keyword,
int  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 48 of file fitsenc.c.

Referenced by write_image_header().

◆ write_image_header()

static int write_image_header ( AVFormatContext s)
static

Definition at line 68 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 169 of file fitsenc.c.

Variable Documentation

◆ ff_fits_muxer

AVOutputFormat ff_fits_muxer
Initial value:
= {
.name = "fits",
.long_name = NULL_IF_CONFIG_SMALL("Flexible Image Transport System"),
.extensions = "fits",
.priv_data_size = sizeof(FITSContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_FITS,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:679
static int fits_write_header(AVFormatContext *s)
Definition: fitsenc.c:33
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int fits_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: fitsenc.c:169
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337

Definition at line 178 of file fitsenc.c.