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
e6c4ac7b
Commit
e6c4ac7b
authored
May 12, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*
parent
7c57a582
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
214 additions
and
178 deletions
+214
-178
cmdutils.c
cmdutils.c
+5
-5
APIchanges
doc/APIchanges
+3
-0
avpicture.c
libavcodec/avpicture.c
+2
-2
ffv1dec.c
libavcodec/ffv1dec.c
+1
-1
ffv1enc.c
libavcodec/ffv1enc.c
+1
-1
imgconvert.c
libavcodec/imgconvert.c
+6
-6
pnm.c
libavcodec/pnm.c
+1
-1
rawdec.c
libavcodec/rawdec.c
+3
-3
tiffenc.c
libavcodec/tiffenc.c
+2
-2
utils.c
libavcodec/utils.c
+2
-2
xwdenc.c
libavcodec/xwdenc.c
+1
-1
formats.c
libavfilter/formats.c
+1
-1
vf_crop.c
libavfilter/vf_crop.c
+1
-1
vf_fieldorder.c
libavfilter/vf_fieldorder.c
+2
-2
vf_pixdesctest.c
libavfilter/vf_pixdesctest.c
+2
-2
vf_scale.c
libavfilter/vf_scale.c
+2
-2
frame.c
libavutil/frame.c
+1
-1
imgutils.c
libavutil/imgutils.c
+10
-10
pixdesc.c
libavutil/pixdesc.c
+112
-112
pixdesc.h
libavutil/pixdesc.h
+42
-9
version.h
libavutil/version.h
+2
-2
swscale_internal.h
libswscale/swscale_internal.h
+11
-11
swscale_unscaled.c
libswscale/swscale_unscaled.c
+1
-1
No files found.
cmdutils.c
View file @
e6c4ac7b
...
@@ -1161,11 +1161,11 @@ int show_pix_fmts(void *optctx, const char *opt, const char *arg)
...
@@ -1161,11 +1161,11 @@ int show_pix_fmts(void *optctx, const char *opt, const char *arg)
while
((
pix_desc
=
av_pix_fmt_desc_next
(
pix_desc
)))
{
while
((
pix_desc
=
av_pix_fmt_desc_next
(
pix_desc
)))
{
enum
AVPixelFormat
pix_fmt
=
av_pix_fmt_desc_get_id
(
pix_desc
);
enum
AVPixelFormat
pix_fmt
=
av_pix_fmt_desc_get_id
(
pix_desc
);
printf
(
"%c%c%c%c%c %-16s %d %2d
\n
"
,
printf
(
"%c%c%c%c%c %-16s %d %2d
\n
"
,
sws_isSupportedInput
(
pix_fmt
)
?
'I'
:
'.'
,
sws_isSupportedInput
(
pix_fmt
)
?
'I'
:
'.'
,
sws_isSupportedOutput
(
pix_fmt
)
?
'O'
:
'.'
,
sws_isSupportedOutput
(
pix_fmt
)
?
'O'
:
'.'
,
pix_desc
->
flags
&
PIX_FMT
_HWACCEL
?
'H'
:
'.'
,
pix_desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
?
'H'
:
'.'
,
pix_desc
->
flags
&
PIX_FMT
_PAL
?
'P'
:
'.'
,
pix_desc
->
flags
&
AV_PIX_FMT_FLAG
_PAL
?
'P'
:
'.'
,
pix_desc
->
flags
&
PIX_FMT
_BITSTREAM
?
'B'
:
'.'
,
pix_desc
->
flags
&
AV_PIX_FMT_FLAG
_BITSTREAM
?
'B'
:
'.'
,
pix_desc
->
name
,
pix_desc
->
name
,
pix_desc
->
nb_components
,
pix_desc
->
nb_components
,
av_get_bits_per_pixel
(
pix_desc
));
av_get_bits_per_pixel
(
pix_desc
));
...
...
doc/APIchanges
View file @
e6c4ac7b
...
@@ -13,6 +13,9 @@ libavutil: 2012-10-22
...
@@ -13,6 +13,9 @@ libavutil: 2012-10-22
API changes, most recent first:
API changes, most recent first:
2013-05-xx - xxxxxxx - lavu 52.11.0 - pixdesc.h
Replace PIX_FMT_* flags with AV_PIX_FMT_FLAG_*.
2013-04-xx - xxxxxxx - lavc 55.4.0 - avcodec.h
2013-04-xx - xxxxxxx - lavc 55.4.0 - avcodec.h
Add field_order to AVCodecParserContext.
Add field_order to AVCodecParserContext.
...
...
libavcodec/avpicture.c
View file @
e6c4ac7b
...
@@ -75,7 +75,7 @@ int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt,
...
@@ -75,7 +75,7 @@ int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt,
}
}
}
}
if
(
desc
->
flags
&
PIX_FMT
_PAL
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PAL
)
memcpy
((
unsigned
char
*
)(((
size_t
)
dest
+
3
)
&
~
3
),
memcpy
((
unsigned
char
*
)(((
size_t
)
dest
+
3
)
&
~
3
),
src
->
data
[
1
],
256
*
4
);
src
->
data
[
1
],
256
*
4
);
...
@@ -92,7 +92,7 @@ int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
...
@@ -92,7 +92,7 @@ int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
if
((
ret
=
av_image_check_size
(
width
,
height
,
0
,
NULL
))
<
0
)
if
((
ret
=
av_image_check_size
(
width
,
height
,
0
,
NULL
))
<
0
)
return
ret
;
return
ret
;
if
(
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
// do not include palette for these pseudo-paletted formats
// do not include palette for these pseudo-paletted formats
return
width
*
height
;
return
width
*
height
;
return
avpicture_fill
(
&
dummy_pict
,
NULL
,
pix_fmt
,
width
,
height
);
return
avpicture_fill
(
&
dummy_pict
,
NULL
,
pix_fmt
,
width
,
height
);
...
...
libavcodec/ffv1dec.c
View file @
e6c4ac7b
...
@@ -335,7 +335,7 @@ static int decode_slice(AVCodecContext *c, void *arg)
...
@@ -335,7 +335,7 @@ static int decode_slice(AVCodecContext *c, void *arg)
FFV1Context
*
fs
=
*
(
void
**
)
arg
;
FFV1Context
*
fs
=
*
(
void
**
)
arg
;
FFV1Context
*
f
=
fs
->
avctx
->
priv_data
;
FFV1Context
*
f
=
fs
->
avctx
->
priv_data
;
int
width
,
height
,
x
,
y
,
ret
;
int
width
,
height
,
x
,
y
,
ret
;
const
int
ps
=
(
av_pix_fmt_desc_get
(
c
->
pix_fmt
)
->
flags
&
PIX_FMT
_PLANAR
)
const
int
ps
=
(
av_pix_fmt_desc_get
(
c
->
pix_fmt
)
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
)
?
(
c
->
bits_per_raw_sample
>
8
)
+
1
?
(
c
->
bits_per_raw_sample
>
8
)
+
1
:
4
;
:
4
;
AVFrame
*
const
p
=
f
->
cur
;
AVFrame
*
const
p
=
f
->
cur
;
...
...
libavcodec/ffv1enc.c
View file @
e6c4ac7b
...
@@ -875,7 +875,7 @@ static int encode_slice(AVCodecContext *c, void *arg)
...
@@ -875,7 +875,7 @@ static int encode_slice(AVCodecContext *c, void *arg)
int
x
=
fs
->
slice_x
;
int
x
=
fs
->
slice_x
;
int
y
=
fs
->
slice_y
;
int
y
=
fs
->
slice_y
;
AVFrame
*
const
p
=
&
f
->
picture
;
AVFrame
*
const
p
=
&
f
->
picture
;
const
int
ps
=
(
av_pix_fmt_desc_get
(
c
->
pix_fmt
)
->
flags
&
PIX_FMT
_PLANAR
)
const
int
ps
=
(
av_pix_fmt_desc_get
(
c
->
pix_fmt
)
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
)
?
(
f
->
bits_per_raw_sample
>
8
)
+
1
?
(
f
->
bits_per_raw_sample
>
8
)
+
1
:
4
;
:
4
;
...
...
libavcodec/imgconvert.c
View file @
e6c4ac7b
...
@@ -60,7 +60,7 @@ void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int
...
@@ -60,7 +60,7 @@ void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int
static
int
is_gray
(
const
AVPixFmtDescriptor
*
desc
)
static
int
is_gray
(
const
AVPixFmtDescriptor
*
desc
)
{
{
return
desc
->
nb_components
-
(
desc
->
flags
&
PIX_FMT
_ALPHA
)
==
1
;
return
desc
->
nb_components
-
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_ALPHA
)
==
1
;
}
}
int
avcodec_get_pix_fmt_loss
(
enum
AVPixelFormat
dst_pix_fmt
,
int
avcodec_get_pix_fmt_loss
(
enum
AVPixelFormat
dst_pix_fmt
,
...
@@ -86,11 +86,11 @@ int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
...
@@ -86,11 +86,11 @@ int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
dst_desc
->
log2_chroma_h
>
src_desc
->
log2_chroma_h
)
dst_desc
->
log2_chroma_h
>
src_desc
->
log2_chroma_h
)
loss
|=
FF_LOSS_RESOLUTION
;
loss
|=
FF_LOSS_RESOLUTION
;
if
((
src_desc
->
flags
&
PIX_FMT_RGB
)
!=
(
dst_desc
->
flags
&
PIX_FMT
_RGB
))
if
((
src_desc
->
flags
&
AV_PIX_FMT_FLAG_RGB
)
!=
(
dst_desc
->
flags
&
AV_PIX_FMT_FLAG
_RGB
))
loss
|=
FF_LOSS_COLORSPACE
;
loss
|=
FF_LOSS_COLORSPACE
;
if
(
has_alpha
&&
!
(
dst_desc
->
flags
&
PIX_FMT
_ALPHA
)
&&
if
(
has_alpha
&&
!
(
dst_desc
->
flags
&
AV_PIX_FMT_FLAG
_ALPHA
)
&&
(
dst_desc
->
flags
&
PIX_FMT
_ALPHA
))
(
dst_desc
->
flags
&
AV_PIX_FMT_FLAG
_ALPHA
))
loss
|=
FF_LOSS_ALPHA
;
loss
|=
FF_LOSS_ALPHA
;
if
(
dst_pix_fmt
==
AV_PIX_FMT_PAL8
&&
!
is_gray
(
src_desc
))
if
(
dst_pix_fmt
==
AV_PIX_FMT_PAL8
&&
!
is_gray
(
src_desc
))
...
@@ -260,8 +260,8 @@ void ff_shrink88(uint8_t *dst, int dst_wrap,
...
@@ -260,8 +260,8 @@ void ff_shrink88(uint8_t *dst, int dst_wrap,
/* return true if yuv planar */
/* return true if yuv planar */
static
inline
int
is_yuv_planar
(
const
AVPixFmtDescriptor
*
desc
)
static
inline
int
is_yuv_planar
(
const
AVPixFmtDescriptor
*
desc
)
{
{
return
(
!
(
desc
->
flags
&
PIX_FMT
_RGB
)
&&
return
(
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_RGB
)
&&
(
desc
->
flags
&
PIX_FMT
_PLANAR
));
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
));
}
}
int
av_picture_crop
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
int
av_picture_crop
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
...
...
libavcodec/pnm.c
View file @
e6c4ac7b
...
@@ -173,7 +173,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
...
@@ -173,7 +173,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
}
else
}
else
s
->
maxval
=
1
;
s
->
maxval
=
1
;
/* more check if YUV420 */
/* more check if YUV420 */
if
(
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
)
->
flags
&
PIX_FMT
_PLANAR
)
{
if
(
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
)
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
)
{
if
((
avctx
->
width
&
1
)
!=
0
)
if
((
avctx
->
width
&
1
)
!=
0
)
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
h
=
(
avctx
->
height
*
2
);
h
=
(
avctx
->
height
*
2
);
...
...
libavcodec/rawdec.c
View file @
e6c4ac7b
...
@@ -98,11 +98,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
...
@@ -98,11 +98,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
if
(
desc
->
flags
&
(
PIX_FMT_PAL
|
PIX_FMT
_PSEUDOPAL
))
{
if
(
desc
->
flags
&
(
AV_PIX_FMT_FLAG_PAL
|
AV_PIX_FMT_FLAG
_PSEUDOPAL
))
{
context
->
palette
=
av_buffer_alloc
(
AVPALETTE_SIZE
);
context
->
palette
=
av_buffer_alloc
(
AVPALETTE_SIZE
);
if
(
!
context
->
palette
)
if
(
!
context
->
palette
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
if
(
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
avpriv_set_systematic_pal2
((
uint32_t
*
)
context
->
palette
->
data
,
avctx
->
pix_fmt
);
avpriv_set_systematic_pal2
((
uint32_t
*
)
context
->
palette
->
data
,
avctx
->
pix_fmt
);
else
else
memset
(
context
->
palette
->
data
,
0
,
AVPALETTE_SIZE
);
memset
(
context
->
palette
->
data
,
0
,
AVPALETTE_SIZE
);
...
@@ -210,7 +210,7 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -210,7 +210,7 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
}
}
if
((
avctx
->
pix_fmt
==
AV_PIX_FMT_PAL8
&&
buf_size
<
context
->
frame_size
)
||
if
((
avctx
->
pix_fmt
==
AV_PIX_FMT_PAL8
&&
buf_size
<
context
->
frame_size
)
||
(
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
))
{
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
))
{
frame
->
buf
[
1
]
=
av_buffer_ref
(
context
->
palette
);
frame
->
buf
[
1
]
=
av_buffer_ref
(
context
->
palette
);
if
(
!
frame
->
buf
[
1
])
if
(
!
frame
->
buf
[
1
])
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
...
...
libavcodec/tiffenc.c
View file @
e6c4ac7b
...
@@ -242,9 +242,9 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
...
@@ -242,9 +242,9 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
case
AV_PIX_FMT_PAL8
:
case
AV_PIX_FMT_PAL8
:
pfd
=
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
);
pfd
=
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
);
s
->
bpp
=
av_get_bits_per_pixel
(
pfd
);
s
->
bpp
=
av_get_bits_per_pixel
(
pfd
);
if
(
pfd
->
flags
&
PIX_FMT
_PAL
)
{
if
(
pfd
->
flags
&
AV_PIX_FMT_FLAG
_PAL
)
{
s
->
photometric_interpretation
=
3
;
s
->
photometric_interpretation
=
3
;
}
else
if
(
pfd
->
flags
&
PIX_FMT
_RGB
)
{
}
else
if
(
pfd
->
flags
&
AV_PIX_FMT_FLAG
_RGB
)
{
s
->
photometric_interpretation
=
2
;
s
->
photometric_interpretation
=
2
;
}
else
{
}
else
{
s
->
photometric_interpretation
=
1
;
s
->
photometric_interpretation
=
1
;
...
...
libavcodec/utils.c
View file @
e6c4ac7b
...
@@ -663,7 +663,7 @@ do { \
...
@@ -663,7 +663,7 @@ do { \
planes
=
av_pix_fmt_count_planes
(
frame
->
format
);
planes
=
av_pix_fmt_count_planes
(
frame
->
format
);
/* workaround for AVHWAccel plane count of 0, buf[0] is used as
/* workaround for AVHWAccel plane count of 0, buf[0] is used as
check for allocated buffers: make libavcodec happy */
check for allocated buffers: make libavcodec happy */
if
(
desc
&&
desc
->
flags
&
PIX_FMT
_HWACCEL
)
if
(
desc
&&
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
)
planes
=
1
;
planes
=
1
;
if
(
!
desc
||
planes
<=
0
)
{
if
(
!
desc
||
planes
<=
0
)
{
ret
=
AVERROR
(
EINVAL
);
ret
=
AVERROR
(
EINVAL
);
...
@@ -793,7 +793,7 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
...
@@ -793,7 +793,7 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
static
int
is_hwaccel_pix_fmt
(
enum
AVPixelFormat
pix_fmt
)
static
int
is_hwaccel_pix_fmt
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
return
desc
->
flags
&
PIX_FMT
_HWACCEL
;
return
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
;
}
}
enum
AVPixelFormat
avcodec_default_get_format
(
struct
AVCodecContext
*
s
,
const
enum
AVPixelFormat
*
fmt
)
enum
AVPixelFormat
avcodec_default_get_format
(
struct
AVCodecContext
*
s
,
const
enum
AVPixelFormat
*
fmt
)
...
...
libavcodec/xwdenc.c
View file @
e6c4ac7b
...
@@ -51,7 +51,7 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -51,7 +51,7 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint8_t
*
ptr
,
*
buf
;
uint8_t
*
ptr
,
*
buf
;
pixdepth
=
av_get_bits_per_pixel
(
desc
);
pixdepth
=
av_get_bits_per_pixel
(
desc
);
if
(
desc
->
flags
&
PIX_FMT
_BE
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_BE
)
be
=
1
;
be
=
1
;
switch
(
pix_fmt
)
{
switch
(
pix_fmt
)
{
case
AV_PIX_FMT_ARGB
:
case
AV_PIX_FMT_ARGB
:
...
...
libavfilter/formats.c
View file @
e6c4ac7b
...
@@ -216,7 +216,7 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type)
...
@@ -216,7 +216,7 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type)
for
(
fmt
=
0
;
fmt
<
num_formats
;
fmt
++
)
{
for
(
fmt
=
0
;
fmt
<
num_formats
;
fmt
++
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
fmt
);
if
((
type
!=
AVMEDIA_TYPE_VIDEO
)
||
if
((
type
!=
AVMEDIA_TYPE_VIDEO
)
||
(
type
==
AVMEDIA_TYPE_VIDEO
&&
!
(
desc
->
flags
&
PIX_FMT
_HWACCEL
)))
(
type
==
AVMEDIA_TYPE_VIDEO
&&
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
)))
ff_add_format
(
&
ret
,
fmt
);
ff_add_format
(
&
ret
,
fmt
);
}
}
...
...
libavfilter/vf_crop.c
View file @
e6c4ac7b
...
@@ -261,7 +261,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
...
@@ -261,7 +261,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
frame
->
data
[
0
]
+=
crop
->
y
*
frame
->
linesize
[
0
];
frame
->
data
[
0
]
+=
crop
->
y
*
frame
->
linesize
[
0
];
frame
->
data
[
0
]
+=
crop
->
x
*
crop
->
max_step
[
0
];
frame
->
data
[
0
]
+=
crop
->
x
*
crop
->
max_step
[
0
];
if
(
!
(
desc
->
flags
&
PIX_FMT_PAL
||
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
))
{
if
(
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
||
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
))
{
for
(
i
=
1
;
i
<
3
;
i
++
)
{
for
(
i
=
1
;
i
<
3
;
i
++
)
{
if
(
frame
->
data
[
i
])
{
if
(
frame
->
data
[
i
])
{
frame
->
data
[
i
]
+=
(
crop
->
y
>>
crop
->
vsub
)
*
frame
->
linesize
[
i
];
frame
->
data
[
i
]
+=
(
crop
->
y
>>
crop
->
vsub
)
*
frame
->
linesize
[
i
];
...
...
libavfilter/vf_fieldorder.c
View file @
e6c4ac7b
...
@@ -56,8 +56,8 @@ static int query_formats(AVFilterContext *ctx)
...
@@ -56,8 +56,8 @@ static int query_formats(AVFilterContext *ctx)
formats
=
NULL
;
formats
=
NULL
;
for
(
pix_fmt
=
0
;
pix_fmt
<
AV_PIX_FMT_NB
;
pix_fmt
++
)
{
for
(
pix_fmt
=
0
;
pix_fmt
<
AV_PIX_FMT_NB
;
pix_fmt
++
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
if
(
!
(
desc
->
flags
&
PIX_FMT
_HWACCEL
||
if
(
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
||
desc
->
flags
&
PIX_FMT
_BITSTREAM
)
&&
desc
->
flags
&
AV_PIX_FMT_FLAG
_BITSTREAM
)
&&
desc
->
nb_components
&&
!
desc
->
log2_chroma_h
&&
desc
->
nb_components
&&
!
desc
->
log2_chroma_h
&&
(
ret
=
ff_add_format
(
&
formats
,
pix_fmt
))
<
0
)
{
(
ret
=
ff_add_format
(
&
formats
,
pix_fmt
))
<
0
)
{
ff_formats_unref
(
&
formats
);
ff_formats_unref
(
&
formats
);
...
...
libavfilter/vf_pixdesctest.c
View file @
e6c4ac7b
...
@@ -78,8 +78,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -78,8 +78,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
}
/* copy palette */
/* copy palette */
if
(
priv
->
pix_desc
->
flags
&
PIX_FMT
_PAL
||
if
(
priv
->
pix_desc
->
flags
&
AV_PIX_FMT_FLAG
_PAL
||
priv
->
pix_desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
priv
->
pix_desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
memcpy
(
out
->
data
[
1
],
in
->
data
[
1
],
256
*
4
);
memcpy
(
out
->
data
[
1
],
in
->
data
[
1
],
256
*
4
);
for
(
c
=
0
;
c
<
priv
->
pix_desc
->
nb_components
;
c
++
)
{
for
(
c
=
0
;
c
<
priv
->
pix_desc
->
nb_components
;
c
++
)
{
...
...
libavfilter/vf_scale.c
View file @
e6c4ac7b
...
@@ -220,8 +220,8 @@ static int config_props(AVFilterLink *outlink)
...
@@ -220,8 +220,8 @@ static int config_props(AVFilterLink *outlink)
outlink
->
w
,
outlink
->
h
,
av_get_pix_fmt_name
(
outlink
->
format
),
outlink
->
w
,
outlink
->
h
,
av_get_pix_fmt_name
(
outlink
->
format
),
scale
->
flags
);
scale
->
flags
);
scale
->
input_is_pal
=
desc
->
flags
&
PIX_FMT
_PAL
||
scale
->
input_is_pal
=
desc
->
flags
&
AV_PIX_FMT_FLAG
_PAL
||
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
;
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
;
if
(
scale
->
sws
)
if
(
scale
->
sws
)
sws_freeContext
(
scale
->
sws
);
sws_freeContext
(
scale
->
sws
);
...
...
libavutil/frame.c
View file @
e6c4ac7b
...
@@ -93,7 +93,7 @@ static int get_video_buffer(AVFrame *frame, int align)
...
@@ -93,7 +93,7 @@ static int get_video_buffer(AVFrame *frame, int align)
frame
->
data
[
i
]
=
frame
->
buf
[
i
]
->
data
;
frame
->
data
[
i
]
=
frame
->
buf
[
i
]
->
data
;
}
}
if
(
desc
->
flags
&
PIX_FMT_PAL
||
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
{
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
||
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
{
av_buffer_unref
(
&
frame
->
buf
[
1
]);
av_buffer_unref
(
&
frame
->
buf
[
1
]);
frame
->
buf
[
1
]
=
av_buffer_alloc
(
1024
);
frame
->
buf
[
1
]
=
av_buffer_alloc
(
1024
);
if
(
!
frame
->
buf
[
1
])
if
(
!
frame
->
buf
[
1
])
...
...
libavutil/imgutils.c
View file @
e6c4ac7b
...
@@ -55,7 +55,7 @@ int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane)
...
@@ -55,7 +55,7 @@ int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane)
if
(
!
desc
)
if
(
!
desc
)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
if
(
desc
->
flags
&
PIX_FMT
_BITSTREAM
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_BITSTREAM
)
return
(
width
*
(
desc
->
comp
[
0
].
step_minus1
+
1
)
+
7
)
>>
3
;
return
(
width
*
(
desc
->
comp
[
0
].
step_minus1
+
1
)
+
7
)
>>
3
;
av_image_fill_max_pixsteps
(
max_step
,
max_step_comp
,
desc
);
av_image_fill_max_pixsteps
(
max_step
,
max_step_comp
,
desc
);
...
@@ -72,10 +72,10 @@ int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int wi
...
@@ -72,10 +72,10 @@ int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int wi
memset
(
linesizes
,
0
,
4
*
sizeof
(
linesizes
[
0
]));
memset
(
linesizes
,
0
,
4
*
sizeof
(
linesizes
[
0
]));
if
(
!
desc
||
desc
->
flags
&
PIX_FMT
_HWACCEL
)
if
(
!
desc
||
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
if
(
desc
->
flags
&
PIX_FMT
_BITSTREAM
)
{
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_BITSTREAM
)
{
if
(
width
>
(
INT_MAX
-
7
)
/
(
desc
->
comp
[
0
].
step_minus1
+
1
))
if
(
width
>
(
INT_MAX
-
7
)
/
(
desc
->
comp
[
0
].
step_minus1
+
1
))
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
linesizes
[
0
]
=
(
width
*
(
desc
->
comp
[
0
].
step_minus1
+
1
)
+
7
)
>>
3
;
linesizes
[
0
]
=
(
width
*
(
desc
->
comp
[
0
].
step_minus1
+
1
)
+
7
)
>>
3
;
...
@@ -102,7 +102,7 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei
...
@@ -102,7 +102,7 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
memset
(
data
,
0
,
sizeof
(
data
[
0
])
*
4
);
memset
(
data
,
0
,
sizeof
(
data
[
0
])
*
4
);
if
(
!
desc
||
desc
->
flags
&
PIX_FMT
_HWACCEL
)
if
(
!
desc
||
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
data
[
0
]
=
ptr
;
data
[
0
]
=
ptr
;
...
@@ -110,8 +110,8 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei
...
@@ -110,8 +110,8 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
size
[
0
]
=
linesizes
[
0
]
*
height
;
size
[
0
]
=
linesizes
[
0
]
*
height
;
if
(
desc
->
flags
&
PIX_FMT
_PAL
||
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PAL
||
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
{
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
{
size
[
0
]
=
(
size
[
0
]
+
3
)
&
~
3
;
size
[
0
]
=
(
size
[
0
]
+
3
)
&
~
3
;
data
[
1
]
=
ptr
+
size
[
0
];
/* palette is stored here as 256 32 bits words */
data
[
1
]
=
ptr
+
size
[
0
];
/* palette is stored here as 256 32 bits words */
return
size
[
0
]
+
256
*
4
;
return
size
[
0
]
+
256
*
4
;
...
@@ -203,7 +203,7 @@ int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
...
@@ -203,7 +203,7 @@ int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
av_free
(
buf
);
av_free
(
buf
);
return
ret
;
return
ret
;
}
}
if
(
desc
->
flags
&
PIX_FMT_PAL
||
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
||
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
avpriv_set_systematic_pal2
((
uint32_t
*
)
pointers
[
1
],
pix_fmt
);
avpriv_set_systematic_pal2
((
uint32_t
*
)
pointers
[
1
],
pix_fmt
);
return
ret
;
return
ret
;
...
@@ -247,11 +247,11 @@ void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
...
@@ -247,11 +247,11 @@ void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
if
(
!
desc
||
desc
->
flags
&
PIX_FMT
_HWACCEL
)
if
(
!
desc
||
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
)
return
;
return
;
if
(
desc
->
flags
&
PIX_FMT
_PAL
||
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PAL
||
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
{
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
{
av_image_copy_plane
(
dst_data
[
0
],
dst_linesizes
[
0
],
av_image_copy_plane
(
dst_data
[
0
],
dst_linesizes
[
0
],
src_data
[
0
],
src_linesizes
[
0
],
src_data
[
0
],
src_linesizes
[
0
],
width
,
height
);
width
,
height
);
...
...
libavutil/pixdesc.c
View file @
e6c4ac7b
...
@@ -42,7 +42,7 @@ void av_read_image_line(uint16_t *dst,
...
@@ -42,7 +42,7 @@ void av_read_image_line(uint16_t *dst,
int
step
=
comp
.
step_minus1
+
1
;
int
step
=
comp
.
step_minus1
+
1
;
int
flags
=
desc
->
flags
;
int
flags
=
desc
->
flags
;
if
(
flags
&
PIX_FMT
_BITSTREAM
)
{
if
(
flags
&
AV_PIX_FMT_FLAG
_BITSTREAM
)
{
int
skip
=
x
*
step
+
comp
.
offset_plus1
-
1
;
int
skip
=
x
*
step
+
comp
.
offset_plus1
-
1
;
const
uint8_t
*
p
=
data
[
plane
]
+
y
*
linesize
[
plane
]
+
(
skip
>>
3
);
const
uint8_t
*
p
=
data
[
plane
]
+
y
*
linesize
[
plane
]
+
(
skip
>>
3
);
int
shift
=
8
-
depth
-
(
skip
&
7
);
int
shift
=
8
-
depth
-
(
skip
&
7
);
...
@@ -62,11 +62,11 @@ void av_read_image_line(uint16_t *dst,
...
@@ -62,11 +62,11 @@ void av_read_image_line(uint16_t *dst,
int
is_8bit
=
shift
+
depth
<=
8
;
int
is_8bit
=
shift
+
depth
<=
8
;
if
(
is_8bit
)
if
(
is_8bit
)
p
+=
!!
(
flags
&
PIX_FMT
_BE
);
p
+=
!!
(
flags
&
AV_PIX_FMT_FLAG
_BE
);
while
(
w
--
)
{
while
(
w
--
)
{
int
val
=
is_8bit
?
*
p
:
int
val
=
is_8bit
?
*
p
:
flags
&
PIX_FMT
_BE
?
AV_RB16
(
p
)
:
AV_RL16
(
p
);
flags
&
AV_PIX_FMT_FLAG
_BE
?
AV_RB16
(
p
)
:
AV_RL16
(
p
);
val
=
(
val
>>
shift
)
&
mask
;
val
=
(
val
>>
shift
)
&
mask
;
if
(
read_pal_component
)
if
(
read_pal_component
)
val
=
data
[
1
][
4
*
val
+
c
];
val
=
data
[
1
][
4
*
val
+
c
];
...
@@ -87,7 +87,7 @@ void av_write_image_line(const uint16_t *src,
...
@@ -87,7 +87,7 @@ void av_write_image_line(const uint16_t *src,
int
step
=
comp
.
step_minus1
+
1
;
int
step
=
comp
.
step_minus1
+
1
;
int
flags
=
desc
->
flags
;
int
flags
=
desc
->
flags
;
if
(
flags
&
PIX_FMT
_BITSTREAM
)
{
if
(
flags
&
AV_PIX_FMT_FLAG
_BITSTREAM
)
{
int
skip
=
x
*
step
+
comp
.
offset_plus1
-
1
;
int
skip
=
x
*
step
+
comp
.
offset_plus1
-
1
;
uint8_t
*
p
=
data
[
plane
]
+
y
*
linesize
[
plane
]
+
(
skip
>>
3
);
uint8_t
*
p
=
data
[
plane
]
+
y
*
linesize
[
plane
]
+
(
skip
>>
3
);
int
shift
=
8
-
depth
-
(
skip
&
7
);
int
shift
=
8
-
depth
-
(
skip
&
7
);
...
@@ -104,14 +104,14 @@ void av_write_image_line(const uint16_t *src,
...
@@ -104,14 +104,14 @@ void av_write_image_line(const uint16_t *src,
x
*
step
+
comp
.
offset_plus1
-
1
;
x
*
step
+
comp
.
offset_plus1
-
1
;
if
(
shift
+
depth
<=
8
)
{
if
(
shift
+
depth
<=
8
)
{
p
+=
!!
(
flags
&
PIX_FMT
_BE
);
p
+=
!!
(
flags
&
AV_PIX_FMT_FLAG
_BE
);
while
(
w
--
)
{
while
(
w
--
)
{
*
p
|=
(
*
src
++
<<
shift
);
*
p
|=
(
*
src
++
<<
shift
);
p
+=
step
;
p
+=
step
;
}
}
}
else
{
}
else
{
while
(
w
--
)
{
while
(
w
--
)
{
if
(
flags
&
PIX_FMT
_BE
)
{
if
(
flags
&
AV_PIX_FMT_FLAG
_BE
)
{
uint16_t
val
=
AV_RB16
(
p
)
|
(
*
src
++
<<
shift
);
uint16_t
val
=
AV_RB16
(
p
)
|
(
*
src
++
<<
shift
);
AV_WB16
(
p
,
val
);
AV_WB16
(
p
,
val
);
}
else
{
}
else
{
...
@@ -138,7 +138,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -138,7 +138,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUYV422
]
=
{
[
AV_PIX_FMT_YUYV422
]
=
{
.
name
=
"yuyv422"
,
.
name
=
"yuyv422"
,
...
@@ -161,7 +161,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -161,7 +161,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
2
,
2
,
0
,
7
},
/* G */
{
0
,
2
,
2
,
0
,
7
},
/* G */
{
0
,
2
,
3
,
0
,
7
},
/* B */
{
0
,
2
,
3
,
0
,
7
},
/* B */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR24
]
=
{
[
AV_PIX_FMT_BGR24
]
=
{
.
name
=
"bgr24"
,
.
name
=
"bgr24"
,
...
@@ -173,7 +173,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -173,7 +173,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
2
,
2
,
0
,
7
},
/* G */
{
0
,
2
,
2
,
0
,
7
},
/* G */
{
0
,
2
,
3
,
0
,
7
},
/* R */
{
0
,
2
,
3
,
0
,
7
},
/* R */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_YUV422P
]
=
{
[
AV_PIX_FMT_YUV422P
]
=
{
.
name
=
"yuv422p"
,
.
name
=
"yuv422p"
,
...
@@ -185,7 +185,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -185,7 +185,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P
]
=
{
[
AV_PIX_FMT_YUV444P
]
=
{
.
name
=
"yuv444p"
,
.
name
=
"yuv444p"
,
...
@@ -197,7 +197,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -197,7 +197,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV410P
]
=
{
[
AV_PIX_FMT_YUV410P
]
=
{
.
name
=
"yuv410p"
,
.
name
=
"yuv410p"
,
...
@@ -209,7 +209,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -209,7 +209,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV411P
]
=
{
[
AV_PIX_FMT_YUV411P
]
=
{
.
name
=
"yuv411p"
,
.
name
=
"yuv411p"
,
...
@@ -221,7 +221,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -221,7 +221,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_GRAY8
]
=
{
[
AV_PIX_FMT_GRAY8
]
=
{
.
name
=
"gray"
,
.
name
=
"gray"
,
...
@@ -240,7 +240,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -240,7 +240,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.
comp
=
{
.
comp
=
{
{
0
,
0
,
1
,
0
,
0
},
/* Y */
{
0
,
0
,
1
,
0
,
0
},
/* Y */
},
},
.
flags
=
PIX_FMT
_BITSTREAM
,
.
flags
=
AV_PIX_FMT_FLAG
_BITSTREAM
,
},
},
[
AV_PIX_FMT_MONOBLACK
]
=
{
[
AV_PIX_FMT_MONOBLACK
]
=
{
.
name
=
"monob"
,
.
name
=
"monob"
,
...
@@ -250,7 +250,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -250,7 +250,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.
comp
=
{
.
comp
=
{
{
0
,
0
,
1
,
7
,
0
},
/* Y */
{
0
,
0
,
1
,
7
,
0
},
/* Y */
},
},
.
flags
=
PIX_FMT
_BITSTREAM
,
.
flags
=
AV_PIX_FMT_FLAG
_BITSTREAM
,
},
},
[
AV_PIX_FMT_PAL8
]
=
{
[
AV_PIX_FMT_PAL8
]
=
{
.
name
=
"pal8"
,
.
name
=
"pal8"
,
...
@@ -260,7 +260,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -260,7 +260,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.
comp
=
{
.
comp
=
{
{
0
,
0
,
1
,
0
,
7
},
{
0
,
0
,
1
,
0
,
7
},
},
},
.
flags
=
PIX_FMT
_PAL
,
.
flags
=
AV_PIX_FMT_FLAG
_PAL
,
},
},
[
AV_PIX_FMT_YUVJ420P
]
=
{
[
AV_PIX_FMT_YUVJ420P
]
=
{
.
name
=
"yuvj420p"
,
.
name
=
"yuvj420p"
,
...
@@ -272,7 +272,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -272,7 +272,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUVJ422P
]
=
{
[
AV_PIX_FMT_YUVJ422P
]
=
{
.
name
=
"yuvj422p"
,
.
name
=
"yuvj422p"
,
...
@@ -284,7 +284,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -284,7 +284,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUVJ444P
]
=
{
[
AV_PIX_FMT_YUVJ444P
]
=
{
.
name
=
"yuvj444p"
,
.
name
=
"yuvj444p"
,
...
@@ -296,15 +296,15 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -296,15 +296,15 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_XVMC_MPEG2_MC
]
=
{
[
AV_PIX_FMT_XVMC_MPEG2_MC
]
=
{
.
name
=
"xvmcmc"
,
.
name
=
"xvmcmc"
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_XVMC_MPEG2_IDCT
]
=
{
[
AV_PIX_FMT_XVMC_MPEG2_IDCT
]
=
{
.
name
=
"xvmcidct"
,
.
name
=
"xvmcidct"
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_UYVY422
]
=
{
[
AV_PIX_FMT_UYVY422
]
=
{
.
name
=
"uyvy422"
,
.
name
=
"uyvy422"
,
...
@@ -338,7 +338,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -338,7 +338,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
0
,
1
,
3
,
2
},
/* G */
{
0
,
0
,
1
,
3
,
2
},
/* G */
{
0
,
0
,
1
,
0
,
2
},
/* R */
{
0
,
0
,
1
,
0
,
2
},
/* R */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_PSEUDOPAL
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_PSEUDOPAL
,
},
},
[
AV_PIX_FMT_BGR4
]
=
{
[
AV_PIX_FMT_BGR4
]
=
{
.
name
=
"bgr4"
,
.
name
=
"bgr4"
,
...
@@ -350,7 +350,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -350,7 +350,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
3
,
2
,
0
,
1
},
/* G */
{
0
,
3
,
2
,
0
,
1
},
/* G */
{
0
,
3
,
4
,
0
,
0
},
/* R */
{
0
,
3
,
4
,
0
,
0
},
/* R */
},
},
.
flags
=
PIX_FMT_BITSTREAM
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BITSTREAM
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR4_BYTE
]
=
{
[
AV_PIX_FMT_BGR4_BYTE
]
=
{
.
name
=
"bgr4_byte"
,
.
name
=
"bgr4_byte"
,
...
@@ -362,7 +362,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -362,7 +362,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
0
,
1
,
1
,
1
},
/* G */
{
0
,
0
,
1
,
1
,
1
},
/* G */
{
0
,
0
,
1
,
0
,
0
},
/* R */
{
0
,
0
,
1
,
0
,
0
},
/* R */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_PSEUDOPAL
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_PSEUDOPAL
,
},
},
[
AV_PIX_FMT_RGB8
]
=
{
[
AV_PIX_FMT_RGB8
]
=
{
.
name
=
"rgb8"
,
.
name
=
"rgb8"
,
...
@@ -374,7 +374,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -374,7 +374,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
0
,
1
,
3
,
2
},
/* G */
{
0
,
0
,
1
,
3
,
2
},
/* G */
{
0
,
0
,
1
,
0
,
2
},
/* B */
{
0
,
0
,
1
,
0
,
2
},
/* B */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_PSEUDOPAL
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_PSEUDOPAL
,
},
},
[
AV_PIX_FMT_RGB4
]
=
{
[
AV_PIX_FMT_RGB4
]
=
{
.
name
=
"rgb4"
,
.
name
=
"rgb4"
,
...
@@ -386,7 +386,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -386,7 +386,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
3
,
2
,
0
,
1
},
/* G */
{
0
,
3
,
2
,
0
,
1
},
/* G */
{
0
,
3
,
4
,
0
,
0
},
/* B */
{
0
,
3
,
4
,
0
,
0
},
/* B */
},
},
.
flags
=
PIX_FMT_BITSTREAM
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BITSTREAM
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB4_BYTE
]
=
{
[
AV_PIX_FMT_RGB4_BYTE
]
=
{
.
name
=
"rgb4_byte"
,
.
name
=
"rgb4_byte"
,
...
@@ -398,7 +398,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -398,7 +398,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
0
,
1
,
1
,
1
},
/* G */
{
0
,
0
,
1
,
1
,
1
},
/* G */
{
0
,
0
,
1
,
0
,
0
},
/* B */
{
0
,
0
,
1
,
0
,
0
},
/* B */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_PSEUDOPAL
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_PSEUDOPAL
,
},
},
[
AV_PIX_FMT_NV12
]
=
{
[
AV_PIX_FMT_NV12
]
=
{
.
name
=
"nv12"
,
.
name
=
"nv12"
,
...
@@ -410,7 +410,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -410,7 +410,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
7
},
/* U */
{
1
,
1
,
1
,
0
,
7
},
/* U */
{
1
,
1
,
2
,
0
,
7
},
/* V */
{
1
,
1
,
2
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_NV21
]
=
{
[
AV_PIX_FMT_NV21
]
=
{
.
name
=
"nv21"
,
.
name
=
"nv21"
,
...
@@ -422,7 +422,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -422,7 +422,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
7
},
/* V */
{
1
,
1
,
1
,
0
,
7
},
/* V */
{
1
,
1
,
2
,
0
,
7
},
/* U */
{
1
,
1
,
2
,
0
,
7
},
/* U */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_ARGB
]
=
{
[
AV_PIX_FMT_ARGB
]
=
{
.
name
=
"argb"
,
.
name
=
"argb"
,
...
@@ -435,7 +435,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -435,7 +435,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
3
,
3
,
0
,
7
},
/* G */
{
0
,
3
,
3
,
0
,
7
},
/* G */
{
0
,
3
,
4
,
0
,
7
},
/* B */
{
0
,
3
,
4
,
0
,
7
},
/* B */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_RGBA
]
=
{
[
AV_PIX_FMT_RGBA
]
=
{
.
name
=
"rgba"
,
.
name
=
"rgba"
,
...
@@ -448,7 +448,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -448,7 +448,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
3
,
3
,
0
,
7
},
/* B */
{
0
,
3
,
3
,
0
,
7
},
/* B */
{
0
,
3
,
4
,
0
,
7
},
/* A */
{
0
,
3
,
4
,
0
,
7
},
/* A */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_ABGR
]
=
{
[
AV_PIX_FMT_ABGR
]
=
{
.
name
=
"abgr"
,
.
name
=
"abgr"
,
...
@@ -461,7 +461,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -461,7 +461,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
3
,
3
,
0
,
7
},
/* G */
{
0
,
3
,
3
,
0
,
7
},
/* G */
{
0
,
3
,
4
,
0
,
7
},
/* R */
{
0
,
3
,
4
,
0
,
7
},
/* R */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_BGRA
]
=
{
[
AV_PIX_FMT_BGRA
]
=
{
.
name
=
"bgra"
,
.
name
=
"bgra"
,
...
@@ -474,7 +474,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -474,7 +474,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
3
,
3
,
0
,
7
},
/* R */
{
0
,
3
,
3
,
0
,
7
},
/* R */
{
0
,
3
,
4
,
0
,
7
},
/* A */
{
0
,
3
,
4
,
0
,
7
},
/* A */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_GRAY16BE
]
=
{
[
AV_PIX_FMT_GRAY16BE
]
=
{
.
name
=
"gray16be"
,
.
name
=
"gray16be"
,
...
@@ -484,7 +484,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -484,7 +484,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.
comp
=
{
.
comp
=
{
{
0
,
1
,
1
,
0
,
15
},
/* Y */
{
0
,
1
,
1
,
0
,
15
},
/* Y */
},
},
.
flags
=
PIX_FMT
_BE
,
.
flags
=
AV_PIX_FMT_FLAG
_BE
,
},
},
[
AV_PIX_FMT_GRAY16LE
]
=
{
[
AV_PIX_FMT_GRAY16LE
]
=
{
.
name
=
"gray16le"
,
.
name
=
"gray16le"
,
...
@@ -505,7 +505,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -505,7 +505,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUVJ440P
]
=
{
[
AV_PIX_FMT_YUVJ440P
]
=
{
.
name
=
"yuvj440p"
,
.
name
=
"yuvj440p"
,
...
@@ -517,7 +517,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -517,7 +517,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
1
,
0
,
1
,
0
,
7
},
/* U */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUVA420P
]
=
{
[
AV_PIX_FMT_YUVA420P
]
=
{
.
name
=
"yuva420p"
,
.
name
=
"yuva420p"
,
...
@@ -530,7 +530,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -530,7 +530,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
3
,
0
,
1
,
0
,
7
},
/* A */
{
3
,
0
,
1
,
0
,
7
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P
]
=
{
[
AV_PIX_FMT_YUVA422P
]
=
{
.
name
=
"yuva422p"
,
.
name
=
"yuva422p"
,
...
@@ -543,7 +543,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -543,7 +543,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
3
,
0
,
1
,
0
,
7
},
/* A */
{
3
,
0
,
1
,
0
,
7
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P
]
=
{
[
AV_PIX_FMT_YUVA444P
]
=
{
.
name
=
"yuva444p"
,
.
name
=
"yuva444p"
,
...
@@ -556,7 +556,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -556,7 +556,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
2
,
0
,
1
,
0
,
7
},
/* V */
{
3
,
0
,
1
,
0
,
7
},
/* A */
{
3
,
0
,
1
,
0
,
7
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA420P9BE
]
=
{
[
AV_PIX_FMT_YUVA420P9BE
]
=
{
.
name
=
"yuva420p9be"
,
.
name
=
"yuva420p9be"
,
...
@@ -569,7 +569,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -569,7 +569,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
3
,
1
,
1
,
0
,
8
},
/* A */
{
3
,
1
,
1
,
0
,
8
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUVA420P9LE
]
=
{
[
AV_PIX_FMT_YUVA420P9LE
]
=
{
.
name
=
"yuva420p9le"
,
.
name
=
"yuva420p9le"
,
...
@@ -582,7 +582,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -582,7 +582,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
3
,
1
,
1
,
0
,
8
},
/* A */
{
3
,
1
,
1
,
0
,
8
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P9BE
]
=
{
[
AV_PIX_FMT_YUVA422P9BE
]
=
{
.
name
=
"yuva422p9be"
,
.
name
=
"yuva422p9be"
,
...
@@ -595,7 +595,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -595,7 +595,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
3
,
1
,
1
,
0
,
8
},
/* A */
{
3
,
1
,
1
,
0
,
8
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P9LE
]
=
{
[
AV_PIX_FMT_YUVA422P9LE
]
=
{
.
name
=
"yuva422p9le"
,
.
name
=
"yuva422p9le"
,
...
@@ -608,7 +608,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -608,7 +608,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
3
,
1
,
1
,
0
,
8
},
/* A */
{
3
,
1
,
1
,
0
,
8
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P9BE
]
=
{
[
AV_PIX_FMT_YUVA444P9BE
]
=
{
.
name
=
"yuva444p9be"
,
.
name
=
"yuva444p9be"
,
...
@@ -621,7 +621,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -621,7 +621,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
3
,
1
,
1
,
0
,
8
},
/* A */
{
3
,
1
,
1
,
0
,
8
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P9LE
]
=
{
[
AV_PIX_FMT_YUVA444P9LE
]
=
{
.
name
=
"yuva444p9le"
,
.
name
=
"yuva444p9le"
,
...
@@ -634,7 +634,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -634,7 +634,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
3
,
1
,
1
,
0
,
8
},
/* A */
{
3
,
1
,
1
,
0
,
8
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA420P10BE
]
=
{
[
AV_PIX_FMT_YUVA420P10BE
]
=
{
.
name
=
"yuva420p10be"
,
.
name
=
"yuva420p10be"
,
...
@@ -647,7 +647,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -647,7 +647,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
3
,
1
,
1
,
0
,
9
},
/* A */
{
3
,
1
,
1
,
0
,
9
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA420P10LE
]
=
{
[
AV_PIX_FMT_YUVA420P10LE
]
=
{
.
name
=
"yuva420p10le"
,
.
name
=
"yuva420p10le"
,
...
@@ -660,7 +660,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -660,7 +660,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
3
,
1
,
1
,
0
,
9
},
/* A */
{
3
,
1
,
1
,
0
,
9
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P10BE
]
=
{
[
AV_PIX_FMT_YUVA422P10BE
]
=
{
.
name
=
"yuva422p10be"
,
.
name
=
"yuva422p10be"
,
...
@@ -673,7 +673,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -673,7 +673,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
3
,
1
,
1
,
0
,
9
},
/* A */
{
3
,
1
,
1
,
0
,
9
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P10LE
]
=
{
[
AV_PIX_FMT_YUVA422P10LE
]
=
{
.
name
=
"yuva422p10le"
,
.
name
=
"yuva422p10le"
,
...
@@ -686,7 +686,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -686,7 +686,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
3
,
1
,
1
,
0
,
9
},
/* A */
{
3
,
1
,
1
,
0
,
9
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P10BE
]
=
{
[
AV_PIX_FMT_YUVA444P10BE
]
=
{
.
name
=
"yuva444p10be"
,
.
name
=
"yuva444p10be"
,
...
@@ -699,7 +699,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -699,7 +699,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
3
,
1
,
1
,
0
,
9
},
/* A */
{
3
,
1
,
1
,
0
,
9
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P10LE
]
=
{
[
AV_PIX_FMT_YUVA444P10LE
]
=
{
.
name
=
"yuva444p10le"
,
.
name
=
"yuva444p10le"
,
...
@@ -712,7 +712,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -712,7 +712,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
3
,
1
,
1
,
0
,
9
},
/* A */
{
3
,
1
,
1
,
0
,
9
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA420P16BE
]
=
{
[
AV_PIX_FMT_YUVA420P16BE
]
=
{
.
name
=
"yuva420p16be"
,
.
name
=
"yuva420p16be"
,
...
@@ -725,7 +725,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -725,7 +725,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
3
,
1
,
1
,
0
,
15
},
/* A */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA420P16LE
]
=
{
[
AV_PIX_FMT_YUVA420P16LE
]
=
{
.
name
=
"yuva420p16le"
,
.
name
=
"yuva420p16le"
,
...
@@ -738,7 +738,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -738,7 +738,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
3
,
1
,
1
,
0
,
15
},
/* A */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P16BE
]
=
{
[
AV_PIX_FMT_YUVA422P16BE
]
=
{
.
name
=
"yuva422p16be"
,
.
name
=
"yuva422p16be"
,
...
@@ -751,7 +751,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -751,7 +751,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
3
,
1
,
1
,
0
,
15
},
/* A */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA422P16LE
]
=
{
[
AV_PIX_FMT_YUVA422P16LE
]
=
{
.
name
=
"yuva422p16le"
,
.
name
=
"yuva422p16le"
,
...
@@ -764,7 +764,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -764,7 +764,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
3
,
1
,
1
,
0
,
15
},
/* A */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P16BE
]
=
{
[
AV_PIX_FMT_YUVA444P16BE
]
=
{
.
name
=
"yuva444p16be"
,
.
name
=
"yuva444p16be"
,
...
@@ -777,7 +777,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -777,7 +777,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
3
,
1
,
1
,
0
,
15
},
/* A */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_YUVA444P16LE
]
=
{
[
AV_PIX_FMT_YUVA444P16LE
]
=
{
.
name
=
"yuva444p16le"
,
.
name
=
"yuva444p16le"
,
...
@@ -790,43 +790,43 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -790,43 +790,43 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
3
,
1
,
1
,
0
,
15
},
/* A */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_VDPAU_H264
]
=
{
[
AV_PIX_FMT_VDPAU_H264
]
=
{
.
name
=
"vdpau_h264"
,
.
name
=
"vdpau_h264"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VDPAU_MPEG1
]
=
{
[
AV_PIX_FMT_VDPAU_MPEG1
]
=
{
.
name
=
"vdpau_mpeg1"
,
.
name
=
"vdpau_mpeg1"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VDPAU_MPEG2
]
=
{
[
AV_PIX_FMT_VDPAU_MPEG2
]
=
{
.
name
=
"vdpau_mpeg2"
,
.
name
=
"vdpau_mpeg2"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VDPAU_WMV3
]
=
{
[
AV_PIX_FMT_VDPAU_WMV3
]
=
{
.
name
=
"vdpau_wmv3"
,
.
name
=
"vdpau_wmv3"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VDPAU_VC1
]
=
{
[
AV_PIX_FMT_VDPAU_VC1
]
=
{
.
name
=
"vdpau_vc1"
,
.
name
=
"vdpau_vc1"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VDPAU_MPEG4
]
=
{
[
AV_PIX_FMT_VDPAU_MPEG4
]
=
{
.
name
=
"vdpau_mpeg4"
,
.
name
=
"vdpau_mpeg4"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_RGB48BE
]
=
{
[
AV_PIX_FMT_RGB48BE
]
=
{
.
name
=
"rgb48be"
,
.
name
=
"rgb48be"
,
...
@@ -838,7 +838,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -838,7 +838,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
5
,
0
,
15
},
/* B */
{
0
,
5
,
5
,
0
,
15
},
/* B */
},
},
.
flags
=
PIX_FMT_RGB
|
PIX_FMT
_BE
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG
_BE
,
},
},
[
AV_PIX_FMT_RGB48LE
]
=
{
[
AV_PIX_FMT_RGB48LE
]
=
{
.
name
=
"rgb48le"
,
.
name
=
"rgb48le"
,
...
@@ -850,7 +850,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -850,7 +850,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
5
,
0
,
15
},
/* B */
{
0
,
5
,
5
,
0
,
15
},
/* B */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB565BE
]
=
{
[
AV_PIX_FMT_RGB565BE
]
=
{
.
name
=
"rgb565be"
,
.
name
=
"rgb565be"
,
...
@@ -862,7 +862,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -862,7 +862,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* B */
{
0
,
1
,
1
,
0
,
4
},
/* B */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB565LE
]
=
{
[
AV_PIX_FMT_RGB565LE
]
=
{
.
name
=
"rgb565le"
,
.
name
=
"rgb565le"
,
...
@@ -874,7 +874,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -874,7 +874,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* B */
{
0
,
1
,
1
,
0
,
4
},
/* B */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB555BE
]
=
{
[
AV_PIX_FMT_RGB555BE
]
=
{
.
name
=
"rgb555be"
,
.
name
=
"rgb555be"
,
...
@@ -886,7 +886,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -886,7 +886,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* B */
{
0
,
1
,
1
,
0
,
4
},
/* B */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB555LE
]
=
{
[
AV_PIX_FMT_RGB555LE
]
=
{
.
name
=
"rgb555le"
,
.
name
=
"rgb555le"
,
...
@@ -898,7 +898,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -898,7 +898,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* B */
{
0
,
1
,
1
,
0
,
4
},
/* B */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB444BE
]
=
{
[
AV_PIX_FMT_RGB444BE
]
=
{
.
name
=
"rgb444be"
,
.
name
=
"rgb444be"
,
...
@@ -910,7 +910,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -910,7 +910,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
0
,
3
},
/* B */
{
0
,
1
,
1
,
0
,
3
},
/* B */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_RGB444LE
]
=
{
[
AV_PIX_FMT_RGB444LE
]
=
{
.
name
=
"rgb444le"
,
.
name
=
"rgb444le"
,
...
@@ -922,7 +922,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -922,7 +922,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
0
,
3
},
/* B */
{
0
,
1
,
1
,
0
,
3
},
/* B */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR48BE
]
=
{
[
AV_PIX_FMT_BGR48BE
]
=
{
.
name
=
"bgr48be"
,
.
name
=
"bgr48be"
,
...
@@ -934,7 +934,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -934,7 +934,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
5
,
0
,
15
},
/* R */
{
0
,
5
,
5
,
0
,
15
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR48LE
]
=
{
[
AV_PIX_FMT_BGR48LE
]
=
{
.
name
=
"bgr48le"
,
.
name
=
"bgr48le"
,
...
@@ -946,7 +946,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -946,7 +946,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
5
,
0
,
15
},
/* R */
{
0
,
5
,
5
,
0
,
15
},
/* R */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR565BE
]
=
{
[
AV_PIX_FMT_BGR565BE
]
=
{
.
name
=
"bgr565be"
,
.
name
=
"bgr565be"
,
...
@@ -958,7 +958,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -958,7 +958,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* R */
{
0
,
1
,
1
,
0
,
4
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR565LE
]
=
{
[
AV_PIX_FMT_BGR565LE
]
=
{
.
name
=
"bgr565le"
,
.
name
=
"bgr565le"
,
...
@@ -970,7 +970,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -970,7 +970,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
5
,
5
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* R */
{
0
,
1
,
1
,
0
,
4
},
/* R */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR555BE
]
=
{
[
AV_PIX_FMT_BGR555BE
]
=
{
.
name
=
"bgr555be"
,
.
name
=
"bgr555be"
,
...
@@ -982,7 +982,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -982,7 +982,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* R */
{
0
,
1
,
1
,
0
,
4
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR555LE
]
=
{
[
AV_PIX_FMT_BGR555LE
]
=
{
.
name
=
"bgr555le"
,
.
name
=
"bgr555le"
,
...
@@ -994,7 +994,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -994,7 +994,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
5
,
4
},
/* G */
{
0
,
1
,
1
,
0
,
4
},
/* R */
{
0
,
1
,
1
,
0
,
4
},
/* R */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR444BE
]
=
{
[
AV_PIX_FMT_BGR444BE
]
=
{
.
name
=
"bgr444be"
,
.
name
=
"bgr444be"
,
...
@@ -1006,7 +1006,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1006,7 +1006,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
0
,
3
},
/* R */
{
0
,
1
,
1
,
0
,
3
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_BGR444LE
]
=
{
[
AV_PIX_FMT_BGR444LE
]
=
{
.
name
=
"bgr444le"
,
.
name
=
"bgr444le"
,
...
@@ -1018,31 +1018,31 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1018,31 +1018,31 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
4
,
3
},
/* G */
{
0
,
1
,
1
,
0
,
3
},
/* R */
{
0
,
1
,
1
,
0
,
3
},
/* R */
},
},
.
flags
=
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_VAAPI_MOCO
]
=
{
[
AV_PIX_FMT_VAAPI_MOCO
]
=
{
.
name
=
"vaapi_moco"
,
.
name
=
"vaapi_moco"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VAAPI_IDCT
]
=
{
[
AV_PIX_FMT_VAAPI_IDCT
]
=
{
.
name
=
"vaapi_idct"
,
.
name
=
"vaapi_idct"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VAAPI_VLD
]
=
{
[
AV_PIX_FMT_VAAPI_VLD
]
=
{
.
name
=
"vaapi_vld"
,
.
name
=
"vaapi_vld"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_VDA_VLD
]
=
{
[
AV_PIX_FMT_VDA_VLD
]
=
{
.
name
=
"vda_vld"
,
.
name
=
"vda_vld"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_YUV420P9LE
]
=
{
[
AV_PIX_FMT_YUV420P9LE
]
=
{
.
name
=
"yuv420p9le"
,
.
name
=
"yuv420p9le"
,
...
@@ -1054,7 +1054,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1054,7 +1054,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV420P9BE
]
=
{
[
AV_PIX_FMT_YUV420P9BE
]
=
{
.
name
=
"yuv420p9be"
,
.
name
=
"yuv420p9be"
,
...
@@ -1066,7 +1066,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1066,7 +1066,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV420P10LE
]
=
{
[
AV_PIX_FMT_YUV420P10LE
]
=
{
.
name
=
"yuv420p10le"
,
.
name
=
"yuv420p10le"
,
...
@@ -1078,7 +1078,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1078,7 +1078,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV420P10BE
]
=
{
[
AV_PIX_FMT_YUV420P10BE
]
=
{
.
name
=
"yuv420p10be"
,
.
name
=
"yuv420p10be"
,
...
@@ -1090,7 +1090,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1090,7 +1090,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV420P16LE
]
=
{
[
AV_PIX_FMT_YUV420P16LE
]
=
{
.
name
=
"yuv420p16le"
,
.
name
=
"yuv420p16le"
,
...
@@ -1102,7 +1102,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1102,7 +1102,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV420P16BE
]
=
{
[
AV_PIX_FMT_YUV420P16BE
]
=
{
.
name
=
"yuv420p16be"
,
.
name
=
"yuv420p16be"
,
...
@@ -1114,7 +1114,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1114,7 +1114,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV422P9LE
]
=
{
[
AV_PIX_FMT_YUV422P9LE
]
=
{
.
name
=
"yuv422p9le"
,
.
name
=
"yuv422p9le"
,
...
@@ -1126,7 +1126,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1126,7 +1126,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV422P9BE
]
=
{
[
AV_PIX_FMT_YUV422P9BE
]
=
{
.
name
=
"yuv422p9be"
,
.
name
=
"yuv422p9be"
,
...
@@ -1138,7 +1138,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1138,7 +1138,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV422P10LE
]
=
{
[
AV_PIX_FMT_YUV422P10LE
]
=
{
.
name
=
"yuv422p10le"
,
.
name
=
"yuv422p10le"
,
...
@@ -1150,7 +1150,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1150,7 +1150,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV422P10BE
]
=
{
[
AV_PIX_FMT_YUV422P10BE
]
=
{
.
name
=
"yuv422p10be"
,
.
name
=
"yuv422p10be"
,
...
@@ -1162,7 +1162,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1162,7 +1162,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV422P16LE
]
=
{
[
AV_PIX_FMT_YUV422P16LE
]
=
{
.
name
=
"yuv422p16le"
,
.
name
=
"yuv422p16le"
,
...
@@ -1174,7 +1174,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1174,7 +1174,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV422P16BE
]
=
{
[
AV_PIX_FMT_YUV422P16BE
]
=
{
.
name
=
"yuv422p16be"
,
.
name
=
"yuv422p16be"
,
...
@@ -1186,7 +1186,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1186,7 +1186,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P16LE
]
=
{
[
AV_PIX_FMT_YUV444P16LE
]
=
{
.
name
=
"yuv444p16le"
,
.
name
=
"yuv444p16le"
,
...
@@ -1198,7 +1198,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1198,7 +1198,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P16BE
]
=
{
[
AV_PIX_FMT_YUV444P16BE
]
=
{
.
name
=
"yuv444p16be"
,
.
name
=
"yuv444p16be"
,
...
@@ -1210,7 +1210,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1210,7 +1210,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
1
,
1
,
1
,
0
,
15
},
/* U */
{
2
,
1
,
1
,
0
,
15
},
/* V */
{
2
,
1
,
1
,
0
,
15
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P10LE
]
=
{
[
AV_PIX_FMT_YUV444P10LE
]
=
{
.
name
=
"yuv444p10le"
,
.
name
=
"yuv444p10le"
,
...
@@ -1222,7 +1222,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1222,7 +1222,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P10BE
]
=
{
[
AV_PIX_FMT_YUV444P10BE
]
=
{
.
name
=
"yuv444p10be"
,
.
name
=
"yuv444p10be"
,
...
@@ -1234,7 +1234,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1234,7 +1234,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
1
,
1
,
1
,
0
,
9
},
/* U */
{
2
,
1
,
1
,
0
,
9
},
/* V */
{
2
,
1
,
1
,
0
,
9
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P9LE
]
=
{
[
AV_PIX_FMT_YUV444P9LE
]
=
{
.
name
=
"yuv444p9le"
,
.
name
=
"yuv444p9le"
,
...
@@ -1246,7 +1246,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1246,7 +1246,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
},
},
.
flags
=
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_YUV444P9BE
]
=
{
[
AV_PIX_FMT_YUV444P9BE
]
=
{
.
name
=
"yuv444p9be"
,
.
name
=
"yuv444p9be"
,
...
@@ -1258,13 +1258,13 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1258,13 +1258,13 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
1
,
1
,
1
,
0
,
8
},
/* U */
{
2
,
1
,
1
,
0
,
8
},
/* V */
{
2
,
1
,
1
,
0
,
8
},
/* V */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT
_PLANAR
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG
_PLANAR
,
},
},
[
AV_PIX_FMT_DXVA2_VLD
]
=
{
[
AV_PIX_FMT_DXVA2_VLD
]
=
{
.
name
=
"dxva2_vld"
,
.
name
=
"dxva2_vld"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_Y400A
]
=
{
[
AV_PIX_FMT_Y400A
]
=
{
.
name
=
"y400a"
,
.
name
=
"y400a"
,
...
@@ -1273,7 +1273,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1273,7 +1273,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
1
,
1
,
0
,
7
},
/* Y */
{
0
,
1
,
1
,
0
,
7
},
/* Y */
{
0
,
1
,
2
,
0
,
7
},
/* A */
{
0
,
1
,
2
,
0
,
7
},
/* A */
},
},
.
flags
=
PIX_FMT
_ALPHA
,
.
flags
=
AV_PIX_FMT_FLAG
_ALPHA
,
},
},
[
AV_PIX_FMT_GBRP
]
=
{
[
AV_PIX_FMT_GBRP
]
=
{
.
name
=
"gbrp"
,
.
name
=
"gbrp"
,
...
@@ -1285,7 +1285,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1285,7 +1285,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
0
,
1
,
0
,
7
},
/* B */
{
1
,
0
,
1
,
0
,
7
},
/* B */
{
2
,
0
,
1
,
0
,
7
},
/* R */
{
2
,
0
,
1
,
0
,
7
},
/* R */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_GBRP9LE
]
=
{
[
AV_PIX_FMT_GBRP9LE
]
=
{
.
name
=
"gbrp9le"
,
.
name
=
"gbrp9le"
,
...
@@ -1297,7 +1297,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1297,7 +1297,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* B */
{
1
,
1
,
1
,
0
,
8
},
/* B */
{
2
,
1
,
1
,
0
,
8
},
/* R */
{
2
,
1
,
1
,
0
,
8
},
/* R */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_GBRP9BE
]
=
{
[
AV_PIX_FMT_GBRP9BE
]
=
{
.
name
=
"gbrp9be"
,
.
name
=
"gbrp9be"
,
...
@@ -1309,7 +1309,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1309,7 +1309,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
8
},
/* B */
{
1
,
1
,
1
,
0
,
8
},
/* B */
{
2
,
1
,
1
,
0
,
8
},
/* R */
{
2
,
1
,
1
,
0
,
8
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_GBRP10LE
]
=
{
[
AV_PIX_FMT_GBRP10LE
]
=
{
.
name
=
"gbrp10le"
,
.
name
=
"gbrp10le"
,
...
@@ -1321,7 +1321,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1321,7 +1321,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* B */
{
1
,
1
,
1
,
0
,
9
},
/* B */
{
2
,
1
,
1
,
0
,
9
},
/* R */
{
2
,
1
,
1
,
0
,
9
},
/* R */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_GBRP10BE
]
=
{
[
AV_PIX_FMT_GBRP10BE
]
=
{
.
name
=
"gbrp10be"
,
.
name
=
"gbrp10be"
,
...
@@ -1333,7 +1333,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1333,7 +1333,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
9
},
/* B */
{
1
,
1
,
1
,
0
,
9
},
/* B */
{
2
,
1
,
1
,
0
,
9
},
/* R */
{
2
,
1
,
1
,
0
,
9
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_GBRP16LE
]
=
{
[
AV_PIX_FMT_GBRP16LE
]
=
{
.
name
=
"gbrp16le"
,
.
name
=
"gbrp16le"
,
...
@@ -1345,7 +1345,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1345,7 +1345,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
2
,
1
,
1
,
0
,
15
},
/* R */
{
2
,
1
,
1
,
0
,
15
},
/* R */
},
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_GBRP16BE
]
=
{
[
AV_PIX_FMT_GBRP16BE
]
=
{
.
name
=
"gbrp16be"
,
.
name
=
"gbrp16be"
,
...
@@ -1357,13 +1357,13 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1357,13 +1357,13 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
2
,
1
,
1
,
0
,
15
},
/* R */
{
2
,
1
,
1
,
0
,
15
},
/* R */
},
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
,
},
},
[
AV_PIX_FMT_VDPAU
]
=
{
[
AV_PIX_FMT_VDPAU
]
=
{
.
name
=
"vdpau"
,
.
name
=
"vdpau"
,
.
log2_chroma_w
=
1
,
.
log2_chroma_w
=
1
,
.
log2_chroma_h
=
1
,
.
log2_chroma_h
=
1
,
.
flags
=
PIX_FMT
_HWACCEL
,
.
flags
=
AV_PIX_FMT_FLAG
_HWACCEL
,
},
},
[
AV_PIX_FMT_XYZ12LE
]
=
{
[
AV_PIX_FMT_XYZ12LE
]
=
{
.
name
=
"xyz12le"
,
.
name
=
"xyz12le"
,
...
@@ -1387,7 +1387,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
...
@@ -1387,7 +1387,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{
0
,
5
,
3
,
4
,
11
},
/* Y */
{
0
,
5
,
3
,
4
,
11
},
/* Y */
{
0
,
5
,
5
,
4
,
11
},
/* Z */
{
0
,
5
,
5
,
4
,
11
},
/* Z */
},
},
.
flags
=
PIX_FMT
_BE
,
.
flags
=
AV_PIX_FMT_FLAG
_BE
,
},
},
};
};
...
...
libavutil/pixdesc.h
View file @
e6c4ac7b
...
@@ -83,21 +83,54 @@ typedef struct AVPixFmtDescriptor{
...
@@ -83,21 +83,54 @@ typedef struct AVPixFmtDescriptor{
AVComponentDescriptor
comp
[
4
];
AVComponentDescriptor
comp
[
4
];
}
AVPixFmtDescriptor
;
}
AVPixFmtDescriptor
;
#define PIX_FMT_BE 1 ///< Pixel format is big-endian.
/**
#define PIX_FMT_PAL 2 ///< Pixel format has a palette in data[1], values are indexes in this palette.
* Pixel format is big-endian.
#define PIX_FMT_BITSTREAM 4 ///< All values of a component are bit-wise packed end to end.
*/
#define PIX_FMT_HWACCEL 8 ///< Pixel format is an HW accelerated format.
#define AV_PIX_FMT_FLAG_BE (1 << 0)
#define PIX_FMT_PLANAR 16 ///< At least one pixel component is not in the first data plane
/**
#define PIX_FMT_RGB 32 ///< The pixel format contains RGB-like data (as opposed to YUV/grayscale)
* Pixel format has a palette in data[1], values are indexes in this palette.
*/
#define AV_PIX_FMT_FLAG_PAL (1 << 1)
/**
* All values of a component are bit-wise packed end to end.
*/
#define AV_PIX_FMT_FLAG_BITSTREAM (1 << 2)
/**
* Pixel format is an HW accelerated format.
*/
#define AV_PIX_FMT_FLAG_HWACCEL (1 << 3)
/**
* At least one pixel component is not in the first data plane.
*/
#define AV_PIX_FMT_FLAG_PLANAR (1 << 4)
/**
* The pixel format contains RGB-like data (as opposed to YUV/grayscale).
*/
#define AV_PIX_FMT_FLAG_RGB (1 << 5)
/**
/**
* The pixel format is "pseudo-paletted". This means that Libav treats it as
* The pixel format is "pseudo-paletted". This means that Libav treats it as
* paletted internally, but the palette is generated by the decoder and is not
* paletted internally, but the palette is generated by the decoder and is not
* stored in the file.
* stored in the file.
*/
*/
#define PIX_FMT_PSEUDOPAL 64
#define AV_PIX_FMT_FLAG_PSEUDOPAL (1 << 6)
/**
#define PIX_FMT_ALPHA 128 ///< The pixel format has an alpha channel
* The pixel format has an alpha channel.
*/
#define AV_PIX_FMT_FLAG_ALPHA (1 << 7)
#if FF_API_PIX_FMT
/**
* @deprecate use the AV_PIX_FMT_FLAG_* flags
*/
#define PIX_FMT_BE AV_PIX_FMT_FLAG_BE
#define PIX_FMT_PAL AV_PIX_FMT_FLAG_PAL
#define PIX_FMT_BITSTREAM AV_PIX_FMT_FLAG_BITSTREAM
#define PIX_FMT_HWACCEL AV_PIX_FMT_FLAG_HWACCEL
#define PIX_FMT_PLANAR AV_PIX_FMT_FLAG_PLANAR
#define PIX_FMT_RGB AV_PIX_FMT_FLAG_RGB
#define PIX_FMT_PSEUDOPAL AV_PIX_FMT_FLAG_PSEUDOPAL
#define PIX_FMT_ALPHA AV_PIX_FMT_FLAG_ALPHA
#endif
#if FF_API_PIX_FMT_DESC
#if FF_API_PIX_FMT_DESC
/**
/**
...
...
libavutil/version.h
View file @
e6c4ac7b
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
*/
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR 1
0
#define LIBAVUTIL_VERSION_MINOR 1
1
#define LIBAVUTIL_VERSION_MICRO
1
#define LIBAVUTIL_VERSION_MICRO
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
libswscale/swscale_internal.h
View file @
e6c4ac7b
...
@@ -596,33 +596,33 @@ static av_always_inline int isBE(enum AVPixelFormat pix_fmt)
...
@@ -596,33 +596,33 @@ static av_always_inline int isBE(enum AVPixelFormat pix_fmt)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
desc
->
flags
&
PIX_FMT
_BE
;
return
desc
->
flags
&
AV_PIX_FMT_FLAG
_BE
;
}
}
static
av_always_inline
int
isYUV
(
enum
AVPixelFormat
pix_fmt
)
static
av_always_inline
int
isYUV
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
!
(
desc
->
flags
&
PIX_FMT
_RGB
)
&&
desc
->
nb_components
>=
2
;
return
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_RGB
)
&&
desc
->
nb_components
>=
2
;
}
}
static
av_always_inline
int
isPlanarYUV
(
enum
AVPixelFormat
pix_fmt
)
static
av_always_inline
int
isPlanarYUV
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
((
desc
->
flags
&
PIX_FMT
_PLANAR
)
&&
isYUV
(
pix_fmt
));
return
((
desc
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
)
&&
isYUV
(
pix_fmt
));
}
}
static
av_always_inline
int
isRGB
(
enum
AVPixelFormat
pix_fmt
)
static
av_always_inline
int
isRGB
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
(
desc
->
flags
&
PIX_FMT
_RGB
);
return
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_RGB
);
}
}
#if 0 // FIXME
#if 0 // FIXME
#define isGray(x) \
#define isGray(x) \
(!(av_pix_fmt_descriptors[x].flags &
PIX_FMT
_PAL) && \
(!(av_pix_fmt_descriptors[x].flags &
AV_PIX_FMT_FLAG
_PAL) && \
av_pix_fmt_descriptors[x].nb_components <= 2)
av_pix_fmt_descriptors[x].nb_components <= 2)
#else
#else
#define isGray(x) \
#define isGray(x) \
...
@@ -683,7 +683,7 @@ static av_always_inline int isPacked(enum AVPixelFormat pix_fmt)
...
@@ -683,7 +683,7 @@ static av_always_inline int isPacked(enum AVPixelFormat pix_fmt)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
((
desc
->
nb_components
>=
2
&&
!
(
desc
->
flags
&
PIX_FMT
_PLANAR
))
||
return
((
desc
->
nb_components
>=
2
&&
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
))
||
pix_fmt
==
AV_PIX_FMT_PAL8
);
pix_fmt
==
AV_PIX_FMT_PAL8
);
}
}
...
@@ -691,29 +691,29 @@ static av_always_inline int isPlanar(enum AVPixelFormat pix_fmt)
...
@@ -691,29 +691,29 @@ static av_always_inline int isPlanar(enum AVPixelFormat pix_fmt)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
(
desc
->
nb_components
>=
2
&&
(
desc
->
flags
&
PIX_FMT
_PLANAR
));
return
(
desc
->
nb_components
>=
2
&&
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PLANAR
));
}
}
static
av_always_inline
int
isPackedRGB
(
enum
AVPixelFormat
pix_fmt
)
static
av_always_inline
int
isPackedRGB
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
((
desc
->
flags
&
(
PIX_FMT_PLANAR
|
PIX_FMT_RGB
))
==
PIX_FMT
_RGB
);
return
((
desc
->
flags
&
(
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG_RGB
))
==
AV_PIX_FMT_FLAG
_RGB
);
}
}
static
av_always_inline
int
isPlanarRGB
(
enum
AVPixelFormat
pix_fmt
)
static
av_always_inline
int
isPlanarRGB
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
((
desc
->
flags
&
(
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
))
==
return
((
desc
->
flags
&
(
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
))
==
(
PIX_FMT_PLANAR
|
PIX_FMT
_RGB
));
(
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG
_RGB
));
}
}
static
av_always_inline
int
usePal
(
enum
AVPixelFormat
pix_fmt
)
static
av_always_inline
int
usePal
(
enum
AVPixelFormat
pix_fmt
)
{
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
av_assert0
(
desc
);
return
((
desc
->
flags
&
PIX_FMT_PAL
)
||
(
desc
->
flags
&
PIX_FMT
_PSEUDOPAL
)
||
return
((
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
)
||
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_PSEUDOPAL
)
||
pix_fmt
==
AV_PIX_FMT_Y400A
);
pix_fmt
==
AV_PIX_FMT_Y400A
);
}
}
...
...
libswscale/swscale_unscaled.c
View file @
e6c4ac7b
...
@@ -563,7 +563,7 @@ static rgbConvFn findRgbConvFn(SwsContext *c)
...
@@ -563,7 +563,7 @@ static rgbConvFn findRgbConvFn(SwsContext *c)
#define IS_NOT_NE(bpp, desc) \
#define IS_NOT_NE(bpp, desc) \
(((bpp + 7) >> 3) == 2 && \
(((bpp + 7) >> 3) == 2 && \
(!(desc->flags &
PIX_FMT
_BE) != !HAVE_BIGENDIAN))
(!(desc->flags &
AV_PIX_FMT_FLAG
_BE) != !HAVE_BIGENDIAN))
/* if this is non-native rgb444/555/565, don't handle it here. */
/* if this is non-native rgb444/555/565, don't handle it here. */
if
(
IS_NOT_NE
(
srcId
,
desc_src
)
||
IS_NOT_NE
(
dstId
,
desc_dst
))
if
(
IS_NOT_NE
(
srcId
,
desc_src
)
||
IS_NOT_NE
(
dstId
,
desc_dst
))
...
...
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