Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ff375771
Commit
ff375771
authored
Sep 10, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/video_output.c, modules/codec/ogt: got rid of vout_AspectRatio().
parent
d2b5c3ac
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
39 deletions
+16
-39
include/vlc_video.h
include/vlc_video.h
+0
-10
modules/codec/ogt/common.c
modules/codec/ogt/common.c
+6
-5
modules/codec/ogt/render.c
modules/codec/ogt/render.c
+10
-10
src/video_output/video_output.c
src/video_output/video_output.c
+0
-14
No files found.
include/vlc_video.h
View file @
ff375771
...
@@ -291,16 +291,6 @@ struct subpicture_t
...
@@ -291,16 +291,6 @@ struct subpicture_t
/*****************************************************************************
/*****************************************************************************
* Prototypes
* Prototypes
*****************************************************************************/
*****************************************************************************/
/**
* vout_AspectRatio
*
* Set the i_aspect_x and i_aspect_y from the encoded aspect ratio i_aspect.
* \param i_aspect the encoded aspect ratio
* \param i_aspect_x the decoded x-axis portion of i_aspect. This is set.
* \param i_aspect_y the decoded y-axis portion of i_aspect This is set.
*/
VLC_EXPORT
(
void
,
vout_AspectRatio
,
(
unsigned
int
i_aspect
,
unsigned
int
*
i_aspect_x
,
unsigned
int
*
i_aspect_y
)
);
/**
/**
* vout_CopyPicture
* vout_CopyPicture
*
*
...
...
modules/codec/ogt/common.c
View file @
ff375771
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Common SVCD and CVD subtitle routines.
* Common SVCD and CVD subtitle routines.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003, 2004 VideoLAN
* Copyright (C) 2003, 2004 VideoLAN
* $Id
: common.c,v 1.13 2004/02/22 10:52:23 rocky Exp
$
* $Id$
*
*
* Author: Rocky Bernstein <rocky@panix.com>
* Author: Rocky Bernstein <rocky@panix.com>
* based on code from:
* based on code from:
...
@@ -349,7 +349,7 @@ VCDSubHandleScaling( subpicture_t *p_spu, decoder_t *p_dec )
...
@@ -349,7 +349,7 @@ VCDSubHandleScaling( subpicture_t *p_spu, decoder_t *p_dec )
vlc_object_t
*
p_input
=
p_spu
->
p_sys
->
p_input
;
vlc_object_t
*
p_input
=
p_spu
->
p_sys
->
p_input
;
vout_thread_t
*
p_vout
=
vlc_object_find
(
p_input
,
VLC_OBJECT_VOUT
,
vout_thread_t
*
p_vout
=
vlc_object_find
(
p_input
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
FIND_CHILD
);
unsigned
int
i_aspect_x
,
i_aspect_y
;
int
i_aspect_x
,
i_aspect_y
;
uint8_t
*
p_dest
=
(
uint8_t
*
)
p_spu
->
p_sys
->
p_data
;
uint8_t
*
p_dest
=
(
uint8_t
*
)
p_spu
->
p_sys
->
p_data
;
if
(
p_vout
)
{
if
(
p_vout
)
{
...
@@ -405,11 +405,12 @@ VCDSubHandleScaling( subpicture_t *p_spu, decoder_t *p_dec )
...
@@ -405,11 +405,12 @@ VCDSubHandleScaling( subpicture_t *p_spu, decoder_t *p_dec )
break
;
break
;
}
}
/* We get here only for scaled chromas. */
/* We get here only for scaled chromas. */
v
out_AspectRatio
(
p_vout
->
render
.
i_aspect
,
&
i_aspect_y
,
v
lc_reduce
(
&
i_aspect_x
,
&
i_aspect_y
,
p_vout
->
render
.
i_aspect
,
&
i_aspect_x
);
VOUT_ASPECT_FACTOR
,
0
);
}
else
{
}
else
{
/* User knows best? */
/* User knows best? */
vout_AspectRatio
(
i_new_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
vlc_reduce
(
&
i_aspect_x
,
&
i_aspect_y
,
p_vout
->
render
.
i_aspect
,
VOUT_ASPECT_FACTOR
,
0
);
}
}
VCDSubScaleX
(
p_dec
,
p_spu
,
i_aspect_x
,
i_aspect_y
);
VCDSubScaleX
(
p_dec
,
p_spu
,
i_aspect_x
,
i_aspect_y
);
}
}
...
...
modules/codec/ogt/render.c
View file @
ff375771
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* by DVD subtitles.
* by DVD subtitles.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003, 2004 VideoLAN
* Copyright (C) 2003, 2004 VideoLAN
* $Id
: render.c,v 1.29 2004/02/02 12:53:20 fenrir Exp
$
* $Id$
*
*
* Author: Rocky Bernstein <rocky@panix.com>
* Author: Rocky Bernstein <rocky@panix.com>
* based on code from:
* based on code from:
...
@@ -1044,10 +1044,10 @@ BlendRV24( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -1044,10 +1044,10 @@ BlendRV24( vout_thread_t *p_vout, picture_t *p_pic,
int32_t
i_x_start
,
i_y_start
,
i_x_end
,
i_y_end
;
int32_t
i_x_start
,
i_y_start
,
i_x_end
,
i_y_end
;
struct
subpicture_sys_t
*
p_sys
=
p_spu
->
p_sys
;
struct
subpicture_sys_t
*
p_sys
=
p_spu
->
p_sys
;
unsigned
int
i_aspect_x
,
i_aspect_y
;
int
i_aspect_x
,
i_aspect_y
;
v
out_AspectRatio
(
p_vout
->
render
.
i_aspect
,
&
i_aspect_y
,
v
lc_reduce
(
&
i_aspect_x
,
&
i_aspect_y
,
p_vout
->
render
.
i_aspect
,
&
i_aspect_x
);
VOUT_ASPECT_FACTOR
,
0
);
i_xscale
=
((
p_vout
->
output
.
i_width
<<
ASCALE
)
*
i_aspect_x
)
i_xscale
=
((
p_vout
->
output
.
i_width
<<
ASCALE
)
*
i_aspect_x
)
/
(
i_aspect_y
*
p_vout
->
render
.
i_width
);
/
(
i_aspect_y
*
p_vout
->
render
.
i_width
);
...
@@ -1336,10 +1336,10 @@ BlendRV32( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -1336,10 +1336,10 @@ BlendRV32( vout_thread_t *p_vout, picture_t *p_pic,
int32_t
i_x_start
,
i_y_start
,
i_x_end
,
i_y_end
;
int32_t
i_x_start
,
i_y_start
,
i_x_end
,
i_y_end
;
struct
subpicture_sys_t
*
p_sys
=
p_spu
->
p_sys
;
struct
subpicture_sys_t
*
p_sys
=
p_spu
->
p_sys
;
unsigned
int
i_aspect_x
,
i_aspect_y
;
int
i_aspect_x
,
i_aspect_y
;
v
out_AspectRatio
(
p_vout
->
render
.
i_aspect
,
&
i_aspect_y
,
v
lc_reduce
(
&
i_aspect_x
,
&
i_aspect_y
,
p_vout
->
render
.
i_aspect
,
&
i_aspect_x
);
VOUT_ASPECT_FACTOR
,
0
);
i_xscale
=
((
p_vout
->
output
.
i_width
<<
ASCALE
)
*
i_aspect_x
)
i_xscale
=
((
p_vout
->
output
.
i_width
<<
ASCALE
)
*
i_aspect_x
)
/
(
i_aspect_y
*
p_vout
->
render
.
i_width
);
/
(
i_aspect_y
*
p_vout
->
render
.
i_width
);
...
@@ -1683,10 +1683,10 @@ BlendRGB2( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -1683,10 +1683,10 @@ BlendRGB2( vout_thread_t *p_vout, picture_t *p_pic,
int
i_x_start
,
i_y_start
,
i_x_end
,
i_y_end
;
int
i_x_start
,
i_y_start
,
i_x_end
,
i_y_end
;
struct
subpicture_sys_t
*
p_sys
=
p_spu
->
p_sys
;
struct
subpicture_sys_t
*
p_sys
=
p_spu
->
p_sys
;
unsigned
int
i_aspect_x
,
i_aspect_y
;
int
i_aspect_x
,
i_aspect_y
;
v
out_AspectRatio
(
p_vout
->
render
.
i_aspect
,
&
i_aspect_y
,
v
lc_reduce
(
&
i_aspect_x
,
&
i_aspect_y
,
p_vout
->
render
.
i_aspect
,
&
i_aspect_x
);
VOUT_ASPECT_FACTOR
,
0
);
i_xscale
=
((
p_vout
->
output
.
i_width
<<
ASCALE
)
*
i_aspect_x
)
i_xscale
=
((
p_vout
->
output
.
i_width
<<
ASCALE
)
*
i_aspect_x
)
/
(
i_aspect_y
*
p_vout
->
render
.
i_width
);
/
(
i_aspect_y
*
p_vout
->
render
.
i_width
);
...
...
src/video_output/video_output.c
View file @
ff375771
...
@@ -63,20 +63,6 @@ static int DeinterlaceCallback( vlc_object_t *, char const *,
...
@@ -63,20 +63,6 @@ static int DeinterlaceCallback( vlc_object_t *, char const *,
static
int
FilterCallback
(
vlc_object_t
*
,
char
const
*
,
static
int
FilterCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
vlc_value_t
,
vlc_value_t
,
void
*
);
/**
* vout_AspectRatio
*
* Set the i_aspect_x and i_aspect_y from i_aspect.
*/
void
vout_AspectRatio
(
unsigned
int
i_aspect
,
/*out*/
unsigned
int
*
i_aspect_x
,
/*out*/
unsigned
int
*
i_aspect_y
)
{
unsigned
int
i_pgcd
=
ReduceHeight
(
i_aspect
);
*
i_aspect_x
=
i_aspect
/
i_pgcd
;
*
i_aspect_y
=
VOUT_ASPECT_FACTOR
/
i_pgcd
;
}
/*****************************************************************************
/*****************************************************************************
* vout_Request: find a video output thread, create one, or destroy one.
* vout_Request: find a video output thread, create one, or destroy one.
*****************************************************************************
*****************************************************************************
...
...
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