Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
de8049d2
Commit
de8049d2
authored
Mar 21, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: add an argument to CHROMA for consistency
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
881050d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
h264.h
libavcodec/h264.h
+1
-1
h264_loopfilter.c
libavcodec/h264_loopfilter.c
+2
-2
No files found.
libavcodec/h264.h
View file @
de8049d2
...
...
@@ -87,7 +87,7 @@
#define CABAC(h) h->pps.cabac
#endif
#define CHROMA (h->sps.chroma_format_idc)
#define CHROMA
(h)
(h->sps.chroma_format_idc)
#define CHROMA422(h) (h->sps.chroma_format_idc == 2)
#define CHROMA444(h) (h->sps.chroma_format_idc == 3)
...
...
libavcodec/h264_loopfilter.c
View file @
de8049d2
...
...
@@ -241,7 +241,7 @@ static av_always_inline void h264_filter_mb_fast_internal(H264Context *h,
unsigned
int
uvlinesize
,
int
pixel_shift
)
{
int
chroma
=
CHROMA
&&
!
(
CONFIG_GRAY
&&
(
h
->
flags
&
CODEC_FLAG_GRAY
));
int
chroma
=
CHROMA
(
h
)
&&
!
(
CONFIG_GRAY
&&
(
h
->
flags
&
CODEC_FLAG_GRAY
));
int
chroma444
=
CHROMA444
(
h
);
int
chroma422
=
CHROMA422
(
h
);
...
...
@@ -707,7 +707,7 @@ void ff_h264_filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint
const
int
mvy_limit
=
IS_INTERLACED
(
mb_type
)
?
2
:
4
;
int
first_vertical_edge_done
=
0
;
av_unused
int
dir
;
int
chroma
=
CHROMA
&&
!
(
CONFIG_GRAY
&&
(
h
->
flags
&
CODEC_FLAG_GRAY
));
int
chroma
=
CHROMA
(
h
)
&&
!
(
CONFIG_GRAY
&&
(
h
->
flags
&
CODEC_FLAG_GRAY
));
int
qp_bd_offset
=
6
*
(
h
->
sps
.
bit_depth_luma
-
8
);
int
a
=
h
->
slice_alpha_c0_offset
-
qp_bd_offset
;
int
b
=
h
->
slice_beta_offset
-
qp_bd_offset
;
...
...
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