FFmpeg  4.0
Functions | Variables
fitsenc.c File Reference

FITS image encoder. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int fits_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 

Variables

AVCodec ff_fits_encoder
 

Detailed Description

FITS image encoder.

Specification: https://fits.gsfc.nasa.gov/fits_standard.html Version 3.0

RGBA images are encoded as planes in RGBA order. So, NAXIS3 is 3 or 4 for them. Also CTYPE3 = 'RGB ' is added to the header to distinguish them from 3d images.

Definition in file fitsenc.c.

Function Documentation

◆ fits_encode_frame()

static int fits_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int got_packet 
)
static

Definition at line 37 of file fitsenc.c.

Variable Documentation

◆ ff_fits_encoder

AVCodec ff_fits_encoder
Initial value:
= {
.name = "fits",
.long_name = NULL_IF_CONFIG_SMALL("Flexible Image Transport System"),
.encode2 = fits_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_GBRAP16BE,
}
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:164
planar GBRA 4:4:4:4 64bpp, big-endian
Definition: pixfmt.h:212
planar GBR 4:4:4 48bpp, big-endian
Definition: pixfmt.h:170
#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_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: fitsenc.c:37
Y , 16bpp, big-endian.
Definition: pixfmt.h:93
Y , 8bpp.
Definition: pixfmt.h:70
planar GBRA 4:4:4:4 32bpp
Definition: pixfmt.h:211
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60

Definition at line 116 of file fitsenc.c.