22 #include "libavutil/intreadwrite.h"
23 #include "libavutil/intfloat.h"
void av_free_packet(AVPacket *pkt)
Free a packet.
static int thp_read_header(AVFormatContext *s)
AVInputFormat ff_thp_demuxer
AVCodecContext * codec
Codec context associated with this stream.
int index
stream index in AVFormatContext
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static double av_q2d(AVRational a)
Convert rational to double.
unsigned char components[16]
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_always_inline float av_int2float(uint32_t i)
Reinterpret a 32-bit integer as a float.
static int thp_probe(AVProbeData *p)
AVRational av_d2q(double d, int max) av_const
Convert a double precision floating point number to a rational.
int width
picture width / height.
static int read_header(FFV1Context *f)
enum AVMediaType codec_type
int sample_rate
samples per second
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVIOContext * pb
I/O context.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
rational number numerator/denominator
This structure contains the data a format has to probe a file.
#define MKTAG(a, b, c, d)
static int thp_read_packet(AVFormatContext *s, AVPacket *pkt)
int channels
number of audio channels
This structure stores compressed data.