Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
3a71bcc2
Commit
3a71bcc2
authored
Nov 04, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Mark all AVHWAccel structures as const
parent
da4e02b1
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
104 additions
and
101 deletions
+104
-101
APIchanges
doc/APIchanges
+3
-0
avcodec.h
libavcodec/avcodec.h
+1
-1
decode.c
libavcodec/decode.c
+1
-1
dxva2_h264.c
libavcodec/dxva2_h264.c
+3
-3
dxva2_hevc.c
libavcodec/dxva2_hevc.c
+3
-3
dxva2_mpeg2.c
libavcodec/dxva2_mpeg2.c
+3
-3
dxva2_vc1.c
libavcodec/dxva2_vc1.c
+6
-6
dxva2_vp9.c
libavcodec/dxva2_vp9.c
+3
-3
hwaccels.h
libavcodec/hwaccels.h
+49
-49
mpegvideo_xvmc.c
libavcodec/mpegvideo_xvmc.c
+2
-2
nvdec_h264.c
libavcodec/nvdec_h264.c
+1
-1
nvdec_hevc.c
libavcodec/nvdec_hevc.c
+1
-1
nvdec_mpeg12.c
libavcodec/nvdec_mpeg12.c
+2
-2
nvdec_mpeg4.c
libavcodec/nvdec_mpeg4.c
+1
-1
nvdec_vc1.c
libavcodec/nvdec_vc1.c
+2
-2
nvdec_vp9.c
libavcodec/nvdec_vp9.c
+1
-1
vaapi_h264.c
libavcodec/vaapi_h264.c
+1
-1
vaapi_hevc.c
libavcodec/vaapi_hevc.c
+1
-1
vaapi_mpeg2.c
libavcodec/vaapi_mpeg2.c
+1
-1
vaapi_mpeg4.c
libavcodec/vaapi_mpeg4.c
+2
-2
vaapi_vc1.c
libavcodec/vaapi_vc1.c
+2
-2
vaapi_vp9.c
libavcodec/vaapi_vp9.c
+1
-1
vdpau_h264.c
libavcodec/vdpau_h264.c
+1
-1
vdpau_hevc.c
libavcodec/vdpau_hevc.c
+1
-1
vdpau_mpeg12.c
libavcodec/vdpau_mpeg12.c
+2
-2
vdpau_mpeg4.c
libavcodec/vdpau_mpeg4.c
+1
-1
vdpau_vc1.c
libavcodec/vdpau_vc1.c
+2
-2
version.h
libavcodec/version.h
+1
-1
videotoolbox.c
libavcodec/videotoolbox.c
+6
-6
No files found.
doc/APIchanges
View file @
3a71bcc2
...
@@ -15,6 +15,9 @@ libavutil: 2017-10-21
...
@@ -15,6 +15,9 @@ libavutil: 2017-10-21
API changes, most recent first:
API changes, most recent first:
2017-xx-xx - xxxxxxx - lavc 58.6.100 - avcodec.h
Add const to AVCodecContext.hwaccel.
2017-11-xx - xxxxxxx - lavc 58.5.100 - avcodec.h
2017-11-xx - xxxxxxx - lavc 58.5.100 - avcodec.h
Deprecate user visibility of the AVHWAccel structure and the functions
Deprecate user visibility of the AVHWAccel structure and the functions
av_register_hwaccel() and av_hwaccel_next().
av_register_hwaccel() and av_hwaccel_next().
...
...
libavcodec/avcodec.h
View file @
3a71bcc2
...
@@ -2635,7 +2635,7 @@ typedef struct AVCodecContext {
...
@@ -2635,7 +2635,7 @@ typedef struct AVCodecContext {
* - encoding: unused.
* - encoding: unused.
* - decoding: Set by libavcodec
* - decoding: Set by libavcodec
*/
*/
struct
AVHWAccel
*
hwaccel
;
const
struct
AVHWAccel
*
hwaccel
;
/**
/**
* Hardware accelerator context.
* Hardware accelerator context.
...
...
libavcodec/decode.c
View file @
3a71bcc2
...
@@ -1252,7 +1252,7 @@ static int hwaccel_init(AVCodecContext *avctx,
...
@@ -1252,7 +1252,7 @@ static int hwaccel_init(AVCodecContext *avctx,
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
}
avctx
->
hwaccel
=
(
AVHWAccel
*
)
hwaccel
;
avctx
->
hwaccel
=
hwaccel
;
if
(
hwaccel
->
init
)
{
if
(
hwaccel
->
init
)
{
err
=
hwaccel
->
init
(
avctx
);
err
=
hwaccel
->
init
(
avctx
);
if
(
err
<
0
)
{
if
(
err
<
0
)
{
...
...
libavcodec/dxva2_h264.c
View file @
3a71bcc2
...
@@ -518,7 +518,7 @@ static int dxva2_h264_end_frame(AVCodecContext *avctx)
...
@@ -518,7 +518,7 @@ static int dxva2_h264_end_frame(AVCodecContext *avctx)
}
}
#if CONFIG_H264_DXVA2_HWACCEL
#if CONFIG_H264_DXVA2_HWACCEL
AVHWAccel
ff_h264_dxva2_hwaccel
=
{
const
AVHWAccel
ff_h264_dxva2_hwaccel
=
{
.
name
=
"h264_dxva2"
,
.
name
=
"h264_dxva2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
@@ -535,7 +535,7 @@ AVHWAccel ff_h264_dxva2_hwaccel = {
...
@@ -535,7 +535,7 @@ AVHWAccel ff_h264_dxva2_hwaccel = {
#endif
#endif
#if CONFIG_H264_D3D11VA_HWACCEL
#if CONFIG_H264_D3D11VA_HWACCEL
AVHWAccel
ff_h264_d3d11va_hwaccel
=
{
const
AVHWAccel
ff_h264_d3d11va_hwaccel
=
{
.
name
=
"h264_d3d11va"
,
.
name
=
"h264_d3d11va"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
@@ -552,7 +552,7 @@ AVHWAccel ff_h264_d3d11va_hwaccel = {
...
@@ -552,7 +552,7 @@ AVHWAccel ff_h264_d3d11va_hwaccel = {
#endif
#endif
#if CONFIG_H264_D3D11VA2_HWACCEL
#if CONFIG_H264_D3D11VA2_HWACCEL
AVHWAccel
ff_h264_d3d11va2_hwaccel
=
{
const
AVHWAccel
ff_h264_d3d11va2_hwaccel
=
{
.
name
=
"h264_d3d11va2"
,
.
name
=
"h264_d3d11va2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
...
libavcodec/dxva2_hevc.c
View file @
3a71bcc2
...
@@ -422,7 +422,7 @@ static int dxva2_hevc_end_frame(AVCodecContext *avctx)
...
@@ -422,7 +422,7 @@ static int dxva2_hevc_end_frame(AVCodecContext *avctx)
}
}
#if CONFIG_HEVC_DXVA2_HWACCEL
#if CONFIG_HEVC_DXVA2_HWACCEL
AVHWAccel
ff_hevc_dxva2_hwaccel
=
{
const
AVHWAccel
ff_hevc_dxva2_hwaccel
=
{
.
name
=
"hevc_dxva2"
,
.
name
=
"hevc_dxva2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
@@ -439,7 +439,7 @@ AVHWAccel ff_hevc_dxva2_hwaccel = {
...
@@ -439,7 +439,7 @@ AVHWAccel ff_hevc_dxva2_hwaccel = {
#endif
#endif
#if CONFIG_HEVC_D3D11VA_HWACCEL
#if CONFIG_HEVC_D3D11VA_HWACCEL
AVHWAccel
ff_hevc_d3d11va_hwaccel
=
{
const
AVHWAccel
ff_hevc_d3d11va_hwaccel
=
{
.
name
=
"hevc_d3d11va"
,
.
name
=
"hevc_d3d11va"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
@@ -456,7 +456,7 @@ AVHWAccel ff_hevc_d3d11va_hwaccel = {
...
@@ -456,7 +456,7 @@ AVHWAccel ff_hevc_d3d11va_hwaccel = {
#endif
#endif
#if CONFIG_HEVC_D3D11VA2_HWACCEL
#if CONFIG_HEVC_D3D11VA2_HWACCEL
AVHWAccel
ff_hevc_d3d11va2_hwaccel
=
{
const
AVHWAccel
ff_hevc_d3d11va2_hwaccel
=
{
.
name
=
"hevc_d3d11va2"
,
.
name
=
"hevc_d3d11va2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
...
libavcodec/dxva2_mpeg2.c
View file @
3a71bcc2
...
@@ -317,7 +317,7 @@ static int dxva2_mpeg2_end_frame(AVCodecContext *avctx)
...
@@ -317,7 +317,7 @@ static int dxva2_mpeg2_end_frame(AVCodecContext *avctx)
}
}
#if CONFIG_MPEG2_DXVA2_HWACCEL
#if CONFIG_MPEG2_DXVA2_HWACCEL
AVHWAccel
ff_mpeg2_dxva2_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_dxva2_hwaccel
=
{
.
name
=
"mpeg2_dxva2"
,
.
name
=
"mpeg2_dxva2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
@@ -334,7 +334,7 @@ AVHWAccel ff_mpeg2_dxva2_hwaccel = {
...
@@ -334,7 +334,7 @@ AVHWAccel ff_mpeg2_dxva2_hwaccel = {
#endif
#endif
#if CONFIG_MPEG2_D3D11VA_HWACCEL
#if CONFIG_MPEG2_D3D11VA_HWACCEL
AVHWAccel
ff_mpeg2_d3d11va_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_d3d11va_hwaccel
=
{
.
name
=
"mpeg2_d3d11va"
,
.
name
=
"mpeg2_d3d11va"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
@@ -351,7 +351,7 @@ AVHWAccel ff_mpeg2_d3d11va_hwaccel = {
...
@@ -351,7 +351,7 @@ AVHWAccel ff_mpeg2_d3d11va_hwaccel = {
#endif
#endif
#if CONFIG_MPEG2_D3D11VA2_HWACCEL
#if CONFIG_MPEG2_D3D11VA2_HWACCEL
AVHWAccel
ff_mpeg2_d3d11va2_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_d3d11va2_hwaccel
=
{
.
name
=
"mpeg2_d3d11va2"
,
.
name
=
"mpeg2_d3d11va2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
...
libavcodec/dxva2_vc1.c
View file @
3a71bcc2
...
@@ -378,7 +378,7 @@ static int dxva2_vc1_end_frame(AVCodecContext *avctx)
...
@@ -378,7 +378,7 @@ static int dxva2_vc1_end_frame(AVCodecContext *avctx)
}
}
#if CONFIG_WMV3_DXVA2_HWACCEL
#if CONFIG_WMV3_DXVA2_HWACCEL
AVHWAccel
ff_wmv3_dxva2_hwaccel
=
{
const
AVHWAccel
ff_wmv3_dxva2_hwaccel
=
{
.
name
=
"wmv3_dxva2"
,
.
name
=
"wmv3_dxva2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_WMV3
,
.
id
=
AV_CODEC_ID_WMV3
,
...
@@ -395,7 +395,7 @@ AVHWAccel ff_wmv3_dxva2_hwaccel = {
...
@@ -395,7 +395,7 @@ AVHWAccel ff_wmv3_dxva2_hwaccel = {
#endif
#endif
#if CONFIG_VC1_DXVA2_HWACCEL
#if CONFIG_VC1_DXVA2_HWACCEL
AVHWAccel
ff_vc1_dxva2_hwaccel
=
{
const
AVHWAccel
ff_vc1_dxva2_hwaccel
=
{
.
name
=
"vc1_dxva2"
,
.
name
=
"vc1_dxva2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VC1
,
.
id
=
AV_CODEC_ID_VC1
,
...
@@ -412,7 +412,7 @@ AVHWAccel ff_vc1_dxva2_hwaccel = {
...
@@ -412,7 +412,7 @@ AVHWAccel ff_vc1_dxva2_hwaccel = {
#endif
#endif
#if CONFIG_WMV3_D3D11VA_HWACCEL
#if CONFIG_WMV3_D3D11VA_HWACCEL
AVHWAccel
ff_wmv3_d3d11va_hwaccel
=
{
const
AVHWAccel
ff_wmv3_d3d11va_hwaccel
=
{
.
name
=
"wmv3_d3d11va"
,
.
name
=
"wmv3_d3d11va"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_WMV3
,
.
id
=
AV_CODEC_ID_WMV3
,
...
@@ -429,7 +429,7 @@ AVHWAccel ff_wmv3_d3d11va_hwaccel = {
...
@@ -429,7 +429,7 @@ AVHWAccel ff_wmv3_d3d11va_hwaccel = {
#endif
#endif
#if CONFIG_WMV3_D3D11VA2_HWACCEL
#if CONFIG_WMV3_D3D11VA2_HWACCEL
AVHWAccel
ff_wmv3_d3d11va2_hwaccel
=
{
const
AVHWAccel
ff_wmv3_d3d11va2_hwaccel
=
{
.
name
=
"wmv3_d3d11va2"
,
.
name
=
"wmv3_d3d11va2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_WMV3
,
.
id
=
AV_CODEC_ID_WMV3
,
...
@@ -446,7 +446,7 @@ AVHWAccel ff_wmv3_d3d11va2_hwaccel = {
...
@@ -446,7 +446,7 @@ AVHWAccel ff_wmv3_d3d11va2_hwaccel = {
#endif
#endif
#if CONFIG_VC1_D3D11VA_HWACCEL
#if CONFIG_VC1_D3D11VA_HWACCEL
AVHWAccel
ff_vc1_d3d11va_hwaccel
=
{
const
AVHWAccel
ff_vc1_d3d11va_hwaccel
=
{
.
name
=
"vc1_d3d11va"
,
.
name
=
"vc1_d3d11va"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VC1
,
.
id
=
AV_CODEC_ID_VC1
,
...
@@ -463,7 +463,7 @@ AVHWAccel ff_vc1_d3d11va_hwaccel = {
...
@@ -463,7 +463,7 @@ AVHWAccel ff_vc1_d3d11va_hwaccel = {
#endif
#endif
#if CONFIG_VC1_D3D11VA2_HWACCEL
#if CONFIG_VC1_D3D11VA2_HWACCEL
AVHWAccel
ff_vc1_d3d11va2_hwaccel
=
{
const
AVHWAccel
ff_vc1_d3d11va2_hwaccel
=
{
.
name
=
"vc1_d3d11va2"
,
.
name
=
"vc1_d3d11va2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VC1
,
.
id
=
AV_CODEC_ID_VC1
,
...
...
libavcodec/dxva2_vp9.c
View file @
3a71bcc2
...
@@ -309,7 +309,7 @@ static int dxva2_vp9_end_frame(AVCodecContext *avctx)
...
@@ -309,7 +309,7 @@ static int dxva2_vp9_end_frame(AVCodecContext *avctx)
}
}
#if CONFIG_VP9_DXVA2_HWACCEL
#if CONFIG_VP9_DXVA2_HWACCEL
AVHWAccel
ff_vp9_dxva2_hwaccel
=
{
const
AVHWAccel
ff_vp9_dxva2_hwaccel
=
{
.
name
=
"vp9_dxva2"
,
.
name
=
"vp9_dxva2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VP9
,
.
id
=
AV_CODEC_ID_VP9
,
...
@@ -326,7 +326,7 @@ AVHWAccel ff_vp9_dxva2_hwaccel = {
...
@@ -326,7 +326,7 @@ AVHWAccel ff_vp9_dxva2_hwaccel = {
#endif
#endif
#if CONFIG_VP9_D3D11VA_HWACCEL
#if CONFIG_VP9_D3D11VA_HWACCEL
AVHWAccel
ff_vp9_d3d11va_hwaccel
=
{
const
AVHWAccel
ff_vp9_d3d11va_hwaccel
=
{
.
name
=
"vp9_d3d11va"
,
.
name
=
"vp9_d3d11va"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VP9
,
.
id
=
AV_CODEC_ID_VP9
,
...
@@ -343,7 +343,7 @@ AVHWAccel ff_vp9_d3d11va_hwaccel = {
...
@@ -343,7 +343,7 @@ AVHWAccel ff_vp9_d3d11va_hwaccel = {
#endif
#endif
#if CONFIG_VP9_D3D11VA2_HWACCEL
#if CONFIG_VP9_D3D11VA2_HWACCEL
AVHWAccel
ff_vp9_d3d11va2_hwaccel
=
{
const
AVHWAccel
ff_vp9_d3d11va2_hwaccel
=
{
.
name
=
"vp9_d3d11va2"
,
.
name
=
"vp9_d3d11va2"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VP9
,
.
id
=
AV_CODEC_ID_VP9
,
...
...
libavcodec/hwaccels.h
View file @
3a71bcc2
...
@@ -21,54 +21,54 @@
...
@@ -21,54 +21,54 @@
#include "avcodec.h"
#include "avcodec.h"
extern
AVHWAccel
ff_h263_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_h263_vaapi_hwaccel
;
extern
AVHWAccel
ff_h263_videotoolbox_hwaccel
;
extern
const
AVHWAccel
ff_h263_videotoolbox_hwaccel
;
extern
AVHWAccel
ff_h264_d3d11va_hwaccel
;
extern
const
AVHWAccel
ff_h264_d3d11va_hwaccel
;
extern
AVHWAccel
ff_h264_d3d11va2_hwaccel
;
extern
const
AVHWAccel
ff_h264_d3d11va2_hwaccel
;
extern
AVHWAccel
ff_h264_dxva2_hwaccel
;
extern
const
AVHWAccel
ff_h264_dxva2_hwaccel
;
extern
AVHWAccel
ff_h264_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_h264_nvdec_hwaccel
;
extern
AVHWAccel
ff_h264_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_h264_vaapi_hwaccel
;
extern
AVHWAccel
ff_h264_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_h264_vdpau_hwaccel
;
extern
AVHWAccel
ff_h264_videotoolbox_hwaccel
;
extern
const
AVHWAccel
ff_h264_videotoolbox_hwaccel
;
extern
AVHWAccel
ff_hevc_d3d11va_hwaccel
;
extern
const
AVHWAccel
ff_hevc_d3d11va_hwaccel
;
extern
AVHWAccel
ff_hevc_d3d11va2_hwaccel
;
extern
const
AVHWAccel
ff_hevc_d3d11va2_hwaccel
;
extern
AVHWAccel
ff_hevc_dxva2_hwaccel
;
extern
const
AVHWAccel
ff_hevc_dxva2_hwaccel
;
extern
AVHWAccel
ff_hevc_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_hevc_nvdec_hwaccel
;
extern
AVHWAccel
ff_hevc_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_hevc_vaapi_hwaccel
;
extern
AVHWAccel
ff_hevc_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_hevc_vdpau_hwaccel
;
extern
AVHWAccel
ff_hevc_videotoolbox_hwaccel
;
extern
const
AVHWAccel
ff_hevc_videotoolbox_hwaccel
;
extern
AVHWAccel
ff_mpeg1_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_mpeg1_nvdec_hwaccel
;
extern
AVHWAccel
ff_mpeg1_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_mpeg1_vdpau_hwaccel
;
extern
AVHWAccel
ff_mpeg1_videotoolbox_hwaccel
;
extern
const
AVHWAccel
ff_mpeg1_videotoolbox_hwaccel
;
extern
AVHWAccel
ff_mpeg1_xvmc_hwaccel
;
extern
const
AVHWAccel
ff_mpeg1_xvmc_hwaccel
;
extern
AVHWAccel
ff_mpeg2_d3d11va_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_d3d11va_hwaccel
;
extern
AVHWAccel
ff_mpeg2_d3d11va2_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_d3d11va2_hwaccel
;
extern
AVHWAccel
ff_mpeg2_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_nvdec_hwaccel
;
extern
AVHWAccel
ff_mpeg2_dxva2_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_dxva2_hwaccel
;
extern
AVHWAccel
ff_mpeg2_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_vaapi_hwaccel
;
extern
AVHWAccel
ff_mpeg2_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_vdpau_hwaccel
;
extern
AVHWAccel
ff_mpeg2_videotoolbox_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_videotoolbox_hwaccel
;
extern
AVHWAccel
ff_mpeg2_xvmc_hwaccel
;
extern
const
AVHWAccel
ff_mpeg2_xvmc_hwaccel
;
extern
AVHWAccel
ff_mpeg4_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_mpeg4_nvdec_hwaccel
;
extern
AVHWAccel
ff_mpeg4_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_mpeg4_vaapi_hwaccel
;
extern
AVHWAccel
ff_mpeg4_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_mpeg4_vdpau_hwaccel
;
extern
AVHWAccel
ff_mpeg4_videotoolbox_hwaccel
;
extern
const
AVHWAccel
ff_mpeg4_videotoolbox_hwaccel
;
extern
AVHWAccel
ff_vc1_d3d11va_hwaccel
;
extern
const
AVHWAccel
ff_vc1_d3d11va_hwaccel
;
extern
AVHWAccel
ff_vc1_d3d11va2_hwaccel
;
extern
const
AVHWAccel
ff_vc1_d3d11va2_hwaccel
;
extern
AVHWAccel
ff_vc1_dxva2_hwaccel
;
extern
const
AVHWAccel
ff_vc1_dxva2_hwaccel
;
extern
AVHWAccel
ff_vc1_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_vc1_nvdec_hwaccel
;
extern
AVHWAccel
ff_vc1_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_vc1_vaapi_hwaccel
;
extern
AVHWAccel
ff_vc1_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_vc1_vdpau_hwaccel
;
extern
AVHWAccel
ff_vp9_d3d11va_hwaccel
;
extern
const
AVHWAccel
ff_vp9_d3d11va_hwaccel
;
extern
AVHWAccel
ff_vp9_d3d11va2_hwaccel
;
extern
const
AVHWAccel
ff_vp9_d3d11va2_hwaccel
;
extern
AVHWAccel
ff_vp9_dxva2_hwaccel
;
extern
const
AVHWAccel
ff_vp9_dxva2_hwaccel
;
extern
AVHWAccel
ff_vp9_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_vp9_nvdec_hwaccel
;
extern
AVHWAccel
ff_vp9_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_vp9_vaapi_hwaccel
;
extern
AVHWAccel
ff_wmv3_d3d11va_hwaccel
;
extern
const
AVHWAccel
ff_wmv3_d3d11va_hwaccel
;
extern
AVHWAccel
ff_wmv3_d3d11va2_hwaccel
;
extern
const
AVHWAccel
ff_wmv3_d3d11va2_hwaccel
;
extern
AVHWAccel
ff_wmv3_dxva2_hwaccel
;
extern
const
AVHWAccel
ff_wmv3_dxva2_hwaccel
;
extern
AVHWAccel
ff_wmv3_nvdec_hwaccel
;
extern
const
AVHWAccel
ff_wmv3_nvdec_hwaccel
;
extern
AVHWAccel
ff_wmv3_vaapi_hwaccel
;
extern
const
AVHWAccel
ff_wmv3_vaapi_hwaccel
;
extern
AVHWAccel
ff_wmv3_vdpau_hwaccel
;
extern
const
AVHWAccel
ff_wmv3_vdpau_hwaccel
;
#endif
/* AVCODEC_HWACCELS_H */
#endif
/* AVCODEC_HWACCELS_H */
libavcodec/mpegvideo_xvmc.c
View file @
3a71bcc2
...
@@ -348,7 +348,7 @@ static void ff_xvmc_decode_mb(struct MpegEncContext *s)
...
@@ -348,7 +348,7 @@ static void ff_xvmc_decode_mb(struct MpegEncContext *s)
}
}
#if CONFIG_MPEG1_XVMC_HWACCEL
#if CONFIG_MPEG1_XVMC_HWACCEL
AVHWAccel
ff_mpeg1_xvmc_hwaccel
=
{
const
AVHWAccel
ff_mpeg1_xvmc_hwaccel
=
{
.
name
=
"mpeg1_xvmc"
,
.
name
=
"mpeg1_xvmc"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
...
@@ -362,7 +362,7 @@ AVHWAccel ff_mpeg1_xvmc_hwaccel = {
...
@@ -362,7 +362,7 @@ AVHWAccel ff_mpeg1_xvmc_hwaccel = {
#endif
#endif
#if CONFIG_MPEG2_XVMC_HWACCEL
#if CONFIG_MPEG2_XVMC_HWACCEL
AVHWAccel
ff_mpeg2_xvmc_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_xvmc_hwaccel
=
{
.
name
=
"mpeg2_xvmc"
,
.
name
=
"mpeg2_xvmc"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
...
libavcodec/nvdec_h264.c
View file @
3a71bcc2
...
@@ -163,7 +163,7 @@ static int nvdec_h264_frame_params(AVCodecContext *avctx,
...
@@ -163,7 +163,7 @@ static int nvdec_h264_frame_params(AVCodecContext *avctx,
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
sps
->
ref_frame_count
+
sps
->
num_reorder_frames
);
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
sps
->
ref_frame_count
+
sps
->
num_reorder_frames
);
}
}
AVHWAccel
ff_h264_nvdec_hwaccel
=
{
const
AVHWAccel
ff_h264_nvdec_hwaccel
=
{
.
name
=
"h264_nvdec"
,
.
name
=
"h264_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
...
libavcodec/nvdec_hevc.c
View file @
3a71bcc2
...
@@ -266,7 +266,7 @@ static int nvdec_hevc_frame_params(AVCodecContext *avctx,
...
@@ -266,7 +266,7 @@ static int nvdec_hevc_frame_params(AVCodecContext *avctx,
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
sps
->
temporal_layer
[
sps
->
max_sub_layers
-
1
].
max_dec_pic_buffering
+
1
);
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
sps
->
temporal_layer
[
sps
->
max_sub_layers
-
1
].
max_dec_pic_buffering
+
1
);
}
}
AVHWAccel
ff_hevc_nvdec_hwaccel
=
{
const
AVHWAccel
ff_hevc_nvdec_hwaccel
=
{
.
name
=
"hevc_nvdec"
,
.
name
=
"hevc_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
...
libavcodec/nvdec_mpeg12.c
View file @
3a71bcc2
...
@@ -91,7 +91,7 @@ static int nvdec_mpeg12_frame_params(AVCodecContext *avctx,
...
@@ -91,7 +91,7 @@ static int nvdec_mpeg12_frame_params(AVCodecContext *avctx,
}
}
#if CONFIG_MPEG2_NVDEC_HWACCEL
#if CONFIG_MPEG2_NVDEC_HWACCEL
AVHWAccel
ff_mpeg2_nvdec_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_nvdec_hwaccel
=
{
.
name
=
"mpeg2_nvdec"
,
.
name
=
"mpeg2_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
@@ -107,7 +107,7 @@ AVHWAccel ff_mpeg2_nvdec_hwaccel = {
...
@@ -107,7 +107,7 @@ AVHWAccel ff_mpeg2_nvdec_hwaccel = {
#endif
#endif
#if CONFIG_MPEG1_NVDEC_HWACCEL
#if CONFIG_MPEG1_NVDEC_HWACCEL
AVHWAccel
ff_mpeg1_nvdec_hwaccel
=
{
const
AVHWAccel
ff_mpeg1_nvdec_hwaccel
=
{
.
name
=
"mpeg1_nvdec"
,
.
name
=
"mpeg1_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
...
...
libavcodec/nvdec_mpeg4.c
View file @
3a71bcc2
...
@@ -106,7 +106,7 @@ static int nvdec_mpeg4_frame_params(AVCodecContext *avctx,
...
@@ -106,7 +106,7 @@ static int nvdec_mpeg4_frame_params(AVCodecContext *avctx,
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
2
);
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
2
);
}
}
AVHWAccel
ff_mpeg4_nvdec_hwaccel
=
{
const
AVHWAccel
ff_mpeg4_nvdec_hwaccel
=
{
.
name
=
"mpeg4_nvdec"
,
.
name
=
"mpeg4_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG4
,
.
id
=
AV_CODEC_ID_MPEG4
,
...
...
libavcodec/nvdec_vc1.c
View file @
3a71bcc2
...
@@ -110,7 +110,7 @@ static int nvdec_vc1_frame_params(AVCodecContext *avctx,
...
@@ -110,7 +110,7 @@ static int nvdec_vc1_frame_params(AVCodecContext *avctx,
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
2
);
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
2
);
}
}
AVHWAccel
ff_vc1_nvdec_hwaccel
=
{
const
AVHWAccel
ff_vc1_nvdec_hwaccel
=
{
.
name
=
"vc1_nvdec"
,
.
name
=
"vc1_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VC1
,
.
id
=
AV_CODEC_ID_VC1
,
...
@@ -125,7 +125,7 @@ AVHWAccel ff_vc1_nvdec_hwaccel = {
...
@@ -125,7 +125,7 @@ AVHWAccel ff_vc1_nvdec_hwaccel = {
};
};
#if CONFIG_WMV3_NVDEC_HWACCEL
#if CONFIG_WMV3_NVDEC_HWACCEL
AVHWAccel
ff_wmv3_nvdec_hwaccel
=
{
const
AVHWAccel
ff_wmv3_nvdec_hwaccel
=
{
.
name
=
"wmv3_nvdec"
,
.
name
=
"wmv3_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_WMV3
,
.
id
=
AV_CODEC_ID_WMV3
,
...
...
libavcodec/nvdec_vp9.c
View file @
3a71bcc2
...
@@ -169,7 +169,7 @@ static int nvdec_vp9_frame_params(AVCodecContext *avctx,
...
@@ -169,7 +169,7 @@ static int nvdec_vp9_frame_params(AVCodecContext *avctx,
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
8
);
return
ff_nvdec_frame_params
(
avctx
,
hw_frames_ctx
,
8
);
}
}
AVHWAccel
ff_vp9_nvdec_hwaccel
=
{
const
AVHWAccel
ff_vp9_nvdec_hwaccel
=
{
.
name
=
"vp9_nvdec"
,
.
name
=
"vp9_nvdec"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VP9
,
.
id
=
AV_CODEC_ID_VP9
,
...
...
libavcodec/vaapi_h264.c
View file @
3a71bcc2
...
@@ -388,7 +388,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
...
@@ -388,7 +388,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
return
0
;
return
0
;
}
}
AVHWAccel
ff_h264_vaapi_hwaccel
=
{
const
AVHWAccel
ff_h264_vaapi_hwaccel
=
{
.
name
=
"h264_vaapi"
,
.
name
=
"h264_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
...
libavcodec/vaapi_hevc.c
View file @
3a71bcc2
...
@@ -423,7 +423,7 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
...
@@ -423,7 +423,7 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
return
0
;
return
0
;
}
}
AVHWAccel
ff_hevc_vaapi_hwaccel
=
{
const
AVHWAccel
ff_hevc_vaapi_hwaccel
=
{
.
name
=
"hevc_vaapi"
,
.
name
=
"hevc_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
...
libavcodec/vaapi_mpeg2.c
View file @
3a71bcc2
...
@@ -172,7 +172,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
...
@@ -172,7 +172,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
return
0
;
return
0
;
}
}
AVHWAccel
ff_mpeg2_vaapi_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_vaapi_hwaccel
=
{
.
name
=
"mpeg2_vaapi"
,
.
name
=
"mpeg2_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
...
libavcodec/vaapi_mpeg4.c
View file @
3a71bcc2
...
@@ -178,7 +178,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
...
@@ -178,7 +178,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
}
}
#if CONFIG_MPEG4_VAAPI_HWACCEL
#if CONFIG_MPEG4_VAAPI_HWACCEL
AVHWAccel
ff_mpeg4_vaapi_hwaccel
=
{
const
AVHWAccel
ff_mpeg4_vaapi_hwaccel
=
{
.
name
=
"mpeg4_vaapi"
,
.
name
=
"mpeg4_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG4
,
.
id
=
AV_CODEC_ID_MPEG4
,
...
@@ -196,7 +196,7 @@ AVHWAccel ff_mpeg4_vaapi_hwaccel = {
...
@@ -196,7 +196,7 @@ AVHWAccel ff_mpeg4_vaapi_hwaccel = {
#endif
#endif
#if CONFIG_H263_VAAPI_HWACCEL
#if CONFIG_H263_VAAPI_HWACCEL
AVHWAccel
ff_h263_vaapi_hwaccel
=
{
const
AVHWAccel
ff_h263_vaapi_hwaccel
=
{
.
name
=
"h263_vaapi"
,
.
name
=
"h263_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H263
,
.
id
=
AV_CODEC_ID_H263
,
...
...
libavcodec/vaapi_vc1.c
View file @
3a71bcc2
...
@@ -388,7 +388,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,
...
@@ -388,7 +388,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,
}
}
#if CONFIG_WMV3_VAAPI_HWACCEL
#if CONFIG_WMV3_VAAPI_HWACCEL
AVHWAccel
ff_wmv3_vaapi_hwaccel
=
{
const
AVHWAccel
ff_wmv3_vaapi_hwaccel
=
{
.
name
=
"wmv3_vaapi"
,
.
name
=
"wmv3_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_WMV3
,
.
id
=
AV_CODEC_ID_WMV3
,
...
@@ -405,7 +405,7 @@ AVHWAccel ff_wmv3_vaapi_hwaccel = {
...
@@ -405,7 +405,7 @@ AVHWAccel ff_wmv3_vaapi_hwaccel = {
};
};
#endif
#endif
AVHWAccel
ff_vc1_vaapi_hwaccel
=
{
const
AVHWAccel
ff_vc1_vaapi_hwaccel
=
{
.
name
=
"vc1_vaapi"
,
.
name
=
"vc1_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VC1
,
.
id
=
AV_CODEC_ID_VC1
,
...
...
libavcodec/vaapi_vp9.c
View file @
3a71bcc2
...
@@ -168,7 +168,7 @@ static int vaapi_vp9_decode_slice(AVCodecContext *avctx,
...
@@ -168,7 +168,7 @@ static int vaapi_vp9_decode_slice(AVCodecContext *avctx,
return
0
;
return
0
;
}
}
AVHWAccel
ff_vp9_vaapi_hwaccel
=
{
const
AVHWAccel
ff_vp9_vaapi_hwaccel
=
{
.
name
=
"vp9_vaapi"
,
.
name
=
"vp9_vaapi"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VP9
,
.
id
=
AV_CODEC_ID_VP9
,
...
...
libavcodec/vdpau_h264.c
View file @
3a71bcc2
...
@@ -262,7 +262,7 @@ static int vdpau_h264_init(AVCodecContext *avctx)
...
@@ -262,7 +262,7 @@ static int vdpau_h264_init(AVCodecContext *avctx)
return
ff_vdpau_common_init
(
avctx
,
profile
,
level
);
return
ff_vdpau_common_init
(
avctx
,
profile
,
level
);
}
}
AVHWAccel
ff_h264_vdpau_hwaccel
=
{
const
AVHWAccel
ff_h264_vdpau_hwaccel
=
{
.
name
=
"h264_vdpau"
,
.
name
=
"h264_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
...
libavcodec/vdpau_hevc.c
View file @
3a71bcc2
...
@@ -413,7 +413,7 @@ static int vdpau_hevc_init(AVCodecContext *avctx)
...
@@ -413,7 +413,7 @@ static int vdpau_hevc_init(AVCodecContext *avctx)
return
ff_vdpau_common_init
(
avctx
,
profile
,
level
);
return
ff_vdpau_common_init
(
avctx
,
profile
,
level
);
}
}
AVHWAccel
ff_hevc_vdpau_hwaccel
=
{
const
AVHWAccel
ff_hevc_vdpau_hwaccel
=
{
.
name
=
"hevc_vdpau"
,
.
name
=
"hevc_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
...
libavcodec/vdpau_mpeg12.c
View file @
3a71bcc2
...
@@ -103,7 +103,7 @@ static int vdpau_mpeg1_init(AVCodecContext *avctx)
...
@@ -103,7 +103,7 @@ static int vdpau_mpeg1_init(AVCodecContext *avctx)
VDP_DECODER_LEVEL_MPEG1_NA
);
VDP_DECODER_LEVEL_MPEG1_NA
);
}
}
AVHWAccel
ff_mpeg1_vdpau_hwaccel
=
{
const
AVHWAccel
ff_mpeg1_vdpau_hwaccel
=
{
.
name
=
"mpeg1_vdpau"
,
.
name
=
"mpeg1_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
...
@@ -138,7 +138,7 @@ static int vdpau_mpeg2_init(AVCodecContext *avctx)
...
@@ -138,7 +138,7 @@ static int vdpau_mpeg2_init(AVCodecContext *avctx)
return
ff_vdpau_common_init
(
avctx
,
profile
,
VDP_DECODER_LEVEL_MPEG2_HL
);
return
ff_vdpau_common_init
(
avctx
,
profile
,
VDP_DECODER_LEVEL_MPEG2_HL
);
}
}
AVHWAccel
ff_mpeg2_vdpau_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_vdpau_hwaccel
=
{
.
name
=
"mpeg2_vdpau"
,
.
name
=
"mpeg2_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
...
libavcodec/vdpau_mpeg4.c
View file @
3a71bcc2
...
@@ -110,7 +110,7 @@ static int vdpau_mpeg4_init(AVCodecContext *avctx)
...
@@ -110,7 +110,7 @@ static int vdpau_mpeg4_init(AVCodecContext *avctx)
return
ff_vdpau_common_init
(
avctx
,
profile
,
avctx
->
level
);
return
ff_vdpau_common_init
(
avctx
,
profile
,
avctx
->
level
);
}
}
AVHWAccel
ff_mpeg4_vdpau_hwaccel
=
{
const
AVHWAccel
ff_mpeg4_vdpau_hwaccel
=
{
.
name
=
"mpeg4_vdpau"
,
.
name
=
"mpeg4_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG4
,
.
id
=
AV_CODEC_ID_MPEG4
,
...
...
libavcodec/vdpau_vc1.c
View file @
3a71bcc2
...
@@ -136,7 +136,7 @@ static int vdpau_vc1_init(AVCodecContext *avctx)
...
@@ -136,7 +136,7 @@ static int vdpau_vc1_init(AVCodecContext *avctx)
}
}
#if CONFIG_WMV3_VDPAU_HWACCEL
#if CONFIG_WMV3_VDPAU_HWACCEL
AVHWAccel
ff_wmv3_vdpau_hwaccel
=
{
const
AVHWAccel
ff_wmv3_vdpau_hwaccel
=
{
.
name
=
"wm3_vdpau"
,
.
name
=
"wm3_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_WMV3
,
.
id
=
AV_CODEC_ID_WMV3
,
...
@@ -153,7 +153,7 @@ AVHWAccel ff_wmv3_vdpau_hwaccel = {
...
@@ -153,7 +153,7 @@ AVHWAccel ff_wmv3_vdpau_hwaccel = {
};
};
#endif
#endif
AVHWAccel
ff_vc1_vdpau_hwaccel
=
{
const
AVHWAccel
ff_vc1_vdpau_hwaccel
=
{
.
name
=
"vc1_vdpau"
,
.
name
=
"vc1_vdpau"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_VC1
,
.
id
=
AV_CODEC_ID_VC1
,
...
...
libavcodec/version.h
View file @
3a71bcc2
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "libavutil/version.h"
#include "libavutil/version.h"
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR
5
#define LIBAVCODEC_VERSION_MINOR
6
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
libavcodec/videotoolbox.c
View file @
3a71bcc2
...
@@ -1028,7 +1028,7 @@ static int videotoolbox_frame_params(AVCodecContext *avctx,
...
@@ -1028,7 +1028,7 @@ static int videotoolbox_frame_params(AVCodecContext *avctx,
return
0
;
return
0
;
}
}
AVHWAccel
ff_h263_videotoolbox_hwaccel
=
{
const
AVHWAccel
ff_h263_videotoolbox_hwaccel
=
{
.
name
=
"h263_videotoolbox"
,
.
name
=
"h263_videotoolbox"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H263
,
.
id
=
AV_CODEC_ID_H263
,
...
@@ -1043,7 +1043,7 @@ AVHWAccel ff_h263_videotoolbox_hwaccel = {
...
@@ -1043,7 +1043,7 @@ AVHWAccel ff_h263_videotoolbox_hwaccel = {
.
priv_data_size
=
sizeof
(
VTContext
),
.
priv_data_size
=
sizeof
(
VTContext
),
};
};
AVHWAccel
ff_hevc_videotoolbox_hwaccel
=
{
const
AVHWAccel
ff_hevc_videotoolbox_hwaccel
=
{
.
name
=
"hevc_videotoolbox"
,
.
name
=
"hevc_videotoolbox"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_HEVC
,
.
id
=
AV_CODEC_ID_HEVC
,
...
@@ -1059,7 +1059,7 @@ AVHWAccel ff_hevc_videotoolbox_hwaccel = {
...
@@ -1059,7 +1059,7 @@ AVHWAccel ff_hevc_videotoolbox_hwaccel = {
.
priv_data_size
=
sizeof
(
VTContext
),
.
priv_data_size
=
sizeof
(
VTContext
),
};
};
AVHWAccel
ff_h264_videotoolbox_hwaccel
=
{
const
AVHWAccel
ff_h264_videotoolbox_hwaccel
=
{
.
name
=
"h264_videotoolbox"
,
.
name
=
"h264_videotoolbox"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_H264
,
.
id
=
AV_CODEC_ID_H264
,
...
@@ -1075,7 +1075,7 @@ AVHWAccel ff_h264_videotoolbox_hwaccel = {
...
@@ -1075,7 +1075,7 @@ AVHWAccel ff_h264_videotoolbox_hwaccel = {
.
priv_data_size
=
sizeof
(
VTContext
),
.
priv_data_size
=
sizeof
(
VTContext
),
};
};
AVHWAccel
ff_mpeg1_videotoolbox_hwaccel
=
{
const
AVHWAccel
ff_mpeg1_videotoolbox_hwaccel
=
{
.
name
=
"mpeg1_videotoolbox"
,
.
name
=
"mpeg1_videotoolbox"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
.
id
=
AV_CODEC_ID_MPEG1VIDEO
,
...
@@ -1090,7 +1090,7 @@ AVHWAccel ff_mpeg1_videotoolbox_hwaccel = {
...
@@ -1090,7 +1090,7 @@ AVHWAccel ff_mpeg1_videotoolbox_hwaccel = {
.
priv_data_size
=
sizeof
(
VTContext
),
.
priv_data_size
=
sizeof
(
VTContext
),
};
};
AVHWAccel
ff_mpeg2_videotoolbox_hwaccel
=
{
const
AVHWAccel
ff_mpeg2_videotoolbox_hwaccel
=
{
.
name
=
"mpeg2_videotoolbox"
,
.
name
=
"mpeg2_videotoolbox"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
.
id
=
AV_CODEC_ID_MPEG2VIDEO
,
...
@@ -1105,7 +1105,7 @@ AVHWAccel ff_mpeg2_videotoolbox_hwaccel = {
...
@@ -1105,7 +1105,7 @@ AVHWAccel ff_mpeg2_videotoolbox_hwaccel = {
.
priv_data_size
=
sizeof
(
VTContext
),
.
priv_data_size
=
sizeof
(
VTContext
),
};
};
AVHWAccel
ff_mpeg4_videotoolbox_hwaccel
=
{
const
AVHWAccel
ff_mpeg4_videotoolbox_hwaccel
=
{
.
name
=
"mpeg4_videotoolbox"
,
.
name
=
"mpeg4_videotoolbox"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_MPEG4
,
.
id
=
AV_CODEC_ID_MPEG4
,
...
...
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