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
07c5ca55
Commit
07c5ca55
authored
Jan 17, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: move is_complex into the per-slice context
parent
47a0d393
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
h264.h
libavcodec/h264.h
+1
-2
h264_mb.c
libavcodec/h264_mb.c
+1
-1
h264_slice.c
libavcodec/h264_slice.c
+3
-3
svq3.c
libavcodec/svq3.c
+4
-1
No files found.
libavcodec/h264.h
View file @
07c5ca55
...
@@ -357,6 +357,7 @@ typedef struct H264SliceContext {
...
@@ -357,6 +357,7 @@ typedef struct H264SliceContext {
ptrdiff_t
mb_uvlinesize
;
ptrdiff_t
mb_uvlinesize
;
int
mb_skip_run
;
int
mb_skip_run
;
int
is_complex
;
int
redundant_pic_count
;
int
redundant_pic_count
;
...
@@ -532,8 +533,6 @@ typedef struct H264Context {
...
@@ -532,8 +533,6 @@ typedef struct H264Context {
int
mb_num
;
int
mb_num
;
int
mb_xy
;
int
mb_xy
;
int
is_complex
;
// =============================================================
// =============================================================
// Things below are not used in the MB or more inner code
// Things below are not used in the MB or more inner code
...
...
libavcodec/h264_mb.c
View file @
07c5ca55
...
@@ -814,7 +814,7 @@ void ff_h264_hl_decode_mb(H264Context *h, H264SliceContext *sl)
...
@@ -814,7 +814,7 @@ void ff_h264_hl_decode_mb(H264Context *h, H264SliceContext *sl)
{
{
const
int
mb_xy
=
h
->
mb_xy
;
const
int
mb_xy
=
h
->
mb_xy
;
const
int
mb_type
=
h
->
cur_pic
.
mb_type
[
mb_xy
];
const
int
mb_type
=
h
->
cur_pic
.
mb_type
[
mb_xy
];
int
is_complex
=
CONFIG_SMALL
||
h
->
is_complex
||
int
is_complex
=
CONFIG_SMALL
||
sl
->
is_complex
||
IS_INTRA_PCM
(
mb_type
)
||
sl
->
qscale
==
0
;
IS_INTRA_PCM
(
mb_type
)
||
sl
->
qscale
==
0
;
if
(
CHROMA444
(
h
))
{
if
(
CHROMA444
(
h
))
{
...
...
libavcodec/h264_slice.c
View file @
07c5ca55
...
@@ -2185,9 +2185,9 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
...
@@ -2185,9 +2185,9 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
sl
->
mb_skip_run
=
-
1
;
sl
->
mb_skip_run
=
-
1
;
h
->
is_complex
=
FRAME_MBAFF
(
h
)
||
h
->
picture_structure
!=
PICT_FRAME
||
sl
->
is_complex
=
FRAME_MBAFF
(
h
)
||
h
->
picture_structure
!=
PICT_FRAME
||
avctx
->
codec_id
!=
AV_CODEC_ID_H264
||
avctx
->
codec_id
!=
AV_CODEC_ID_H264
||
(
CONFIG_GRAY
&&
(
h
->
flags
&
CODEC_FLAG_GRAY
));
(
CONFIG_GRAY
&&
(
h
->
flags
&
CODEC_FLAG_GRAY
));
if
(
h
->
pps
.
cabac
)
{
if
(
h
->
pps
.
cabac
)
{
/* realign */
/* realign */
...
...
libavcodec/svq3.c
View file @
07c5ca55
...
@@ -866,6 +866,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
...
@@ -866,6 +866,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
{
{
SVQ3Context
*
s
=
avctx
->
priv_data
;
SVQ3Context
*
s
=
avctx
->
priv_data
;
H264Context
*
h
=
&
s
->
h
;
H264Context
*
h
=
&
s
->
h
;
H264SliceContext
*
sl
;
int
m
;
int
m
;
unsigned
char
*
extradata
;
unsigned
char
*
extradata
;
unsigned
char
*
extradata_end
;
unsigned
char
*
extradata_end
;
...
@@ -888,8 +889,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
...
@@ -888,8 +889,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
ff_hpeldsp_init
(
&
s
->
hdsp
,
avctx
->
flags
);
ff_hpeldsp_init
(
&
s
->
hdsp
,
avctx
->
flags
);
ff_tpeldsp_init
(
&
s
->
tdsp
);
ff_tpeldsp_init
(
&
s
->
tdsp
);
sl
=
h
->
slice_ctx
;
h
->
flags
=
avctx
->
flags
;
h
->
flags
=
avctx
->
flags
;
h
->
is_complex
=
1
;
sl
->
is_complex
=
1
;
h
->
picture_structure
=
PICT_FRAME
;
h
->
picture_structure
=
PICT_FRAME
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVJ420P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVJ420P
;
avctx
->
color_range
=
AVCOL_RANGE_JPEG
;
avctx
->
color_range
=
AVCOL_RANGE_JPEG
;
...
...
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