Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
07abf13d
Commit
07abf13d
authored
Dec 28, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: avoid a grayscale related if() in hl_decode_mb()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
50795682
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
h264_mb_template.c
libavcodec/h264_mb_template.c
+0
-2
h264pred.c
libavcodec/h264pred.c
+4
-1
No files found.
libavcodec/h264_mb_template.c
View file @
07abf13d
...
@@ -159,11 +159,9 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h)
...
@@ -159,11 +159,9 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h)
uvlinesize
,
1
,
0
,
SIMPLE
,
PIXEL_SHIFT
);
uvlinesize
,
1
,
0
,
SIMPLE
,
PIXEL_SHIFT
);
if
(
SIMPLE
||
!
CONFIG_GRAY
||
!
(
s
->
flags
&
CODEC_FLAG_GRAY
))
{
if
(
SIMPLE
||
!
CONFIG_GRAY
||
!
(
s
->
flags
&
CODEC_FLAG_GRAY
))
{
if
(
CHROMA
)
{
h
->
hpc
.
pred8x8
[
h
->
chroma_pred_mode
](
dest_cb
,
uvlinesize
);
h
->
hpc
.
pred8x8
[
h
->
chroma_pred_mode
](
dest_cb
,
uvlinesize
);
h
->
hpc
.
pred8x8
[
h
->
chroma_pred_mode
](
dest_cr
,
uvlinesize
);
h
->
hpc
.
pred8x8
[
h
->
chroma_pred_mode
](
dest_cr
,
uvlinesize
);
}
}
}
hl_decode_mb_predict_luma
(
h
,
mb_type
,
is_h264
,
SIMPLE
,
hl_decode_mb_predict_luma
(
h
,
mb_type
,
is_h264
,
SIMPLE
,
transform_bypass
,
PIXEL_SHIFT
,
transform_bypass
,
PIXEL_SHIFT
,
...
...
libavcodec/h264pred.c
View file @
07abf13d
...
@@ -406,7 +406,7 @@ static void pred8x8_tm_vp8_c(uint8_t *src, ptrdiff_t stride)
...
@@ -406,7 +406,7 @@ static void pred8x8_tm_vp8_c(uint8_t *src, ptrdiff_t stride)
* Set the intra prediction function pointers.
* Set the intra prediction function pointers.
*/
*/
void
ff_h264_pred_init
(
H264PredContext
*
h
,
int
codec_id
,
const
int
bit_depth
,
void
ff_h264_pred_init
(
H264PredContext
*
h
,
int
codec_id
,
const
int
bit_depth
,
const
int
chroma_format_idc
)
int
chroma_format_idc
)
{
{
// MpegEncContext * const s = &h->s;
// MpegEncContext * const s = &h->s;
...
@@ -566,6 +566,9 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth,
...
@@ -566,6 +566,9 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth,
h->pred16x16_add[VERT_PRED8x8]= FUNCC(pred16x16_vertical_add , depth);\
h->pred16x16_add[VERT_PRED8x8]= FUNCC(pred16x16_vertical_add , depth);\
h->pred16x16_add[ HOR_PRED8x8]= FUNCC(pred16x16_horizontal_add , depth);\
h->pred16x16_add[ HOR_PRED8x8]= FUNCC(pred16x16_horizontal_add , depth);\
if
(
!
chroma_format_idc
)
chroma_format_idc
=
1
;
switch
(
bit_depth
)
{
switch
(
bit_depth
)
{
case
9
:
case
9
:
H264_PRED
(
9
)
H264_PRED
(
9
)
...
...
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