51 const char *keyword,
void *
value,
int *lines_written)
56 len = strlen(keyword);
63 if (!strcmp(fmt,
"%d")) {
69 memset(&
header[ret + 10],
' ',
sizeof(
header) - (ret + 10));
82 int bitpix, naxis, naxis3 = 1, bzero = 0,
rgb = 0, lines_written = 0, lines_left;
83 int pcount = 0, gcount = 1;
84 float datamax, datamin;
132 memcpy(
buffer,
"SIMPLE = ", 10);
133 memset(
buffer + 10,
' ', 70);
137 memcpy(
buffer,
"XTENSION= 'IMAGE '", 20);
138 memset(
buffer + 20,
' ', 60);
170 memcpy(
buffer,
"CTYPE3 = 'RGB '", 20);
171 memset(
buffer + 20,
' ', 60);
177 memset(
buffer + 3,
' ', 77);
181 lines_left = ((lines_written + 35) / 36) * 36 - lines_written;
198 .p.extensions =
"fits",
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
void ffio_fill(AVIOContext *s, int b, int64_t count)
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
static void write_header(FFV1Context *f)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
@ 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.
int height
The height of the video frame in pixels.
int width
The width of the video frame in pixels.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.