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
a3e11fa4
Commit
a3e11fa4
authored
Oct 08, 2011
by
Themaister
Committed by
Michael Niedermayer
Oct 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start adding pixel definitions for planar rgb.
parent
96fad826
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
h264.c
libavcodec/h264.c
+4
-0
pixdesc.c
libavutil/pixdesc.c
+9
-0
pixfmt.h
libavutil/pixfmt.h
+1
-0
No files found.
libavcodec/h264.c
View file @
a3e11fa4
...
...
@@ -2704,6 +2704,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
default
:
if
(
CHROMA444
){
s
->
avctx
->
pix_fmt
=
s
->
avctx
->
color_range
==
AVCOL_RANGE_JPEG
?
PIX_FMT_YUVJ444P
:
PIX_FMT_YUV444P
;
if
(
s
->
avctx
->
colorspace
==
AVCOL_SPC_RGB
)
{
s
->
avctx
->
pix_fmt
=
PIX_FMT_GBR24P
;
av_log
(
h
->
s
.
avctx
,
AV_LOG_DEBUG
,
"Detected GBR colorspace.
\n
"
);
}
}
else
if
(
CHROMA422
)
{
s
->
avctx
->
pix_fmt
=
s
->
avctx
->
color_range
==
AVCOL_RANGE_JPEG
?
PIX_FMT_YUVJ422P
:
PIX_FMT_YUV422P
;
}
else
{
...
...
libavutil/pixdesc.c
View file @
a3e11fa4
...
...
@@ -988,6 +988,15 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
{
0
,
1
,
2
,
0
,
7
},
/* A */
},
},
[
PIX_FMT_GBR24P
]
=
{
.
name
=
"gbr24p"
,
.
nb_components
=
3
,
.
comp
=
{
{
0
,
1
,
1
,
0
,
7
},
/* G */
{
1
,
1
,
1
,
0
,
7
},
/* B */
{
2
,
1
,
1
,
0
,
7
},
/* R */
},
},
};
static
enum
PixelFormat
get_pix_fmt_internal
(
const
char
*
name
)
...
...
libavutil/pixfmt.h
View file @
a3e11fa4
...
...
@@ -154,6 +154,7 @@ enum PixelFormat {
PIX_FMT_RGBA64LE
,
///< packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian
PIX_FMT_BGRA64BE
,
///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian
PIX_FMT_BGRA64LE
,
///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian
PIX_FMT_GBR24P
,
///< planar GBR, 24bpp, 8G, 8B, 8R.
PIX_FMT_NB
,
///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
};
...
...
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