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
196dd72b
Commit
196dd72b
authored
Jan 22, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/pamenc: Support encoding ya16be.
parent
c2e36e07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
pamenc.c
libavcodec/pamenc.c
+11
-1
No files found.
libavcodec/pamenc.c
View file @
196dd72b
...
@@ -57,6 +57,12 @@ static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -57,6 +57,12 @@ static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
maxval
=
255
;
maxval
=
255
;
tuple_type
=
"GRAYSCALE_ALPHA"
;
tuple_type
=
"GRAYSCALE_ALPHA"
;
break
;
break
;
case
AV_PIX_FMT_YA16BE
:
n
=
w
*
4
;
depth
=
2
;
maxval
=
0xFFFF
;
tuple_type
=
"GRAYSCALE_ALPHA"
;
break
;
case
AV_PIX_FMT_RGB24
:
case
AV_PIX_FMT_RGB24
:
n
=
w
*
3
;
n
=
w
*
3
;
depth
=
3
;
depth
=
3
;
...
@@ -148,6 +154,10 @@ AVCodec ff_pam_encoder = {
...
@@ -148,6 +154,10 @@ AVCodec ff_pam_encoder = {
.
close
=
pam_encode_close
,
.
close
=
pam_encode_close
,
.
encode2
=
pam_encode_frame
,
.
encode2
=
pam_encode_frame
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_RGBA64BE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_MONOBLACK
,
AV_PIX_FMT_NONE
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_RGBA64BE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_YA16BE
,
AV_PIX_FMT_MONOBLACK
,
AV_PIX_FMT_NONE
},
},
};
};
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