Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
a954058f
Commit
a954058f
authored
Dec 07, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/theora.c: encoder now respects the aspect ratio.
parent
6bd0743b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/codec/theora.c
modules/codec/theora.c
+4
-7
No files found.
modules/codec/theora.c
View file @
a954058f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* theora.c: theora decoder module making use of libtheora.
* theora.c: theora decoder module making use of libtheora.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: theora.c,v 1.1
6 2003/12/07 17:09:33
gbazin Exp $
* $Id: theora.c,v 1.1
7 2003/12/07 17:53:45
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -200,7 +200,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -200,7 +200,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_dec
->
fmt_out
.
video
.
i_height
=
p_sys
->
ti
.
height
;
p_dec
->
fmt_out
.
video
.
i_height
=
p_sys
->
ti
.
height
;
if
(
p_sys
->
ti
.
aspect_denominator
)
if
(
p_sys
->
ti
.
aspect_denominator
)
p_dec
->
fmt_out
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
p_dec
->
fmt_out
.
video
.
i_aspect
=
((
int64_t
)
VOUT_ASPECT_FACTOR
)
*
p_sys
->
ti
.
aspect_numerator
/
p_sys
->
ti
.
aspect_denominator
;
p_sys
->
ti
.
aspect_numerator
/
p_sys
->
ti
.
aspect_denominator
;
else
else
p_dec
->
fmt_out
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
p_dec
->
fmt_out
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
...
@@ -463,8 +463,6 @@ static int OpenEncoder( vlc_object_t *p_this )
...
@@ -463,8 +463,6 @@ static int OpenEncoder( vlc_object_t *p_this )
#define frame_y_offset 0
#define frame_y_offset 0
#define video_hzn 25
#define video_hzn 25
#define video_hzd 1
#define video_hzd 1
#define video_an 4
#define video_ad 3
#define video_q 5
#define video_q 5
theora_info_init
(
&
p_sys
->
ti
);
theora_info_init
(
&
p_sys
->
ti
);
...
@@ -477,9 +475,8 @@ static int OpenEncoder( vlc_object_t *p_this )
...
@@ -477,9 +475,8 @@ static int OpenEncoder( vlc_object_t *p_this )
p_sys
->
ti
.
offset_y
=
frame_y_offset
;
p_sys
->
ti
.
offset_y
=
frame_y_offset
;
p_sys
->
ti
.
fps_numerator
=
video_hzn
;
p_sys
->
ti
.
fps_numerator
=
video_hzn
;
p_sys
->
ti
.
fps_denominator
=
video_hzd
;
p_sys
->
ti
.
fps_denominator
=
video_hzd
;
p_sys
->
ti
.
aspect_numerator
=
video_an
;
p_sys
->
ti
.
aspect_numerator
=
p_enc
->
fmt_in
.
video
.
i_aspect
;
p_sys
->
ti
.
aspect_denominator
=
video_ad
;
p_sys
->
ti
.
aspect_denominator
=
VOUT_ASPECT_FACTOR
;
p_sys
->
ti
.
colorspace
=
not_specified
;
p_sys
->
ti
.
target_bitrate
=
p_enc
->
fmt_out
.
i_bitrate
;
p_sys
->
ti
.
target_bitrate
=
p_enc
->
fmt_out
.
i_bitrate
;
p_sys
->
ti
.
quality
=
video_q
;
p_sys
->
ti
.
quality
=
video_q
;
...
...
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