-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maxime Gervais <[email protected]>
- Loading branch information
Showing
16 changed files
with
253 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a MIT-style license that can | ||
* be found in the License.html file in the root of the source tree. | ||
*/ | ||
|
||
//--------------------------------------------------------------------------- | ||
#include "Common/mp4/mp4_.h" | ||
//--------------------------------------------------------------------------- | ||
|
||
//*************************************************************************** | ||
// Read | ||
//*************************************************************************** | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_mdia_minf_gmhd::Read_Internal () | ||
{ | ||
SUBS_BEGIN(); | ||
SUB_ELEMENT(moov_trak_mdia_minf_gmhd_tmcd); | ||
SUBS_END(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a MIT-style license that can | ||
* be found in the License.html file in the root of the source tree. | ||
*/ | ||
|
||
//--------------------------------------------------------------------------- | ||
#include "Common/mp4/mp4_.h" | ||
//--------------------------------------------------------------------------- | ||
|
||
//*************************************************************************** | ||
// Read | ||
//*************************************************************************** | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_mdia_minf_gmhd_tmcd::Read_Internal () | ||
{ | ||
Global->moov_trak.back()->IsTimeCode=true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Source/Common/mp4/mp4_moov_trak_mdia_minf_stbl_stsd_xxxxUnknown.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a MIT-style license that can | ||
* be found in the License.html file in the root of the source tree. | ||
*/ | ||
|
||
//--------------------------------------------------------------------------- | ||
#include "Common/mp4/mp4_.h" | ||
//--------------------------------------------------------------------------- | ||
|
||
//*************************************************************************** | ||
// Read | ||
//*************************************************************************** | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_mdia_minf_stbl_stsd_xxxxUnknown::Read_Internal () | ||
{ | ||
if (Chunk.Header.Name==Elements::moov_trak_mdia_minf_stbl_stsd_tmcd) | ||
{ | ||
Global->moov_trak.back()->moov_trak_mdia_minf_stbl_stsd_tmcd_Present=true; | ||
Global->TimeCode_Track_Present=true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a MIT-style license that can | ||
* be found in the License.html file in the root of the source tree. | ||
*/ | ||
|
||
//--------------------------------------------------------------------------- | ||
#include "Common/mp4/mp4_.h" | ||
//--------------------------------------------------------------------------- | ||
|
||
//*************************************************************************** | ||
// Read | ||
//*************************************************************************** | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_tref::Read_Internal () | ||
{ | ||
SUBS_BEGIN(); | ||
SUB_ELEMENT(moov_trak_tref_tmcd); | ||
SUBS_END(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a MIT-style license that can | ||
* be found in the License.html file in the root of the source tree. | ||
*/ | ||
|
||
//--------------------------------------------------------------------------- | ||
#include "Common/mp4/mp4_.h" | ||
//--------------------------------------------------------------------------- | ||
|
||
#include <iostream> | ||
|
||
//*************************************************************************** | ||
// Read | ||
//*************************************************************************** | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_tref_tmcd::Read_Internal() | ||
{ | ||
Read_Internal_ReadAllInBuffer(); | ||
} | ||
|
||
//*************************************************************************** | ||
// Modify | ||
//*************************************************************************** | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_tref_tmcd::Modify_Internal() | ||
{ | ||
if (Chunk.Content.IsModified) | ||
return; | ||
|
||
if (Global->TimeCode_Track_Delete) | ||
{ | ||
Chunk.Content.IsRemovable = true; | ||
return; | ||
} | ||
|
||
Chunk.Content.IsModified=true; | ||
Chunk.Content.Size_IsModified=true; | ||
} | ||
|
||
//--------------------------------------------------------------------------- | ||
void mp4_moov_trak_tref_tmcd::Write_Internal() | ||
{ | ||
mp4_Base::Write_Internal(Chunk.Content.Buffer, (size_t)Chunk.Content.Size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.