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
d64f3b72
Commit
d64f3b72
authored
Jul 06, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace some deprecated defines
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
96358062
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
g2meet.c
libavcodec/g2meet.c
+1
-1
sgirledec.c
libavcodec/sgirledec.c
+1
-1
smvjpegdec.c
libavcodec/smvjpegdec.c
+1
-1
vf_vignette.c
libavfilter/vf_vignette.c
+1
-1
avisynth.c
libavformat/avisynth.c
+9
-9
No files found.
libavcodec/g2meet.c
View file @
d64f3b72
...
@@ -840,7 +840,7 @@ static av_cold int g2m_decode_init(AVCodecContext *avctx)
...
@@ -840,7 +840,7 @@ static av_cold int g2m_decode_init(AVCodecContext *avctx)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
}
avctx
->
pix_fmt
=
PIX_FMT_RGB24
;
avctx
->
pix_fmt
=
AV_
PIX_FMT_RGB24
;
return
0
;
return
0
;
}
}
...
...
libavcodec/sgirledec.c
View file @
d64f3b72
...
@@ -42,7 +42,7 @@ static av_cold int sgirle_decode_init(AVCodecContext *avctx)
...
@@ -42,7 +42,7 @@ static av_cold int sgirle_decode_init(AVCodecContext *avctx)
}
}
/**
/**
* Convert SGI RGB332 pixel into PIX_FMT_BGR8
* Convert SGI RGB332 pixel into
AV_
PIX_FMT_BGR8
* SGI RGB332 is packed RGB 3:3:2, 8bpp, (msb)3R 2B 3G(lsb)
* SGI RGB332 is packed RGB 3:3:2, 8bpp, (msb)3R 2B 3G(lsb)
*/
*/
#define RGB332_TO_BGR8(x) (((x << 3) & 0xC0) | ((x << 3) & 0x38) | ((x >> 5) & 7))
#define RGB332_TO_BGR8(x) (((x << 3) & 0xC0) | ((x << 3) & 0x38) | ((x >> 5) & 7))
...
...
libavcodec/smvjpegdec.c
View file @
d64f3b72
...
@@ -56,7 +56,7 @@ static inline void smv_img_pnt(uint8_t *dst_data[4], uint8_t *src_data[4],
...
@@ -56,7 +56,7 @@ static inline void smv_img_pnt(uint8_t *dst_data[4], uint8_t *src_data[4],
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
int
i
,
planes_nb
=
0
;
int
i
,
planes_nb
=
0
;
if
(
desc
->
flags
&
PIX_FMT
_HWACCEL
)
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG
_HWACCEL
)
return
;
return
;
for
(
i
=
0
;
i
<
desc
->
nb_components
;
i
++
)
for
(
i
=
0
;
i
<
desc
->
nb_components
;
i
++
)
...
...
libavfilter/vf_vignette.c
View file @
d64f3b72
...
@@ -213,7 +213,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -213,7 +213,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if
(
s
->
eval_mode
==
EVAL_MODE_FRAME
)
if
(
s
->
eval_mode
==
EVAL_MODE_FRAME
)
update_context
(
s
,
inlink
,
in
);
update_context
(
s
,
inlink
,
in
);
if
(
s
->
desc
->
flags
&
PIX_FMT
_RGB
)
{
if
(
s
->
desc
->
flags
&
AV_PIX_FMT_FLAG
_RGB
)
{
uint8_t
*
dst
=
out
->
data
[
0
];
uint8_t
*
dst
=
out
->
data
[
0
];
const
uint8_t
*
src
=
in
->
data
[
0
];
const
uint8_t
*
src
=
in
->
data
[
0
];
const
float
*
fmap
=
s
->
fmap
;
const
float
*
fmap
=
s
->
fmap
;
...
...
libavformat/avisynth.c
View file @
d64f3b72
...
@@ -239,37 +239,37 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) {
...
@@ -239,37 +239,37 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) {
switch
(
avs
->
vi
->
pixel_type
)
{
switch
(
avs
->
vi
->
pixel_type
)
{
#ifdef _WIN32
#ifdef _WIN32
case
AVS_CS_YV24
:
case
AVS_CS_YV24
:
st
->
codec
->
pix_fmt
=
PIX_FMT_YUV444P
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_YUV444P
;
planar
=
1
;
planar
=
1
;
break
;
break
;
case
AVS_CS_YV16
:
case
AVS_CS_YV16
:
st
->
codec
->
pix_fmt
=
PIX_FMT_YUV422P
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_YUV422P
;
planar
=
1
;
planar
=
1
;
break
;
break
;
case
AVS_CS_YV411
:
case
AVS_CS_YV411
:
st
->
codec
->
pix_fmt
=
PIX_FMT_YUV411P
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_YUV411P
;
planar
=
1
;
planar
=
1
;
break
;
break
;
case
AVS_CS_Y8
:
case
AVS_CS_Y8
:
st
->
codec
->
pix_fmt
=
PIX_FMT_GRAY8
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_GRAY8
;
planar
=
2
;
planar
=
2
;
break
;
break
;
#endif
#endif
case
AVS_CS_BGR24
:
case
AVS_CS_BGR24
:
st
->
codec
->
pix_fmt
=
PIX_FMT_BGR24
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_BGR24
;
break
;
break
;
case
AVS_CS_BGR32
:
case
AVS_CS_BGR32
:
st
->
codec
->
pix_fmt
=
PIX_FMT_RGB32
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_RGB32
;
break
;
break
;
case
AVS_CS_YUY2
:
case
AVS_CS_YUY2
:
st
->
codec
->
pix_fmt
=
PIX_FMT_YUYV422
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_YUYV422
;
break
;
break
;
case
AVS_CS_YV12
:
case
AVS_CS_YV12
:
st
->
codec
->
pix_fmt
=
PIX_FMT_YUV420P
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_YUV420P
;
planar
=
1
;
planar
=
1
;
break
;
break
;
case
AVS_CS_I420
:
// Is this even used anywhere?
case
AVS_CS_I420
:
// Is this even used anywhere?
st
->
codec
->
pix_fmt
=
PIX_FMT_YUV420P
;
st
->
codec
->
pix_fmt
=
AV_
PIX_FMT_YUV420P
;
planar
=
1
;
planar
=
1
;
break
;
break
;
default:
default:
...
...
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