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
27b73b3b
Commit
27b73b3b
authored
Mar 29, 2008
by
Loren Merritt
Browse files
r784 borked lossless dc zigzag
parent
c1c00e6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
encoder/macroblock.c
View file @
27b73b3b
...
...
@@ -143,8 +143,7 @@ static void x264_mb_encode_i16x16( x264_t *h, int i_qscale )
int
oe
=
block_idx_x
[
i
]
*
4
+
block_idx_y
[
i
]
*
4
*
FENC_STRIDE
;
int
od
=
block_idx_x
[
i
]
*
4
+
block_idx_y
[
i
]
*
4
*
FDEC_STRIDE
;
h
->
zigzagf
.
sub_4x4
(
h
->
dct
.
luma4x4
[
i
],
p_src
+
oe
,
p_dst
+
od
);
dct4x4
[
0
][
block_idx_x
[
i
]][
block_idx_y
[
i
]]
=
p_src
[
oe
]
-
p_dst
[
od
];
p_dst
[
od
]
=
p_src
[
oe
];
dct4x4
[
0
][
block_idx_x
[
i
]][
block_idx_y
[
i
]]
=
h
->
dct
.
luma4x4
[
i
][
0
];
}
h
->
zigzagf
.
scan_4x4
(
h
->
dct
.
luma16x16_dc
,
dct4x4
[
0
]
);
return
;
...
...
@@ -205,8 +204,7 @@ void x264_mb_encode_8x8_chroma( x264_t *h, int b_inter, int i_qscale )
int
oe
=
block_idx_x
[
i
]
*
4
+
block_idx_y
[
i
]
*
4
*
FENC_STRIDE
;
int
od
=
block_idx_x
[
i
]
*
4
+
block_idx_y
[
i
]
*
4
*
FDEC_STRIDE
;
h
->
zigzagf
.
sub_4x4
(
h
->
dct
.
luma4x4
[
16
+
i
+
ch
*
4
],
p_src
+
oe
,
p_dst
+
od
);
h
->
dct
.
chroma_dc
[
ch
][
i
]
=
p_src
[
oe
]
-
p_dst
[
od
];
p_dst
[
od
]
=
p_src
[
oe
];
h
->
dct
.
chroma_dc
[
ch
][
i
]
=
h
->
dct
.
luma4x4
[
16
+
i
+
ch
*
4
][
0
];
}
continue
;
}
...
...
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