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
60f06f98
Commit
60f06f98
authored
Feb 04, 2013
by
Michaël Cinquin
Committed by
Michael Bradshaw
Feb 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenjpegenc: make dci compliant j2c
Signed-off-by:
Michael Bradshaw
<
mjbshaw@gmail.com
>
parent
b5f544a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
libopenjpegenc.c
libavcodec/libopenjpegenc.c
+29
-0
No files found.
libavcodec/libopenjpegenc.c
View file @
60f06f98
...
...
@@ -188,6 +188,35 @@ static av_cold int libopenjpeg_encode_init(AVCodecContext *avctx)
ctx
->
enc_params
.
tcp_numlayers
=
ctx
->
numlayers
;
ctx
->
enc_params
.
tcp_rates
[
0
]
=
FFMAX
(
avctx
->
compression_level
,
0
)
*
2
;
if
(
ctx
->
cinema_mode
>
0
)
{
ctx
->
enc_params
.
irreversible
=
1
;
ctx
->
enc_params
.
tcp_mct
=
1
;
ctx
->
enc_params
.
tile_size_on
=
0
;
/* no subsampling */
ctx
->
enc_params
.
cp_tdx
=
1
;
ctx
->
enc_params
.
cp_tdy
=
1
;
ctx
->
enc_params
.
subsampling_dx
=
1
;
ctx
->
enc_params
.
subsampling_dy
=
1
;
/* Tile and Image shall be at (0,0) */
ctx
->
enc_params
.
cp_tx0
=
0
;
ctx
->
enc_params
.
cp_ty0
=
0
;
ctx
->
enc_params
.
image_offset_x0
=
0
;
ctx
->
enc_params
.
image_offset_y0
=
0
;
/* Codeblock size= 32*32 */
ctx
->
enc_params
.
cblockw_init
=
32
;
ctx
->
enc_params
.
cblockh_init
=
32
;
ctx
->
enc_params
.
csty
|=
0x01
;
/* No ROI */
ctx
->
enc_params
.
roi_compno
=
-
1
;
if
(
ctx
->
enc_params
.
prog_order
!=
CPRL
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"prog_order forced to CPRL
\n
"
);
ctx
->
enc_params
.
prog_order
=
CPRL
;
}
ctx
->
enc_params
.
tp_flag
=
'C'
;
ctx
->
enc_params
.
tp_on
=
1
;
}
ctx
->
compress
=
opj_create_compress
(
ctx
->
format
);
if
(
!
ctx
->
compress
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Error creating the compressor
\n
"
);
...
...
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