blob: b3a6fe5394764a0ebb7c7057a5b7cc5272059cfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Information about Dirac files
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//---------------------------------------------------------------------------
#ifndef MediaInfo_File_DiracH
#define MediaInfo_File_DiracH
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include "MediaInfo/File__Analyze.h"
//---------------------------------------------------------------------------
namespace MediaInfoLib
{
//***************************************************************************
// Class File_Dirac
//***************************************************************************
class File_Dirac : public File__Analyze
{
public :
//In
int64u Frame_Count_Valid;
bool Ignore_End_of_Sequence;
//Constructor/Destructor
File_Dirac();
private :
//Streams management
void Streams_Fill();
void Streams_Finish();
//Buffer - File header
bool FileHeader_Begin() {return FileHeader_Begin_0x000001();}
//Buffer - Synchro
bool Synchronize();
bool Synched_Test();
void Synched_Init();
//Buffer - Per element
void Header_Parse();
bool Header_Parser_QuickSearch();
bool Header_Parser_Fill_Size();
void Data_Parse();
//Elements
void Sequence_header();
void End_of_Sequence();
void Auxiliary_data();
void Padding_data();
void Intra_Reference_Picture();
void Intra_Non_Reference_Picture();
void Intra_Reference_Picture_No();
void Intra_Non_Reference_Picture_No();
void Inter_Reference_Picture_1();
void Inter_Reference_Picture_2();
void Inter_Non_Reference_Picture_1();
void Inter_Non_Reference_Picture_2();
void Reference_Picture_Low();
void Intra_Non_Reference_Picture_Low();
void Reserved();
void picture();
//Streams
struct stream
{
bool Searching_Payload;
stream()
{
Searching_Payload=false;
}
};
std::vector<stream> Streams;
//Temp
int32u frame_width;
int32u frame_height;
int32u chroma_format;
int32u source_sampling;
int32u clean_width;
int32u clean_height;
int32u clean_left_offset;
int32u clean_top_offset;
float32 frame_rate;
float32 pixel_aspect_ratio;
};
} //NameSpace
#endif
|