Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steve Lhomme
VLC
Commits
e48e1aa8
Commit
e48e1aa8
authored
Nov 10, 2016
by
Steve Lhomme
Committed by
Thomas Guillem
Nov 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: add a field of view field to video_format_t
default to 80° Signed-off-by:
Thomas Guillem
<
thomas@gllm.fr
>
parent
efbc26a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
include/vlc_es.h
include/vlc_es.h
+3
-0
src/input/es_out.c
src/input/es_out.c
+2
-0
src/misc/es_format.c
src/misc/es_format.c
+2
-0
No files found.
include/vlc_es.h
View file @
e48e1aa8
...
...
@@ -282,6 +282,8 @@ typedef enum video_chroma_location_t
CHROMA_LOCATION_BOTTOM_CENTER
,
}
video_chroma_location_t
;
#define DEFAULT_FIELD_OF_VIEW_DEGREES 80.f
/**
* video format description
*/
...
...
@@ -322,6 +324,7 @@ struct video_format_t
float
f_pose_yaw_degrees
;
/**< view point yaw in degrees ]-180;180] */
float
f_pose_pitch_degrees
;
/**< view point pitch in degrees ]-90;90] */
float
f_pose_roll_degrees
;
/**< view point roll in degrees ]-180;180] */
float
f_pose_fov_degrees
;
/**< view point fov in degrees ]0;180[ */
uint32_t
i_cubemap_padding
;
/**< padding in pixels of the cube map faces */
};
...
...
src/input/es_out.c
View file @
e48e1aa8
...
...
@@ -3096,6 +3096,8 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
fmt
->
video
.
f_pose_pitch_degrees
);
info_category_AddInfo
(
p_cat
,
_
(
"Roll"
),
"%.2f"
,
fmt
->
video
.
f_pose_roll_degrees
);
info_category_AddInfo
(
p_cat
,
_
(
"Field of view"
),
"%.2f"
,
fmt
->
video
.
f_pose_fov_degrees
);
}
break
;
...
...
src/misc/es_format.c
View file @
e48e1aa8
...
...
@@ -454,6 +454,8 @@ void es_format_Init( es_format_t *fmt,
memset
(
&
fmt
->
video
,
0
,
sizeof
(
video_format_t
)
);
memset
(
&
fmt
->
subs
,
0
,
sizeof
(
subs_format_t
)
);
fmt
->
video
.
f_pose_fov_degrees
=
DEFAULT_FIELD_OF_VIEW_DEGREES
;
fmt
->
b_packetized
=
true
;
fmt
->
i_bitrate
=
0
;
fmt
->
i_extra
=
0
;
...
...
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