29 #define SER_MAGIC "LUCAM-RECORDER"
50 int depth, color_id, endian;
121 #define OFFSET(x) offsetof(SERDemuxerContext, x)
122 #define DEC AV_OPT_FLAG_DECODING_PARAM
137 .long_name =
NULL_IF_CONFIG_SMALL(
"SER (Simple uncompressed video format for astronomical capturing)"),
145 .priv_class = &ser_demuxer_class,
static enum AVPixelFormat pix_fmt
static int ser_probe(AVProbeData *pd)
#define LIBAVUTIL_VERSION_INT
packed RGB 8:8:8, 24bpp, RGBRGB...
int64_t pos
byte position in stream, -1 if unknown
bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples */
bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples */
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
const char * av_default_item_name(void *ptr)
Return the context name.
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian */
AVFormatInternal * internal
An opaque field for libavformat internal usage.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples */
static int ser_read_header(AVFormatContext *s)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian */
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian */
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian */
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
int av_image_get_buffer_size(enum AVPixelFormat pix_fmt, int width, int height, int align)
Return the size in bytes of the amount of data required to store an image with the given parameters...
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
static const AVClass ser_demuxer_class
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as lit...
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
packed RGB 8:8:8, 24bpp, BGRBGR...
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big...
static int read_header(FFV1Context *f)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static const AVOption ser_options[]
AVIOContext * pb
I/O context.
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian */
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian */
AVInputFormat ff_ser_demuxer
Describe the class of an AVClass context structure.
Rational number (pair of numerator and denominator).
offset must point to AVRational
This structure contains the data a format has to probe a file.
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian */
#define flags(name, subs,...)
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian */
int64_t duration
Decoding: duration of the stream, in stream time base.
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples */
int64_t nb_frames
number of frames in this stream if known or 0
struct AVInputFormat * iformat
The input container format.
void * priv_data
Format private data.
Y , 16bpp, little-endian.
static int ser_read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVPixelFormat
Pixel format.
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...