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
4f9314ed
Commit
4f9314ed
authored
Jan 21, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/riff: Support reading vlc's rawvideo fourccs.
Reported by Bob, no6b no6b com
parent
7158ce77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
raw.c
libavcodec/raw.c
+34
-0
riff.c
libavformat/riff.c
+34
-0
No files found.
libavcodec/raw.c
View file @
4f9314ed
...
...
@@ -224,6 +224,40 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
{
AV_PIX_FMT_GRAY16BE
,
MKTAG
(
'b'
,
'1'
,
'6'
,
'g'
)
},
{
AV_PIX_FMT_RGB48BE
,
MKTAG
(
'b'
,
'4'
,
'8'
,
'r'
)
},
/* vlc */
{
AV_PIX_FMT_YUV410P
,
MKTAG
(
'I'
,
'4'
,
'1'
,
'0'
)
},
{
AV_PIX_FMT_YUV411P
,
MKTAG
(
'I'
,
'4'
,
'1'
,
'1'
)
},
{
AV_PIX_FMT_YUV422P
,
MKTAG
(
'I'
,
'4'
,
'2'
,
'2'
)
},
{
AV_PIX_FMT_YUV440P
,
MKTAG
(
'I'
,
'4'
,
'4'
,
'0'
)
},
{
AV_PIX_FMT_YUV444P
,
MKTAG
(
'I'
,
'4'
,
'4'
,
'4'
)
},
{
AV_PIX_FMT_YU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MKTAG
(
'I'
,
'4'
,
'9'
,
'B'
)
},
{
AV_PIX_FMT_YUV420P10LE
,
MKTAG
(
'I'
,
'0'
,
'A'
,
'L'
)
},
{
AV_PIX_FMT_YUV420P10BE
,
MKTAG
(
'I'
,
'0'
,
'A'
,
'B'
)
},
{
AV_PIX_FMT_YUV422P10LE
,
MKTAG
(
'I'
,
'2'
,
'A'
,
'L'
)
},
{
AV_PIX_FMT_YUV422P10BE
,
MKTAG
(
'I'
,
'2'
,
'A'
,
'B'
)
},
{
AV_PIX_FMT_YUV444P10LE
,
MKTAG
(
'I'
,
'4'
,
'A'
,
'L'
)
},
{
AV_PIX_FMT_YUV444P10BE
,
MKTAG
(
'I'
,
'4'
,
'A'
,
'B'
)
},
{
AV_PIX_FMT_YUV444P16LE
,
MKTAG
(
'I'
,
'4'
,
'F'
,
'L'
)
},
{
AV_PIX_FMT_YUV444P16BE
,
MKTAG
(
'I'
,
'4'
,
'F'
,
'B'
)
},
/* special */
{
AV_PIX_FMT_RGB565LE
,
MKTAG
(
3
,
0
,
0
,
0
)
},
/* flipped RGB565LE */
{
AV_PIX_FMT_YUV444P
,
MKTAG
(
'Y'
,
'V'
,
'2'
,
'4'
)
},
/* YUV444P, swapped UV */
...
...
libavformat/riff.c
View file @
4f9314ed
...
...
@@ -244,6 +244,40 @@ const AVCodecTag ff_codec_bmp_tags[] = {
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'a'
,
'u'
,
'v'
,
'2'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'V'
,
'Y'
,
'U'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'Y'
,
'U'
,
'Y'
,
'V'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'1'
,
'0'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'1'
,
'1'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
M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V_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'0'
,
'9'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'0'
,
'9'
,
'B'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'2'
,
'9'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'2'
,
'9'
,
'B'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'9'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'9'
,
'B'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'0'
,
'A'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'0'
,
'A'
,
'B'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'2'
,
'A'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'2'
,
'A'
,
'B'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'A'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'A'
,
'B'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'F'
,
'L'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'I'
,
'4'
,
'F'
,
'B'
)
},
{
AV_CODEC_ID_FRWU
,
MKTAG
(
'F'
,
'R'
,
'W'
,
'U'
)
},
{
AV_CODEC_ID_R10K
,
MKTAG
(
'R'
,
'1'
,
'0'
,
'k'
)
},
{
AV_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