CuteLogger
Fast and simple logging solution for Qt based applications
mpeg4_container.h
1#pragma once
2/*****************************************************************************
3 *
4 * Copyright 2016 Varol Okan. All rights reserved.
5 * Copyright (c) 2026 Meltytech, LLC
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ****************************************************************************/
20
21// MPEG4 processing classes.
22//
23// Functions for loading MP4/MOV files and manipulating boxes.
24
25#include "constants.h"
26#include "container.h"
27#include "box.h"
28
29#include <memory>
30
31class Mpeg4Container : public Container
32{
33 public:
34 Mpeg4Container ( );
35 virtual ~Mpeg4Container ( );
36
37 static std::unique_ptr<Mpeg4Container> load ( std::fstream & ); //, uint32_t iPos, uint32_t iEnd );
38
39 void merge ( Box * );
40 virtual void print_structure ( const char *p="" );
41 virtual void save ( std::fstream &, std::fstream &, int32_t );
42
43public:
44 Box *m_pMoovBox;
45 Box *m_pFreeBox;
46 Box *m_pFTYPBox;
47 Mpeg4Container *m_pFirstMDatBox;
48 uint32_t m_iFirstMDatPos;
49};
50