14 auto *dev =
static_cast<QIODevice *
>(opaque);
19 return dev->read(
reinterpret_cast<char *
>(
buf), buf_size);
24 auto dev =
static_cast<QIODevice *
>(opaque);
27 return dev->write(
reinterpret_cast<const char *
>(
buf), buf_size);
36 return AVERROR(EINVAL);
38 if (whence & AVSEEK_SIZE)
41 whence &= ~AVSEEK_FORCE;
43 if (whence == SEEK_CUR)
45 else if (whence == SEEK_END)
49 return AVERROR(EINVAL);
\inmodule QtCore \reentrant
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
virtual qint64 pos() const
For random-access devices, this function returns the position that data is written to or read from.
virtual bool isSequential() const
Returns true if this device is sequential; otherwise returns false.
virtual bool seek(qint64 pos)
For random-access devices, this function sets the current position to pos, returning true on success,...
int writeQIODevice(void *opaque, AvioWriteBufferType buf, int buf_size)
int64_t seekQIODevice(void *opaque, int64_t offset, int whence)
std::conditional_t< QT_FFMPEG_AVIO_WRITE_CONST, const uint8_t *, uint8_t * > AvioWriteBufferType
int readQIODevice(void *opaque, uint8_t *buf, int buf_size)
Combined button and popup list for selecting options.
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum GLuint GLintptr offset