FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

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

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:168
planar GBRA 4:4:4:4 64bpp, big-endian
Definition: pixfmt.h:216
planar GBR 4:4:4 48bpp, big-endian
Definition: pixfmt.h:174
#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:97
Y , 8bpp.
Definition: pixfmt.h:74
planar GBRA 4:4:4:4 32bpp
Definition: pixfmt.h:215
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64

Definition at line 116 of file fitsenc.c.