9#define LIST_HEADER_SIZE 12
10#define CHUNK_HEADER_SIZE 8
56 return ptr ==
nullptr ? -1l : ptr -
vector.
data();
168 void set(
size_t currentPos,
const char *
id,
size_t size,
264 int bufferSize = 1024) {
268 if (videoOut !=
nullptr) {
302 virtual size_t write(
const uint8_t *data,
size_t len)
override {
303 LOGD(
"write: %d", (
int)len);
577 LOGD(
"audio %d", (
int)to_write);
585 LOGD(
"video %d", (
int)to_write);
598 if (
getStr(0, 4).equals(
"RIFF")) {
600 uint32_t header_file_size =
getInt(4);
624 if (
getStr(0, 4).equals(
id)) {
633 if (list_id.
equals(
id) &&
getStr(0, 3).equals(
"LIST")) {
642 if (
getStr(0, 4).equals(
"LIST")) {
651 int chunk_size =
getInt(4);
663 if (
getStr(0, 4).equals(
"LIST") &&
getStr(8, 4).equals(
id)) {
#define LOGW(...)
Definition AudioLoggerIDF.h:29
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define LIST_HEADER_SIZE
Definition ContainerAVI.h:9
#define CHUNK_HEADER_SIZE
Definition ContainerAVI.h:10
char[4] FOURCC
Four-character code identifier for AVI format.
Definition ContainerAVI.h:66
AudioFormat
Audio format codes used by Microsoft e.g. in avi or wav files.
Definition AudioFormat.h:19
Definition ContainerAVI.h:68
uint32_t dwStreams
Definition ContainerAVI.h:77
uint32_t dwInitialFrames
Definition ContainerAVI.h:76
uint32_t dwMaxBytesPerSec
Definition ContainerAVI.h:72
uint32_t dwHeight
Definition ContainerAVI.h:80
uint32_t dwReserved[4]
Definition ContainerAVI.h:81
uint32_t dwFlags
Definition ContainerAVI.h:74
uint32_t dwPaddingGranularity
Definition ContainerAVI.h:73
uint32_t dwMicroSecPerFrame
Definition ContainerAVI.h:71
uint32_t dwSuggestedBufferSize
Definition ContainerAVI.h:78
uint32_t dwWidth
Definition ContainerAVI.h:79
uint32_t dwTotalFrames
Definition ContainerAVI.h:75