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
09f25a9c
Commit
09f25a9c
authored
Jan 05, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow decoding of uyvy422 CYUV with -vcodec rawvideo.
FourCC CYUV can be Creative YUV and uyvy422 rawvideo.
parent
d185278c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
raw.c
libavcodec/raw.c
+1
-0
rawdec.c
libavcodec/rawdec.c
+1
-0
No files found.
libavcodec/raw.c
View file @
09f25a9c
...
@@ -63,6 +63,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
...
@@ -63,6 +63,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
{
PIX_FMT_UYVY422
,
MKTAG
(
'A'
,
'V'
,
'u'
,
'p'
)
},
{
PIX_FMT_UYVY422
,
MKTAG
(
'A'
,
'V'
,
'u'
,
'p'
)
},
{
PIX_FMT_UYVY422
,
MKTAG
(
'V'
,
'D'
,
'T'
,
'Z'
)
},
/* SoftLab-NSK VideoTizer */
{
PIX_FMT_UYVY422
,
MKTAG
(
'V'
,
'D'
,
'T'
,
'Z'
)
},
/* SoftLab-NSK VideoTizer */
{
PIX_FMT_UYVY422
,
MKTAG
(
'a'
,
'u'
,
'v'
,
'2'
)
},
{
PIX_FMT_UYVY422
,
MKTAG
(
'a'
,
'u'
,
'v'
,
'2'
)
},
{
PIX_FMT_UYVY422
,
MKTAG
(
'c'
,
'y'
,
'u'
,
'v'
)
},
/* CYUV is also Creative YUV */
{
PIX_FMT_UYYVYY411
,
MKTAG
(
'Y'
,
'4'
,
'1'
,
'1'
)
},
{
PIX_FMT_UYYVYY411
,
MKTAG
(
'Y'
,
'4'
,
'1'
,
'1'
)
},
{
PIX_FMT_GRAY8
,
MKTAG
(
'G'
,
'R'
,
'E'
,
'Y'
)
},
{
PIX_FMT_GRAY8
,
MKTAG
(
'G'
,
'R'
,
'E'
,
'Y'
)
},
{
PIX_FMT_NV12
,
MKTAG
(
'N'
,
'V'
,
'1'
,
'2'
)
},
{
PIX_FMT_NV12
,
MKTAG
(
'N'
,
'V'
,
'1'
,
'2'
)
},
...
...
libavcodec/rawdec.c
View file @
09f25a9c
...
@@ -119,6 +119,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
...
@@ -119,6 +119,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
avctx
->
coded_frame
=
&
context
->
pic
;
avctx
->
coded_frame
=
&
context
->
pic
;
if
((
avctx
->
extradata_size
>=
9
&&
!
memcmp
(
avctx
->
extradata
+
avctx
->
extradata_size
-
9
,
"BottomUp"
,
9
))
||
if
((
avctx
->
extradata_size
>=
9
&&
!
memcmp
(
avctx
->
extradata
+
avctx
->
extradata_size
-
9
,
"BottomUp"
,
9
))
||
avctx
->
codec_tag
==
MKTAG
(
'c'
,
'y'
,
'u'
,
'v'
)
||
avctx
->
codec_tag
==
MKTAG
(
3
,
0
,
0
,
0
)
||
avctx
->
codec_tag
==
MKTAG
(
'W'
,
'R'
,
'A'
,
'W'
))
avctx
->
codec_tag
==
MKTAG
(
3
,
0
,
0
,
0
)
||
avctx
->
codec_tag
==
MKTAG
(
'W'
,
'R'
,
'A'
,
'W'
))
context
->
flip
=
1
;
context
->
flip
=
1
;
...
...
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