Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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
linux
linux-davinci-2.6.23
Commits
66440ccb
Commit
66440ccb
authored
Aug 30, 2006
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (4565): Fix scaling calculus
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
4fcd7d8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
drivers/media/video/saa7115.c
drivers/media/video/saa7115.c
+4
-12
No files found.
drivers/media/video/saa7115.c
View file @
66440ccb
...
...
@@ -1053,7 +1053,7 @@ static int saa711x_set_size(struct i2c_client *client, int width, int height)
int
VSCY
;
int
res
;
int
is_50hz
=
state
->
std
&
V4L2_STD_625_50
;
int
Vsrc
=
is_50hz
?
576
:
480
;
int
Vsrc
=
is_50hz
?
576
:
480
+
16
;
v4l_dbg
(
1
,
debug
,
client
,
"decoder set size to %ix%i
\n
"
,
width
,
height
);
...
...
@@ -1082,22 +1082,14 @@ static int saa711x_set_size(struct i2c_client *client, int width, int height)
saa711x_write
(
client
,
R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB
,
(
u8
)
((
width
>>
8
)
&
0xff
));
if
(
height
==
Vsrc
)
{
/*FIXME: This code seems weird, however, this is how it is
working right now.
*/
res
=
height
/
2
;
if
(
!
is_50hz
)
res
+=
8
;
}
else
res
=
height
;
/* Vertical Scaling uses height/2 */
res
=
height
/
2
;
/* height */
saa711x_write
(
client
,
R_CE_B_VERT_OUTPUT_WINDOW_LENGTH
,
(
u8
)
(
res
&
0xff
));
saa711x_write
(
client
,
R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB
,
(
u8
)
(
res
&
0xff
));
(
u8
)
((
res
>>
8
)
&
0xff
));
/* Scaling settings */
/* Hprescaler is floor(inres/outres) */
...
...
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