FFmpeg
Data Structures | Enumerations | Functions
fits.h File Reference
#include <inttypes.h>
#include "libavutil/dict.h"

Go to the source code of this file.

Data Structures

struct  FITSHeader
 Structure to store the header keywords in FITS file. More...
 

Enumerations

enum  FITSHeaderState {
  STATE_SIMPLE, STATE_XTENSION, STATE_BITPIX, STATE_NAXIS,
  STATE_NAXIS_N, STATE_PCOUNT, STATE_GCOUNT, STATE_REST
}
 

Functions

int avpriv_fits_header_init (FITSHeader *header, FITSHeaderState state)
 Initialize a single header line. More...
 
int avpriv_fits_header_parse_line (void *avcl, FITSHeader *header, const uint8_t line[80], AVDictionary ***metadata)
 Parse a single header line. More...
 

Enumeration Type Documentation

◆ FITSHeaderState

Enumerator
STATE_SIMPLE 
STATE_XTENSION 
STATE_BITPIX 
STATE_NAXIS 
STATE_NAXIS_N 
STATE_PCOUNT 
STATE_GCOUNT 
STATE_REST 

Definition at line 29 of file fits.h.

Function Documentation

◆ avpriv_fits_header_init()

int avpriv_fits_header_init ( FITSHeader header,
FITSHeaderState  state 
)

Initialize a single header line.

Parameters
headerpointer to the header
statecurrent state of parsing the header
Returns
0 if successful otherwise AVERROR_INVALIDDATA

Definition at line 26 of file fits.c.

Referenced by fits_read_header(), and fits_read_packet().

◆ avpriv_fits_header_parse_line()

int avpriv_fits_header_parse_line ( void *  avcl,
FITSHeader header,
const uint8_t  line[80],
AVDictionary ***  metadata 
)

Parse a single header line.

Parameters
avclused in av_log
headerpointer to the header
lineone header line
metadataused to store metadata while decoding
Returns
0 if successful otherwise AVERROR_INVALIDDATA

Definition at line 108 of file fits.c.

Referenced by fits_read_header(), and is_image().