Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6928ea7e
Commit
6928ea7e
authored
Aug 16, 2014
by
Ben Hagen
Committed by
Michael Niedermayer
Aug 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cinedec: add shutter and crop metadata
parent
e7f3b507
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
cinedec.c
libavformat/cinedec.c
+13
-1
No files found.
libavformat/cinedec.c
View file @
6928ea7e
...
@@ -225,7 +225,11 @@ static int cine_read_header(AVFormatContext *avctx)
...
@@ -225,7 +225,11 @@ static int cine_read_header(AVFormatContext *avctx)
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
avio_skip
(
pb
,
696
);
// Conv8Min ... ImHeightAcq
avio_skip
(
pb
,
668
);
// Conv8Min ... Sensor
set_metadata_int
(
&
st
->
metadata
,
"shutter_ns"
,
avio_rl32
(
pb
));
avio_skip
(
pb
,
24
);
// EDRShutterNs ... ImHeightAcq
#define DESCRIPTION_SIZE 4096
#define DESCRIPTION_SIZE 4096
description
=
av_malloc
(
DESCRIPTION_SIZE
+
1
);
description
=
av_malloc
(
DESCRIPTION_SIZE
+
1
);
...
@@ -239,6 +243,14 @@ static int cine_read_header(AVFormatContext *avctx)
...
@@ -239,6 +243,14 @@ static int cine_read_header(AVFormatContext *avctx)
else
else
av_free
(
description
);
av_free
(
description
);
avio_skip
(
pb
,
1176
);
// RisingEdge ... cmUser
set_metadata_int
(
&
st
->
metadata
,
"enable_crop"
,
avio_rl32
(
pb
));
set_metadata_int
(
&
st
->
metadata
,
"crop_left"
,
avio_rl32
(
pb
));
set_metadata_int
(
&
st
->
metadata
,
"crop_top"
,
avio_rl32
(
pb
));
set_metadata_int
(
&
st
->
metadata
,
"crop_right"
,
avio_rl32
(
pb
));
set_metadata_int
(
&
st
->
metadata
,
"crop_bottom"
,
avio_rl32
(
pb
));
/* parse image offsets */
/* parse image offsets */
avio_seek
(
pb
,
offImageOffsets
,
SEEK_SET
);
avio_seek
(
pb
,
offImageOffsets
,
SEEK_SET
);
for
(
i
=
0
;
i
<
st
->
duration
;
i
++
)
for
(
i
=
0
;
i
<
st
->
duration
;
i
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment