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
df42dd73
Commit
df42dd73
authored
Jan 19, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support gray8a encoding with libopenjpeg.
Reviewed-by: Michael Bradshaw Reviewed-by: Paul B Mahol
parent
e209a377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
libopenjpegenc.c
libavcodec/libopenjpegenc.c
+6
-1
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/libopenjpegenc.c
View file @
df42dd73
...
...
@@ -69,6 +69,10 @@ static opj_image_t *mj2_create_image(AVCodecContext *avctx, opj_cparameters_t *p
color_space
=
CLRSPC_GRAY
;
numcomps
=
1
;
break
;
case
PIX_FMT_GRAY8A
:
color_space
=
CLRSPC_GRAY
;
numcomps
=
2
;
break
;
case
PIX_FMT_GRAY16
:
color_space
=
CLRSPC_GRAY
;
numcomps
=
1
;
...
...
@@ -328,6 +332,7 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf
switch
(
avctx
->
pix_fmt
)
{
case
PIX_FMT_RGB24
:
case
PIX_FMT_RGBA
:
case
PIX_FMT_GRAY8A
:
cpyresult
=
libopenjpeg_copy_packed8
(
avctx
,
frame
,
image
);
break
;
case
PIX_FMT_RGB48
:
...
...
@@ -411,7 +416,7 @@ AVCodec ff_libopenjpeg_encoder = {
.
close
=
libopenjpeg_encode_close
,
.
capabilities
=
0
,
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_RGB24
,
PIX_FMT_RGBA
,
PIX_FMT_RGB48
,
PIX_FMT_RGBA64
,
PIX_FMT_GRAY8
,
PIX_FMT_GRAY16
,
PIX_FMT_GRAY8
,
PIX_FMT_GRAY
8A
,
PIX_FMT_GRAY
16
,
PIX_FMT_YUV420P
,
PIX_FMT_YUV422P
,
PIX_FMT_YUVA420P
,
PIX_FMT_YUV440P
,
PIX_FMT_YUV444P
,
PIX_FMT_YUV420P9
,
PIX_FMT_YUV422P9
,
PIX_FMT_YUV444P9
,
...
...
libavcodec/version.h
View file @
df42dd73
...
...
@@ -22,7 +22,7 @@
#define LIBAVCODEC_VERSION_MAJOR 53
#define LIBAVCODEC_VERSION_MINOR 57
#define LIBAVCODEC_VERSION_MICRO 10
4
#define LIBAVCODEC_VERSION_MICRO 10
5
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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