FFmpeg
|
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include <float.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "libavutil/dict.h"
#include "libavutil/opt.h"
#include "fits.h"
Go to the source code of this file.
Data Structures | |
struct | FITSContext |
Macros | |
#define | CASE_N(a, t, rd) |
#define | CASE_RGB(cas, dst, type, dref) |
#define | CASE_GRAY(cas, dst, type, t, rd) |
Functions | |
static int | fill_data_min_max (const uint8_t *ptr8, FITSHeader *header, const uint8_t *end) |
Calculate the data_min and data_max values from the data. More... | |
static int | fits_read_header (AVCodecContext *avctx, const uint8_t **ptr, FITSHeader *header, const uint8_t *end, AVDictionary **metadata) |
Read the fits header and store the values in FITSHeader pointed by header. More... | |
static int | fits_decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt) |
Variables | |
static const AVOption | fits_options [] |
static const AVClass | fits_decoder_class |
const FFCodec | ff_fits_decoder |
FITS image decoder
Specification: https://fits.gsfc.nasa.gov/fits_standard.html Version 3.0
Support all 2d images alongwith, bzero, bscale and blank keywords. RGBA images are supported as NAXIS3 = 3 or 4 i.e. Planes in RGBA order. Also CTYPE = 'RGB ' should be present. Also to interpret data, values are linearly scaled using min-max scaling but not RGB images.
Definition in file fitsdec.c.
#define CASE_N | ( | a, | |
t, | |||
rd | |||
) |
#define CASE_RGB | ( | cas, | |
dst, | |||
type, | |||
dref | |||
) |
#define CASE_GRAY | ( | cas, | |
dst, | |||
type, | |||
t, | |||
rd | |||
) |
|
static |
Calculate the data_min and data_max values from the data.
This is called if the values are not present in the header.
ptr8 | pointer to the data |
header | pointer to the header |
end | pointer to end of packet |
Definition at line 56 of file fitsdec.c.
Referenced by fits_read_header().
|
static |
Read the fits header and store the values in FITSHeader pointed by header.
avctx | AVCodec context |
ptr | pointer to pointer to the data |
header | pointer to the FITSHeader |
end | pointer to end of packet |
metadata | pointer to pointer to AVDictionary to store metadata |
Definition at line 106 of file fitsdec.c.
Referenced by fits_decode_frame().
|
static |
|
static |
|
static |
const FFCodec ff_fits_decoder |