49 const char *keyword,
void *
value,
int *lines_written)
54 len = strlen(keyword);
61 if (!strcmp(fmt,
"%d")) {
67 memset(&
header[ret + 10],
' ',
sizeof(
header) - (ret + 10));
80 int bitpix, naxis, naxis3 = 1, bzero = 0,
rgb = 0, lines_written = 0, lines_left;
81 int pcount = 0, gcount = 1;
82 float datamax, datamin;
130 memcpy(
buffer,
"SIMPLE = ", 10);
131 memset(
buffer + 10,
' ', 70);
135 memcpy(
buffer,
"XTENSION= 'IMAGE '", 20);
136 memset(
buffer + 20,
' ', 60);
168 memcpy(
buffer,
"CTYPE3 = 'RGB '", 20);
169 memset(
buffer + 20,
' ', 60);
175 memset(
buffer + 3,
' ', 77);
179 lines_left = ((lines_written + 35) / 36) * 36 - lines_written;
181 while (lines_left > 0) {
200 .extensions =
"fits",
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
static void write_header(FFV1Context *f)
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_GRAY16BE
Y , 16bpp, big-endian.
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_GBRAP16BE
planar GBRA 4:4:4:4 64bpp, big-endian
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
@ AV_PIX_FMT_GBRP16BE
planar GBR 4:4:4 48bpp, big-endian
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
static const uint8_t header[24]
This struct describes the properties of an encoded stream.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.