Commit e48e1aa8 authored by Steve Lhomme's avatar Steve Lhomme Committed by Thomas Guillem

core: add a field of view field to video_format_t

default to 80°
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent efbc26a4
......@@ -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 */
};
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment