36 p->
buf[6] >= 8 && p->
buf[6] <= 28)
45 for (
i = 0;
i < 120;
i += 2) {
46 unsigned sample = ((unsigned)
src[
i + 0] << 25) + ((unsigned)
src[
i + 1] << 18);
56 for (
i = 0;
i < 120;
i += 3) {
59 sample = ((unsigned)
src[
i + 0] << 25) | ((unsigned)
src[
i + 1] << 18) | ((unsigned)
src[
i + 2] << 11);
68 for (
i = 0;
i < 120;
i += 4) {
71 sample = ((unsigned)
src[
i + 0] << 25) | ((unsigned)
src[
i + 1] << 18) | ((unsigned)
src[
i + 2] << 11) | ((unsigned)
src[
i + 3] << 4);
76 #define SDS_3BYTE_TO_INT_DECODE(x) (((x) & 0x7F) | (((x) & 0x7F00) >> 1) | (((x) & 0x7F0000) >> 2))
81 unsigned sample_period;
93 if (
s->bit_depth < 8 ||
s->bit_depth > 28)
96 if (
s->bit_depth < 14) {
99 }
else if (
s->bit_depth < 21) {
143 s->read_block(
s->data, (uint32_t *)
pkt->
data);
int64_t avio_size(AVIOContext *s)
Get the filesize.
unsigned int avio_rb16(AVIOContext *s)
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
unsigned int avio_rl24(AVIOContext *s)
int avio_r8(AVIOContext *s)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define flags(name, subs,...)
static int read_header(FFV1Context *f)
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
typedef void(RENAME(mix_any_func_type))
static void byte3_read(const uint8_t *src, uint32_t *dst)
static int sds_probe(const AVProbeData *p)
AVInputFormat ff_sds_demuxer
static int sds_read_header(AVFormatContext *ctx)
static void byte2_read(const uint8_t *src, uint32_t *dst)
#define SDS_3BYTE_TO_INT_DECODE(x)
static int sds_read_packet(AVFormatContext *ctx, AVPacket *pkt)
static void byte4_read(const uint8_t *src, uint32_t *dst)
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
AVIOContext * pb
I/O context.
void * priv_data
Format private data.
This structure stores compressed data.
int flags
A combination of AV_PKT_FLAG values.
int64_t pos
byte position in stream, -1 if unknown
This structure contains the data a format has to probe a file.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t duration
Decoding: duration of the stream, in stream time base.
void(* read_block)(const uint8_t *src, uint32_t *dst)