2020-11-11 20:06:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "PommeTypes.h"
|
2021-11-28 18:51:16 +00:00
|
|
|
#include "SoundMixer/cmixer.h"
|
2020-11-11 20:06:52 +00:00
|
|
|
|
|
|
|
#include <istream>
|
|
|
|
#include <queue>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Pomme::Video
|
|
|
|
{
|
|
|
|
struct Movie
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
FourCharCode videoFormat;
|
|
|
|
float videoFrameRate;
|
|
|
|
std::queue<std::vector<unsigned char>> videoFrames;
|
|
|
|
|
|
|
|
FourCharCode audioFormat;
|
|
|
|
int audioSampleRate;
|
|
|
|
int audioBitDepth;
|
|
|
|
int audioNChannels;
|
|
|
|
cmixer::WavStream audioStream;
|
|
|
|
unsigned audioSampleCount;
|
|
|
|
};
|
|
|
|
|
|
|
|
Movie ReadMoov(std::istream& f);
|
|
|
|
}
|