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
9f653e6d
Commit
9f653e6d
authored
Jul 03, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/j2kenc: Support user specified tile dimensions
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d554715f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
j2kenc.c
libavcodec/j2kenc.c
+7
-2
No files found.
libavcodec/j2kenc.c
View file @
9f653e6d
...
...
@@ -1082,8 +1082,10 @@ static av_cold int j2kenc_init(AVCodecContext *avctx)
qntsty
->
nguardbits
=
1
;
s
->
tile_width
=
256
;
s
->
tile_height
=
256
;
if
((
s
->
tile_width
&
(
s
->
tile_width
-
1
))
||
(
s
->
tile_height
&
(
s
->
tile_height
-
1
)))
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"Tile dimension not a power of 2
\n
"
);
}
if
(
codsty
->
transform
==
FF_DWT53
)
qntsty
->
quantsty
=
JPEG2000_QSTY_NONE
;
...
...
@@ -1136,6 +1138,9 @@ static const AVOption options[] = {
{
"format"
,
"Codec Format"
,
OFFSET
(
format
),
AV_OPT_TYPE_INT
,
{
.
i64
=
CODEC_JP2
},
CODEC_J2K
,
CODEC_JP2
,
VE
,
"format"
},
{
"j2k"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
CODEC_J2K
},
0
,
0
,
VE
,
"format"
},
{
"jp2"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
CODEC_JP2
},
0
,
0
,
VE
,
"format"
},
{
"tile_width"
,
"Tile Width"
,
OFFSET
(
tile_width
),
AV_OPT_TYPE_INT
,
{
.
i64
=
256
},
1
,
1
<<
30
,
VE
,
},
{
"tile_height"
,
"Tile Height"
,
OFFSET
(
tile_height
),
AV_OPT_TYPE_INT
,
{
.
i64
=
256
},
1
,
1
<<
30
,
VE
,
},
{
NULL
}
};
...
...
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