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
627c50b7
Commit
627c50b7
authored
Jul 21, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raw rgb support
Originally committed as revision 3330 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f1dc14a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
raw.c
libavcodec/raw.c
+8
-0
avienc.c
libavformat/avienc.c
+1
-0
No files found.
libavcodec/raw.c
View file @
627c50b7
...
@@ -83,6 +83,14 @@ static int raw_init_decoder(AVCodecContext *avctx)
...
@@ -83,6 +83,14 @@ static int raw_init_decoder(AVCodecContext *avctx)
if
(
avctx
->
codec_tag
)
if
(
avctx
->
codec_tag
)
avctx
->
pix_fmt
=
findPixelFormat
(
avctx
->
codec_tag
);
avctx
->
pix_fmt
=
findPixelFormat
(
avctx
->
codec_tag
);
else
if
(
avctx
->
bits_per_sample
){
switch
(
avctx
->
bits_per_sample
){
case
15
:
avctx
->
pix_fmt
=
PIX_FMT_RGB555
;
break
;
case
16
:
avctx
->
pix_fmt
=
PIX_FMT_RGB565
;
break
;
case
24
:
avctx
->
pix_fmt
=
PIX_FMT_BGR24
;
break
;
case
32
:
avctx
->
pix_fmt
=
PIX_FMT_RGBA32
;
break
;
}
}
context
->
length
=
avpicture_get_size
(
avctx
->
pix_fmt
,
avctx
->
width
,
avctx
->
height
);
context
->
length
=
avpicture_get_size
(
avctx
->
pix_fmt
,
avctx
->
width
,
avctx
->
height
);
context
->
buffer
=
av_malloc
(
context
->
length
);
context
->
buffer
=
av_malloc
(
context
->
length
);
...
...
libavformat/avienc.c
View file @
627c50b7
...
@@ -164,6 +164,7 @@ const CodecTag codec_bmp_tags[] = {
...
@@ -164,6 +164,7 @@ const CodecTag codec_bmp_tags[] = {
{
CODEC_ID_4XM
,
MKTAG
(
'4'
,
'X'
,
'M'
,
'V'
)
},
{
CODEC_ID_4XM
,
MKTAG
(
'4'
,
'X'
,
'M'
,
'V'
)
},
{
CODEC_ID_FLV1
,
MKTAG
(
'F'
,
'L'
,
'V'
,
'1'
)
},
{
CODEC_ID_FLV1
,
MKTAG
(
'F'
,
'L'
,
'V'
,
'1'
)
},
{
CODEC_ID_SVQ1
,
MKTAG
(
's'
,
'v'
,
'q'
,
'1'
)
},
{
CODEC_ID_SVQ1
,
MKTAG
(
's'
,
'v'
,
'q'
,
'1'
)
},
{
CODEC_ID_RAWVIDEO
,
0
},
{
0
,
0
},
{
0
,
0
},
};
};
...
...
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