Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
7070f098
Commit
7070f098
authored
Jul 16, 2008
by
Anton Mitrofanov
Committed by
Fiona Glaser
Jul 16, 2008
Browse files
Fix lossless mode borked in r901
parent
6916c39a
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/macroblock.h
View file @
7070f098
...
...
@@ -224,6 +224,10 @@ static const uint8_t block_idx_xy_1d[16] =
{
0
,
1
,
4
,
5
,
2
,
3
,
6
,
7
,
8
,
9
,
12
,
13
,
10
,
11
,
14
,
15
};
static
const
uint8_t
block_idx_yx_1d
[
16
]
=
{
0
,
4
,
1
,
5
,
8
,
12
,
9
,
13
,
2
,
6
,
3
,
7
,
10
,
14
,
11
,
15
};
static
const
uint8_t
block_idx_xy_fenc
[
16
]
=
{
0
*
4
+
0
*
4
*
FENC_STRIDE
,
1
*
4
+
0
*
4
*
FENC_STRIDE
,
...
...
encoder/macroblock.c
View file @
7070f098
...
...
@@ -147,7 +147,7 @@ static void x264_mb_encode_i16x16( x264_t *h, int i_qscale )
int
oe
=
block_idx_xy_fenc
[
i
];
int
od
=
block_idx_xy_fdec
[
i
];
h
->
zigzagf
.
sub_4x4
(
h
->
dct
.
luma4x4
[
i
],
p_src
+
oe
,
p_dst
+
od
);
dct_dc4x4
[
0
][
block_idx_
x
y_1d
[
i
]]
=
h
->
dct
.
luma4x4
[
i
][
0
];
dct_dc4x4
[
0
][
block_idx_y
x
_1d
[
i
]]
=
h
->
dct
.
luma4x4
[
i
][
0
];
h
->
dct
.
luma4x4
[
i
][
0
]
=
0
;
}
h
->
zigzagf
.
scan_4x4
(
h
->
dct
.
luma16x16_dc
,
dct_dc4x4
);
...
...
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