FFmpeg
|
#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/dict.h"
#include "libavutil/error.h"
#include "libavutil/log.h"
#include "fits.h"
Go to the source code of this file.
Macros | |
#define | CHECK_KEYWORD(key) |
#define | CHECK_VALUE(key, val) |
Functions | |
int | avpriv_fits_header_init (FITSHeader *header, FITSHeaderState state) |
Initialize a single header line. More... | |
static int | dict_set_if_not_null (AVDictionary ***metadata, char *keyword, char *value) |
static int | read_keyword_value (const uint8_t *ptr8, char *keyword, char *value) |
Extract keyword and value from a header line (80 bytes) and store them in keyword and value strings respectively. More... | |
int | avpriv_fits_header_parse_line (void *avcl, FITSHeader *header, const uint8_t line[80], AVDictionary ***metadata) |
Parse a single header line. More... | |
#define CHECK_KEYWORD | ( | key | ) |
int avpriv_fits_header_init | ( | FITSHeader * | header, |
FITSHeaderState | state | ||
) |
Initialize a single header line.
header | pointer to the header |
state | current state of parsing the header |
Definition at line 31 of file fits.c.
Referenced by fits_read_header(), and fits_read_packet().
|
static |
Definition at line 48 of file fits.c.
Referenced by avpriv_fits_header_parse_line().
|
static |
Extract keyword and value from a header line (80 bytes) and store them in keyword and value strings respectively.
ptr8 | pointer to the data |
keyword | pointer to the char array in which keyword is to be stored |
value | pointer to the char array in which value is to be stored |
Definition at line 62 of file fits.c.
Referenced by 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.
avcl | used in av_log |
header | pointer to the header |
line | one header line |
metadata | used to store metadata while decoding |
Definition at line 113 of file fits.c.
Referenced by fits_read_header(), and is_image().