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
ab7d6cb8
Commit
ab7d6cb8
authored
May 26, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support decoding fourcc YVYU.
Based on work by ami_stuff. Fixes ticket #1352
parent
5c3f7919
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
raw.c
libavcodec/raw.c
+1
-0
rawdec.c
libavcodec/rawdec.c
+10
-0
riff.c
libavformat/riff.c
+1
-0
No files found.
libavcodec/raw.c
View file @
ab7d6cb8
...
@@ -157,6 +157,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
...
@@ -157,6 +157,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
/* special */
/* special */
{
PIX_FMT_RGB565LE
,
MKTAG
(
3
,
0
,
0
,
0
)
},
/* flipped RGB565LE */
{
PIX_FMT_RGB565LE
,
MKTAG
(
3
,
0
,
0
,
0
)
},
/* flipped RGB565LE */
{
PIX_FMT_YUV444P
,
MKTAG
(
'Y'
,
'V'
,
'2'
,
'4'
)
},
/* YUV444P, swapped UV */
{
PIX_FMT_YUV444P
,
MKTAG
(
'Y'
,
'V'
,
'2'
,
'4'
)
},
/* YUV444P, swapped UV */
{
PIX_FMT_YUYV422
,
MKTAG
(
'Y'
,
'V'
,
'Y'
,
'U'
)
},
/* YUYV, swapped UV */
{
PIX_FMT_NONE
,
0
},
{
PIX_FMT_NONE
,
0
},
};
};
...
...
libavcodec/rawdec.c
View file @
ab7d6cb8
...
@@ -235,6 +235,16 @@ static int raw_decode(AVCodecContext *avctx,
...
@@ -235,6 +235,16 @@ static int raw_decode(AVCodecContext *avctx,
line
+=
picture
->
linesize
[
0
];
line
+=
picture
->
linesize
[
0
];
}
}
}
}
if
(
avctx
->
codec_tag
==
AV_RL32
(
"YVYU"
)
&&
avctx
->
pix_fmt
==
PIX_FMT_YUYV422
)
{
int
x
,
y
;
uint8_t
*
line
=
picture
->
data
[
0
];
for
(
y
=
0
;
y
<
avctx
->
height
;
y
++
)
{
for
(
x
=
0
;
x
<
avctx
->
width
-
1
;
x
+=
2
)
FFSWAP
(
uint8_t
,
line
[
2
*
x
+
1
],
line
[
2
*
x
+
3
]);
line
+=
picture
->
linesize
[
0
];
}
}
*
data_size
=
sizeof
(
AVPicture
);
*
data_size
=
sizeof
(
AVPicture
);
return
buf_size
;
return
buf_size
;
...
...
libavformat/riff.c
View file @
ab7d6cb8
...
@@ -199,6 +199,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
...
@@ -199,6 +199,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'U'
,
'V'
,
'9'
)
},
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'U'
,
'V'
,
'9'
)
},
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'V'
,
'U'
,
'9'
)
},
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'V'
,
'U'
,
'9'
)
},
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'a'
,
'u'
,
'v'
,
'2'
)
},
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'a'
,
'u'
,
'v'
,
'2'
)
},
{
CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'V'
,
'Y'
,
'U'
)
},
{
CODEC_ID_FRWU
,
MKTAG
(
'F'
,
'R'
,
'W'
,
'U'
)
},
{
CODEC_ID_FRWU
,
MKTAG
(
'F'
,
'R'
,
'W'
,
'U'
)
},
{
CODEC_ID_R10K
,
MKTAG
(
'R'
,
'1'
,
'0'
,
'k'
)
},
{
CODEC_ID_R10K
,
MKTAG
(
'R'
,
'1'
,
'0'
,
'k'
)
},
{
CODEC_ID_R210
,
MKTAG
(
'r'
,
'2'
,
'1'
,
'0'
)
},
{
CODEC_ID_R210
,
MKTAG
(
'r'
,
'2'
,
'1'
,
'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