... | ... |
@@ -15,6 +15,9 @@ libavutil: 2017-10-21 |
15 | 15 |
|
16 | 16 |
API changes, most recent first: |
17 | 17 |
|
18 |
+2017-xx-xx - xxxxxxx - lavc 58.6.100 - avcodec.h |
|
19 |
+ Add const to AVCodecContext.hwaccel. |
|
20 |
+ |
|
18 | 21 |
2017-11-xx - xxxxxxx - lavc 58.5.100 - avcodec.h |
19 | 22 |
Deprecate user visibility of the AVHWAccel structure and the functions |
20 | 23 |
av_register_hwaccel() and av_hwaccel_next(). |
... | ... |
@@ -1252,7 +1252,7 @@ static int hwaccel_init(AVCodecContext *avctx, |
1252 | 1252 |
return AVERROR(ENOMEM); |
1253 | 1253 |
} |
1254 | 1254 |
|
1255 |
- avctx->hwaccel = (AVHWAccel*)hwaccel; |
|
1255 |
+ avctx->hwaccel = hwaccel; |
|
1256 | 1256 |
if (hwaccel->init) { |
1257 | 1257 |
err = hwaccel->init(avctx); |
1258 | 1258 |
if (err < 0) { |
... | ... |
@@ -518,7 +518,7 @@ static int dxva2_h264_end_frame(AVCodecContext *avctx) |
518 | 518 |
} |
519 | 519 |
|
520 | 520 |
#if CONFIG_H264_DXVA2_HWACCEL |
521 |
-AVHWAccel ff_h264_dxva2_hwaccel = { |
|
521 |
+const AVHWAccel ff_h264_dxva2_hwaccel = { |
|
522 | 522 |
.name = "h264_dxva2", |
523 | 523 |
.type = AVMEDIA_TYPE_VIDEO, |
524 | 524 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -535,7 +535,7 @@ AVHWAccel ff_h264_dxva2_hwaccel = { |
535 | 535 |
#endif |
536 | 536 |
|
537 | 537 |
#if CONFIG_H264_D3D11VA_HWACCEL |
538 |
-AVHWAccel ff_h264_d3d11va_hwaccel = { |
|
538 |
+const AVHWAccel ff_h264_d3d11va_hwaccel = { |
|
539 | 539 |
.name = "h264_d3d11va", |
540 | 540 |
.type = AVMEDIA_TYPE_VIDEO, |
541 | 541 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -552,7 +552,7 @@ AVHWAccel ff_h264_d3d11va_hwaccel = { |
552 | 552 |
#endif |
553 | 553 |
|
554 | 554 |
#if CONFIG_H264_D3D11VA2_HWACCEL |
555 |
-AVHWAccel ff_h264_d3d11va2_hwaccel = { |
|
555 |
+const AVHWAccel ff_h264_d3d11va2_hwaccel = { |
|
556 | 556 |
.name = "h264_d3d11va2", |
557 | 557 |
.type = AVMEDIA_TYPE_VIDEO, |
558 | 558 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -422,7 +422,7 @@ static int dxva2_hevc_end_frame(AVCodecContext *avctx) |
422 | 422 |
} |
423 | 423 |
|
424 | 424 |
#if CONFIG_HEVC_DXVA2_HWACCEL |
425 |
-AVHWAccel ff_hevc_dxva2_hwaccel = { |
|
425 |
+const AVHWAccel ff_hevc_dxva2_hwaccel = { |
|
426 | 426 |
.name = "hevc_dxva2", |
427 | 427 |
.type = AVMEDIA_TYPE_VIDEO, |
428 | 428 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -439,7 +439,7 @@ AVHWAccel ff_hevc_dxva2_hwaccel = { |
439 | 439 |
#endif |
440 | 440 |
|
441 | 441 |
#if CONFIG_HEVC_D3D11VA_HWACCEL |
442 |
-AVHWAccel ff_hevc_d3d11va_hwaccel = { |
|
442 |
+const AVHWAccel ff_hevc_d3d11va_hwaccel = { |
|
443 | 443 |
.name = "hevc_d3d11va", |
444 | 444 |
.type = AVMEDIA_TYPE_VIDEO, |
445 | 445 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -456,7 +456,7 @@ AVHWAccel ff_hevc_d3d11va_hwaccel = { |
456 | 456 |
#endif |
457 | 457 |
|
458 | 458 |
#if CONFIG_HEVC_D3D11VA2_HWACCEL |
459 |
-AVHWAccel ff_hevc_d3d11va2_hwaccel = { |
|
459 |
+const AVHWAccel ff_hevc_d3d11va2_hwaccel = { |
|
460 | 460 |
.name = "hevc_d3d11va2", |
461 | 461 |
.type = AVMEDIA_TYPE_VIDEO, |
462 | 462 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -317,7 +317,7 @@ static int dxva2_mpeg2_end_frame(AVCodecContext *avctx) |
317 | 317 |
} |
318 | 318 |
|
319 | 319 |
#if CONFIG_MPEG2_DXVA2_HWACCEL |
320 |
-AVHWAccel ff_mpeg2_dxva2_hwaccel = { |
|
320 |
+const AVHWAccel ff_mpeg2_dxva2_hwaccel = { |
|
321 | 321 |
.name = "mpeg2_dxva2", |
322 | 322 |
.type = AVMEDIA_TYPE_VIDEO, |
323 | 323 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -334,7 +334,7 @@ AVHWAccel ff_mpeg2_dxva2_hwaccel = { |
334 | 334 |
#endif |
335 | 335 |
|
336 | 336 |
#if CONFIG_MPEG2_D3D11VA_HWACCEL |
337 |
-AVHWAccel ff_mpeg2_d3d11va_hwaccel = { |
|
337 |
+const AVHWAccel ff_mpeg2_d3d11va_hwaccel = { |
|
338 | 338 |
.name = "mpeg2_d3d11va", |
339 | 339 |
.type = AVMEDIA_TYPE_VIDEO, |
340 | 340 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -351,7 +351,7 @@ AVHWAccel ff_mpeg2_d3d11va_hwaccel = { |
351 | 351 |
#endif |
352 | 352 |
|
353 | 353 |
#if CONFIG_MPEG2_D3D11VA2_HWACCEL |
354 |
-AVHWAccel ff_mpeg2_d3d11va2_hwaccel = { |
|
354 |
+const AVHWAccel ff_mpeg2_d3d11va2_hwaccel = { |
|
355 | 355 |
.name = "mpeg2_d3d11va2", |
356 | 356 |
.type = AVMEDIA_TYPE_VIDEO, |
357 | 357 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -378,7 +378,7 @@ static int dxva2_vc1_end_frame(AVCodecContext *avctx) |
378 | 378 |
} |
379 | 379 |
|
380 | 380 |
#if CONFIG_WMV3_DXVA2_HWACCEL |
381 |
-AVHWAccel ff_wmv3_dxva2_hwaccel = { |
|
381 |
+const AVHWAccel ff_wmv3_dxva2_hwaccel = { |
|
382 | 382 |
.name = "wmv3_dxva2", |
383 | 383 |
.type = AVMEDIA_TYPE_VIDEO, |
384 | 384 |
.id = AV_CODEC_ID_WMV3, |
... | ... |
@@ -395,7 +395,7 @@ AVHWAccel ff_wmv3_dxva2_hwaccel = { |
395 | 395 |
#endif |
396 | 396 |
|
397 | 397 |
#if CONFIG_VC1_DXVA2_HWACCEL |
398 |
-AVHWAccel ff_vc1_dxva2_hwaccel = { |
|
398 |
+const AVHWAccel ff_vc1_dxva2_hwaccel = { |
|
399 | 399 |
.name = "vc1_dxva2", |
400 | 400 |
.type = AVMEDIA_TYPE_VIDEO, |
401 | 401 |
.id = AV_CODEC_ID_VC1, |
... | ... |
@@ -412,7 +412,7 @@ AVHWAccel ff_vc1_dxva2_hwaccel = { |
412 | 412 |
#endif |
413 | 413 |
|
414 | 414 |
#if CONFIG_WMV3_D3D11VA_HWACCEL |
415 |
-AVHWAccel ff_wmv3_d3d11va_hwaccel = { |
|
415 |
+const AVHWAccel ff_wmv3_d3d11va_hwaccel = { |
|
416 | 416 |
.name = "wmv3_d3d11va", |
417 | 417 |
.type = AVMEDIA_TYPE_VIDEO, |
418 | 418 |
.id = AV_CODEC_ID_WMV3, |
... | ... |
@@ -429,7 +429,7 @@ AVHWAccel ff_wmv3_d3d11va_hwaccel = { |
429 | 429 |
#endif |
430 | 430 |
|
431 | 431 |
#if CONFIG_WMV3_D3D11VA2_HWACCEL |
432 |
-AVHWAccel ff_wmv3_d3d11va2_hwaccel = { |
|
432 |
+const AVHWAccel ff_wmv3_d3d11va2_hwaccel = { |
|
433 | 433 |
.name = "wmv3_d3d11va2", |
434 | 434 |
.type = AVMEDIA_TYPE_VIDEO, |
435 | 435 |
.id = AV_CODEC_ID_WMV3, |
... | ... |
@@ -446,7 +446,7 @@ AVHWAccel ff_wmv3_d3d11va2_hwaccel = { |
446 | 446 |
#endif |
447 | 447 |
|
448 | 448 |
#if CONFIG_VC1_D3D11VA_HWACCEL |
449 |
-AVHWAccel ff_vc1_d3d11va_hwaccel = { |
|
449 |
+const AVHWAccel ff_vc1_d3d11va_hwaccel = { |
|
450 | 450 |
.name = "vc1_d3d11va", |
451 | 451 |
.type = AVMEDIA_TYPE_VIDEO, |
452 | 452 |
.id = AV_CODEC_ID_VC1, |
... | ... |
@@ -463,7 +463,7 @@ AVHWAccel ff_vc1_d3d11va_hwaccel = { |
463 | 463 |
#endif |
464 | 464 |
|
465 | 465 |
#if CONFIG_VC1_D3D11VA2_HWACCEL |
466 |
-AVHWAccel ff_vc1_d3d11va2_hwaccel = { |
|
466 |
+const AVHWAccel ff_vc1_d3d11va2_hwaccel = { |
|
467 | 467 |
.name = "vc1_d3d11va2", |
468 | 468 |
.type = AVMEDIA_TYPE_VIDEO, |
469 | 469 |
.id = AV_CODEC_ID_VC1, |
... | ... |
@@ -309,7 +309,7 @@ static int dxva2_vp9_end_frame(AVCodecContext *avctx) |
309 | 309 |
} |
310 | 310 |
|
311 | 311 |
#if CONFIG_VP9_DXVA2_HWACCEL |
312 |
-AVHWAccel ff_vp9_dxva2_hwaccel = { |
|
312 |
+const AVHWAccel ff_vp9_dxva2_hwaccel = { |
|
313 | 313 |
.name = "vp9_dxva2", |
314 | 314 |
.type = AVMEDIA_TYPE_VIDEO, |
315 | 315 |
.id = AV_CODEC_ID_VP9, |
... | ... |
@@ -326,7 +326,7 @@ AVHWAccel ff_vp9_dxva2_hwaccel = { |
326 | 326 |
#endif |
327 | 327 |
|
328 | 328 |
#if CONFIG_VP9_D3D11VA_HWACCEL |
329 |
-AVHWAccel ff_vp9_d3d11va_hwaccel = { |
|
329 |
+const AVHWAccel ff_vp9_d3d11va_hwaccel = { |
|
330 | 330 |
.name = "vp9_d3d11va", |
331 | 331 |
.type = AVMEDIA_TYPE_VIDEO, |
332 | 332 |
.id = AV_CODEC_ID_VP9, |
... | ... |
@@ -343,7 +343,7 @@ AVHWAccel ff_vp9_d3d11va_hwaccel = { |
343 | 343 |
#endif |
344 | 344 |
|
345 | 345 |
#if CONFIG_VP9_D3D11VA2_HWACCEL |
346 |
-AVHWAccel ff_vp9_d3d11va2_hwaccel = { |
|
346 |
+const AVHWAccel ff_vp9_d3d11va2_hwaccel = { |
|
347 | 347 |
.name = "vp9_d3d11va2", |
348 | 348 |
.type = AVMEDIA_TYPE_VIDEO, |
349 | 349 |
.id = AV_CODEC_ID_VP9, |
... | ... |
@@ -21,54 +21,54 @@ |
21 | 21 |
|
22 | 22 |
#include "avcodec.h" |
23 | 23 |
|
24 |
-extern AVHWAccel ff_h263_vaapi_hwaccel; |
|
25 |
-extern AVHWAccel ff_h263_videotoolbox_hwaccel; |
|
26 |
-extern AVHWAccel ff_h264_d3d11va_hwaccel; |
|
27 |
-extern AVHWAccel ff_h264_d3d11va2_hwaccel; |
|
28 |
-extern AVHWAccel ff_h264_dxva2_hwaccel; |
|
29 |
-extern AVHWAccel ff_h264_nvdec_hwaccel; |
|
30 |
-extern AVHWAccel ff_h264_vaapi_hwaccel; |
|
31 |
-extern AVHWAccel ff_h264_vdpau_hwaccel; |
|
32 |
-extern AVHWAccel ff_h264_videotoolbox_hwaccel; |
|
33 |
-extern AVHWAccel ff_hevc_d3d11va_hwaccel; |
|
34 |
-extern AVHWAccel ff_hevc_d3d11va2_hwaccel; |
|
35 |
-extern AVHWAccel ff_hevc_dxva2_hwaccel; |
|
36 |
-extern AVHWAccel ff_hevc_nvdec_hwaccel; |
|
37 |
-extern AVHWAccel ff_hevc_vaapi_hwaccel; |
|
38 |
-extern AVHWAccel ff_hevc_vdpau_hwaccel; |
|
39 |
-extern AVHWAccel ff_hevc_videotoolbox_hwaccel; |
|
40 |
-extern AVHWAccel ff_mpeg1_nvdec_hwaccel; |
|
41 |
-extern AVHWAccel ff_mpeg1_vdpau_hwaccel; |
|
42 |
-extern AVHWAccel ff_mpeg1_videotoolbox_hwaccel; |
|
43 |
-extern AVHWAccel ff_mpeg1_xvmc_hwaccel; |
|
44 |
-extern AVHWAccel ff_mpeg2_d3d11va_hwaccel; |
|
45 |
-extern AVHWAccel ff_mpeg2_d3d11va2_hwaccel; |
|
46 |
-extern AVHWAccel ff_mpeg2_nvdec_hwaccel; |
|
47 |
-extern AVHWAccel ff_mpeg2_dxva2_hwaccel; |
|
48 |
-extern AVHWAccel ff_mpeg2_vaapi_hwaccel; |
|
49 |
-extern AVHWAccel ff_mpeg2_vdpau_hwaccel; |
|
50 |
-extern AVHWAccel ff_mpeg2_videotoolbox_hwaccel; |
|
51 |
-extern AVHWAccel ff_mpeg2_xvmc_hwaccel; |
|
52 |
-extern AVHWAccel ff_mpeg4_nvdec_hwaccel; |
|
53 |
-extern AVHWAccel ff_mpeg4_vaapi_hwaccel; |
|
54 |
-extern AVHWAccel ff_mpeg4_vdpau_hwaccel; |
|
55 |
-extern AVHWAccel ff_mpeg4_videotoolbox_hwaccel; |
|
56 |
-extern AVHWAccel ff_vc1_d3d11va_hwaccel; |
|
57 |
-extern AVHWAccel ff_vc1_d3d11va2_hwaccel; |
|
58 |
-extern AVHWAccel ff_vc1_dxva2_hwaccel; |
|
59 |
-extern AVHWAccel ff_vc1_nvdec_hwaccel; |
|
60 |
-extern AVHWAccel ff_vc1_vaapi_hwaccel; |
|
61 |
-extern AVHWAccel ff_vc1_vdpau_hwaccel; |
|
62 |
-extern AVHWAccel ff_vp9_d3d11va_hwaccel; |
|
63 |
-extern AVHWAccel ff_vp9_d3d11va2_hwaccel; |
|
64 |
-extern AVHWAccel ff_vp9_dxva2_hwaccel; |
|
65 |
-extern AVHWAccel ff_vp9_nvdec_hwaccel; |
|
66 |
-extern AVHWAccel ff_vp9_vaapi_hwaccel; |
|
67 |
-extern AVHWAccel ff_wmv3_d3d11va_hwaccel; |
|
68 |
-extern AVHWAccel ff_wmv3_d3d11va2_hwaccel; |
|
69 |
-extern AVHWAccel ff_wmv3_dxva2_hwaccel; |
|
70 |
-extern AVHWAccel ff_wmv3_nvdec_hwaccel; |
|
71 |
-extern AVHWAccel ff_wmv3_vaapi_hwaccel; |
|
72 |
-extern AVHWAccel ff_wmv3_vdpau_hwaccel; |
|
24 |
+extern const AVHWAccel ff_h263_vaapi_hwaccel; |
|
25 |
+extern const AVHWAccel ff_h263_videotoolbox_hwaccel; |
|
26 |
+extern const AVHWAccel ff_h264_d3d11va_hwaccel; |
|
27 |
+extern const AVHWAccel ff_h264_d3d11va2_hwaccel; |
|
28 |
+extern const AVHWAccel ff_h264_dxva2_hwaccel; |
|
29 |
+extern const AVHWAccel ff_h264_nvdec_hwaccel; |
|
30 |
+extern const AVHWAccel ff_h264_vaapi_hwaccel; |
|
31 |
+extern const AVHWAccel ff_h264_vdpau_hwaccel; |
|
32 |
+extern const AVHWAccel ff_h264_videotoolbox_hwaccel; |
|
33 |
+extern const AVHWAccel ff_hevc_d3d11va_hwaccel; |
|
34 |
+extern const AVHWAccel ff_hevc_d3d11va2_hwaccel; |
|
35 |
+extern const AVHWAccel ff_hevc_dxva2_hwaccel; |
|
36 |
+extern const AVHWAccel ff_hevc_nvdec_hwaccel; |
|
37 |
+extern const AVHWAccel ff_hevc_vaapi_hwaccel; |
|
38 |
+extern const AVHWAccel ff_hevc_vdpau_hwaccel; |
|
39 |
+extern const AVHWAccel ff_hevc_videotoolbox_hwaccel; |
|
40 |
+extern const AVHWAccel ff_mpeg1_nvdec_hwaccel; |
|
41 |
+extern const AVHWAccel ff_mpeg1_vdpau_hwaccel; |
|
42 |
+extern const AVHWAccel ff_mpeg1_videotoolbox_hwaccel; |
|
43 |
+extern const AVHWAccel ff_mpeg1_xvmc_hwaccel; |
|
44 |
+extern const AVHWAccel ff_mpeg2_d3d11va_hwaccel; |
|
45 |
+extern const AVHWAccel ff_mpeg2_d3d11va2_hwaccel; |
|
46 |
+extern const AVHWAccel ff_mpeg2_nvdec_hwaccel; |
|
47 |
+extern const AVHWAccel ff_mpeg2_dxva2_hwaccel; |
|
48 |
+extern const AVHWAccel ff_mpeg2_vaapi_hwaccel; |
|
49 |
+extern const AVHWAccel ff_mpeg2_vdpau_hwaccel; |
|
50 |
+extern const AVHWAccel ff_mpeg2_videotoolbox_hwaccel; |
|
51 |
+extern const AVHWAccel ff_mpeg2_xvmc_hwaccel; |
|
52 |
+extern const AVHWAccel ff_mpeg4_nvdec_hwaccel; |
|
53 |
+extern const AVHWAccel ff_mpeg4_vaapi_hwaccel; |
|
54 |
+extern const AVHWAccel ff_mpeg4_vdpau_hwaccel; |
|
55 |
+extern const AVHWAccel ff_mpeg4_videotoolbox_hwaccel; |
|
56 |
+extern const AVHWAccel ff_vc1_d3d11va_hwaccel; |
|
57 |
+extern const AVHWAccel ff_vc1_d3d11va2_hwaccel; |
|
58 |
+extern const AVHWAccel ff_vc1_dxva2_hwaccel; |
|
59 |
+extern const AVHWAccel ff_vc1_nvdec_hwaccel; |
|
60 |
+extern const AVHWAccel ff_vc1_vaapi_hwaccel; |
|
61 |
+extern const AVHWAccel ff_vc1_vdpau_hwaccel; |
|
62 |
+extern const AVHWAccel ff_vp9_d3d11va_hwaccel; |
|
63 |
+extern const AVHWAccel ff_vp9_d3d11va2_hwaccel; |
|
64 |
+extern const AVHWAccel ff_vp9_dxva2_hwaccel; |
|
65 |
+extern const AVHWAccel ff_vp9_nvdec_hwaccel; |
|
66 |
+extern const AVHWAccel ff_vp9_vaapi_hwaccel; |
|
67 |
+extern const AVHWAccel ff_wmv3_d3d11va_hwaccel; |
|
68 |
+extern const AVHWAccel ff_wmv3_d3d11va2_hwaccel; |
|
69 |
+extern const AVHWAccel ff_wmv3_dxva2_hwaccel; |
|
70 |
+extern const AVHWAccel ff_wmv3_nvdec_hwaccel; |
|
71 |
+extern const AVHWAccel ff_wmv3_vaapi_hwaccel; |
|
72 |
+extern const AVHWAccel ff_wmv3_vdpau_hwaccel; |
|
73 | 73 |
|
74 | 74 |
#endif /* AVCODEC_HWACCELS_H */ |
... | ... |
@@ -348,7 +348,7 @@ static void ff_xvmc_decode_mb(struct MpegEncContext *s) |
348 | 348 |
} |
349 | 349 |
|
350 | 350 |
#if CONFIG_MPEG1_XVMC_HWACCEL |
351 |
-AVHWAccel ff_mpeg1_xvmc_hwaccel = { |
|
351 |
+const AVHWAccel ff_mpeg1_xvmc_hwaccel = { |
|
352 | 352 |
.name = "mpeg1_xvmc", |
353 | 353 |
.type = AVMEDIA_TYPE_VIDEO, |
354 | 354 |
.id = AV_CODEC_ID_MPEG1VIDEO, |
... | ... |
@@ -362,7 +362,7 @@ AVHWAccel ff_mpeg1_xvmc_hwaccel = { |
362 | 362 |
#endif |
363 | 363 |
|
364 | 364 |
#if CONFIG_MPEG2_XVMC_HWACCEL |
365 |
-AVHWAccel ff_mpeg2_xvmc_hwaccel = { |
|
365 |
+const AVHWAccel ff_mpeg2_xvmc_hwaccel = { |
|
366 | 366 |
.name = "mpeg2_xvmc", |
367 | 367 |
.type = AVMEDIA_TYPE_VIDEO, |
368 | 368 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -163,7 +163,7 @@ static int nvdec_h264_frame_params(AVCodecContext *avctx, |
163 | 163 |
return ff_nvdec_frame_params(avctx, hw_frames_ctx, sps->ref_frame_count + sps->num_reorder_frames); |
164 | 164 |
} |
165 | 165 |
|
166 |
-AVHWAccel ff_h264_nvdec_hwaccel = { |
|
166 |
+const AVHWAccel ff_h264_nvdec_hwaccel = { |
|
167 | 167 |
.name = "h264_nvdec", |
168 | 168 |
.type = AVMEDIA_TYPE_VIDEO, |
169 | 169 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -266,7 +266,7 @@ static int nvdec_hevc_frame_params(AVCodecContext *avctx, |
266 | 266 |
return ff_nvdec_frame_params(avctx, hw_frames_ctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1); |
267 | 267 |
} |
268 | 268 |
|
269 |
-AVHWAccel ff_hevc_nvdec_hwaccel = { |
|
269 |
+const AVHWAccel ff_hevc_nvdec_hwaccel = { |
|
270 | 270 |
.name = "hevc_nvdec", |
271 | 271 |
.type = AVMEDIA_TYPE_VIDEO, |
272 | 272 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -91,7 +91,7 @@ static int nvdec_mpeg12_frame_params(AVCodecContext *avctx, |
91 | 91 |
} |
92 | 92 |
|
93 | 93 |
#if CONFIG_MPEG2_NVDEC_HWACCEL |
94 |
-AVHWAccel ff_mpeg2_nvdec_hwaccel = { |
|
94 |
+const AVHWAccel ff_mpeg2_nvdec_hwaccel = { |
|
95 | 95 |
.name = "mpeg2_nvdec", |
96 | 96 |
.type = AVMEDIA_TYPE_VIDEO, |
97 | 97 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -107,7 +107,7 @@ AVHWAccel ff_mpeg2_nvdec_hwaccel = { |
107 | 107 |
#endif |
108 | 108 |
|
109 | 109 |
#if CONFIG_MPEG1_NVDEC_HWACCEL |
110 |
-AVHWAccel ff_mpeg1_nvdec_hwaccel = { |
|
110 |
+const AVHWAccel ff_mpeg1_nvdec_hwaccel = { |
|
111 | 111 |
.name = "mpeg1_nvdec", |
112 | 112 |
.type = AVMEDIA_TYPE_VIDEO, |
113 | 113 |
.id = AV_CODEC_ID_MPEG1VIDEO, |
... | ... |
@@ -106,7 +106,7 @@ static int nvdec_mpeg4_frame_params(AVCodecContext *avctx, |
106 | 106 |
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 2); |
107 | 107 |
} |
108 | 108 |
|
109 |
-AVHWAccel ff_mpeg4_nvdec_hwaccel = { |
|
109 |
+const AVHWAccel ff_mpeg4_nvdec_hwaccel = { |
|
110 | 110 |
.name = "mpeg4_nvdec", |
111 | 111 |
.type = AVMEDIA_TYPE_VIDEO, |
112 | 112 |
.id = AV_CODEC_ID_MPEG4, |
... | ... |
@@ -110,7 +110,7 @@ static int nvdec_vc1_frame_params(AVCodecContext *avctx, |
110 | 110 |
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 2); |
111 | 111 |
} |
112 | 112 |
|
113 |
-AVHWAccel ff_vc1_nvdec_hwaccel = { |
|
113 |
+const AVHWAccel ff_vc1_nvdec_hwaccel = { |
|
114 | 114 |
.name = "vc1_nvdec", |
115 | 115 |
.type = AVMEDIA_TYPE_VIDEO, |
116 | 116 |
.id = AV_CODEC_ID_VC1, |
... | ... |
@@ -125,7 +125,7 @@ AVHWAccel ff_vc1_nvdec_hwaccel = { |
125 | 125 |
}; |
126 | 126 |
|
127 | 127 |
#if CONFIG_WMV3_NVDEC_HWACCEL |
128 |
-AVHWAccel ff_wmv3_nvdec_hwaccel = { |
|
128 |
+const AVHWAccel ff_wmv3_nvdec_hwaccel = { |
|
129 | 129 |
.name = "wmv3_nvdec", |
130 | 130 |
.type = AVMEDIA_TYPE_VIDEO, |
131 | 131 |
.id = AV_CODEC_ID_WMV3, |
... | ... |
@@ -169,7 +169,7 @@ static int nvdec_vp9_frame_params(AVCodecContext *avctx, |
169 | 169 |
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 8); |
170 | 170 |
} |
171 | 171 |
|
172 |
-AVHWAccel ff_vp9_nvdec_hwaccel = { |
|
172 |
+const AVHWAccel ff_vp9_nvdec_hwaccel = { |
|
173 | 173 |
.name = "vp9_nvdec", |
174 | 174 |
.type = AVMEDIA_TYPE_VIDEO, |
175 | 175 |
.id = AV_CODEC_ID_VP9, |
... | ... |
@@ -388,7 +388,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx, |
388 | 388 |
return 0; |
389 | 389 |
} |
390 | 390 |
|
391 |
-AVHWAccel ff_h264_vaapi_hwaccel = { |
|
391 |
+const AVHWAccel ff_h264_vaapi_hwaccel = { |
|
392 | 392 |
.name = "h264_vaapi", |
393 | 393 |
.type = AVMEDIA_TYPE_VIDEO, |
394 | 394 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -423,7 +423,7 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx, |
423 | 423 |
return 0; |
424 | 424 |
} |
425 | 425 |
|
426 |
-AVHWAccel ff_hevc_vaapi_hwaccel = { |
|
426 |
+const AVHWAccel ff_hevc_vaapi_hwaccel = { |
|
427 | 427 |
.name = "hevc_vaapi", |
428 | 428 |
.type = AVMEDIA_TYPE_VIDEO, |
429 | 429 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -172,7 +172,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer |
172 | 172 |
return 0; |
173 | 173 |
} |
174 | 174 |
|
175 |
-AVHWAccel ff_mpeg2_vaapi_hwaccel = { |
|
175 |
+const AVHWAccel ff_mpeg2_vaapi_hwaccel = { |
|
176 | 176 |
.name = "mpeg2_vaapi", |
177 | 177 |
.type = AVMEDIA_TYPE_VIDEO, |
178 | 178 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -178,7 +178,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer |
178 | 178 |
} |
179 | 179 |
|
180 | 180 |
#if CONFIG_MPEG4_VAAPI_HWACCEL |
181 |
-AVHWAccel ff_mpeg4_vaapi_hwaccel = { |
|
181 |
+const AVHWAccel ff_mpeg4_vaapi_hwaccel = { |
|
182 | 182 |
.name = "mpeg4_vaapi", |
183 | 183 |
.type = AVMEDIA_TYPE_VIDEO, |
184 | 184 |
.id = AV_CODEC_ID_MPEG4, |
... | ... |
@@ -196,7 +196,7 @@ AVHWAccel ff_mpeg4_vaapi_hwaccel = { |
196 | 196 |
#endif |
197 | 197 |
|
198 | 198 |
#if CONFIG_H263_VAAPI_HWACCEL |
199 |
-AVHWAccel ff_h263_vaapi_hwaccel = { |
|
199 |
+const AVHWAccel ff_h263_vaapi_hwaccel = { |
|
200 | 200 |
.name = "h263_vaapi", |
201 | 201 |
.type = AVMEDIA_TYPE_VIDEO, |
202 | 202 |
.id = AV_CODEC_ID_H263, |
... | ... |
@@ -388,7 +388,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, |
388 | 388 |
} |
389 | 389 |
|
390 | 390 |
#if CONFIG_WMV3_VAAPI_HWACCEL |
391 |
-AVHWAccel ff_wmv3_vaapi_hwaccel = { |
|
391 |
+const AVHWAccel ff_wmv3_vaapi_hwaccel = { |
|
392 | 392 |
.name = "wmv3_vaapi", |
393 | 393 |
.type = AVMEDIA_TYPE_VIDEO, |
394 | 394 |
.id = AV_CODEC_ID_WMV3, |
... | ... |
@@ -405,7 +405,7 @@ AVHWAccel ff_wmv3_vaapi_hwaccel = { |
405 | 405 |
}; |
406 | 406 |
#endif |
407 | 407 |
|
408 |
-AVHWAccel ff_vc1_vaapi_hwaccel = { |
|
408 |
+const AVHWAccel ff_vc1_vaapi_hwaccel = { |
|
409 | 409 |
.name = "vc1_vaapi", |
410 | 410 |
.type = AVMEDIA_TYPE_VIDEO, |
411 | 411 |
.id = AV_CODEC_ID_VC1, |
... | ... |
@@ -168,7 +168,7 @@ static int vaapi_vp9_decode_slice(AVCodecContext *avctx, |
168 | 168 |
return 0; |
169 | 169 |
} |
170 | 170 |
|
171 |
-AVHWAccel ff_vp9_vaapi_hwaccel = { |
|
171 |
+const AVHWAccel ff_vp9_vaapi_hwaccel = { |
|
172 | 172 |
.name = "vp9_vaapi", |
173 | 173 |
.type = AVMEDIA_TYPE_VIDEO, |
174 | 174 |
.id = AV_CODEC_ID_VP9, |
... | ... |
@@ -262,7 +262,7 @@ static int vdpau_h264_init(AVCodecContext *avctx) |
262 | 262 |
return ff_vdpau_common_init(avctx, profile, level); |
263 | 263 |
} |
264 | 264 |
|
265 |
-AVHWAccel ff_h264_vdpau_hwaccel = { |
|
265 |
+const AVHWAccel ff_h264_vdpau_hwaccel = { |
|
266 | 266 |
.name = "h264_vdpau", |
267 | 267 |
.type = AVMEDIA_TYPE_VIDEO, |
268 | 268 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -413,7 +413,7 @@ static int vdpau_hevc_init(AVCodecContext *avctx) |
413 | 413 |
return ff_vdpau_common_init(avctx, profile, level); |
414 | 414 |
} |
415 | 415 |
|
416 |
-AVHWAccel ff_hevc_vdpau_hwaccel = { |
|
416 |
+const AVHWAccel ff_hevc_vdpau_hwaccel = { |
|
417 | 417 |
.name = "hevc_vdpau", |
418 | 418 |
.type = AVMEDIA_TYPE_VIDEO, |
419 | 419 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -103,7 +103,7 @@ static int vdpau_mpeg1_init(AVCodecContext *avctx) |
103 | 103 |
VDP_DECODER_LEVEL_MPEG1_NA); |
104 | 104 |
} |
105 | 105 |
|
106 |
-AVHWAccel ff_mpeg1_vdpau_hwaccel = { |
|
106 |
+const AVHWAccel ff_mpeg1_vdpau_hwaccel = { |
|
107 | 107 |
.name = "mpeg1_vdpau", |
108 | 108 |
.type = AVMEDIA_TYPE_VIDEO, |
109 | 109 |
.id = AV_CODEC_ID_MPEG1VIDEO, |
... | ... |
@@ -138,7 +138,7 @@ static int vdpau_mpeg2_init(AVCodecContext *avctx) |
138 | 138 |
return ff_vdpau_common_init(avctx, profile, VDP_DECODER_LEVEL_MPEG2_HL); |
139 | 139 |
} |
140 | 140 |
|
141 |
-AVHWAccel ff_mpeg2_vdpau_hwaccel = { |
|
141 |
+const AVHWAccel ff_mpeg2_vdpau_hwaccel = { |
|
142 | 142 |
.name = "mpeg2_vdpau", |
143 | 143 |
.type = AVMEDIA_TYPE_VIDEO, |
144 | 144 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -110,7 +110,7 @@ static int vdpau_mpeg4_init(AVCodecContext *avctx) |
110 | 110 |
return ff_vdpau_common_init(avctx, profile, avctx->level); |
111 | 111 |
} |
112 | 112 |
|
113 |
-AVHWAccel ff_mpeg4_vdpau_hwaccel = { |
|
113 |
+const AVHWAccel ff_mpeg4_vdpau_hwaccel = { |
|
114 | 114 |
.name = "mpeg4_vdpau", |
115 | 115 |
.type = AVMEDIA_TYPE_VIDEO, |
116 | 116 |
.id = AV_CODEC_ID_MPEG4, |
... | ... |
@@ -136,7 +136,7 @@ static int vdpau_vc1_init(AVCodecContext *avctx) |
136 | 136 |
} |
137 | 137 |
|
138 | 138 |
#if CONFIG_WMV3_VDPAU_HWACCEL |
139 |
-AVHWAccel ff_wmv3_vdpau_hwaccel = { |
|
139 |
+const AVHWAccel ff_wmv3_vdpau_hwaccel = { |
|
140 | 140 |
.name = "wm3_vdpau", |
141 | 141 |
.type = AVMEDIA_TYPE_VIDEO, |
142 | 142 |
.id = AV_CODEC_ID_WMV3, |
... | ... |
@@ -153,7 +153,7 @@ AVHWAccel ff_wmv3_vdpau_hwaccel = { |
153 | 153 |
}; |
154 | 154 |
#endif |
155 | 155 |
|
156 |
-AVHWAccel ff_vc1_vdpau_hwaccel = { |
|
156 |
+const AVHWAccel ff_vc1_vdpau_hwaccel = { |
|
157 | 157 |
.name = "vc1_vdpau", |
158 | 158 |
.type = AVMEDIA_TYPE_VIDEO, |
159 | 159 |
.id = AV_CODEC_ID_VC1, |
... | ... |
@@ -28,7 +28,7 @@ |
28 | 28 |
#include "libavutil/version.h" |
29 | 29 |
|
30 | 30 |
#define LIBAVCODEC_VERSION_MAJOR 58 |
31 |
-#define LIBAVCODEC_VERSION_MINOR 5 |
|
31 |
+#define LIBAVCODEC_VERSION_MINOR 6 |
|
32 | 32 |
#define LIBAVCODEC_VERSION_MICRO 100 |
33 | 33 |
|
34 | 34 |
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |
... | ... |
@@ -1028,7 +1028,7 @@ static int videotoolbox_frame_params(AVCodecContext *avctx, |
1028 | 1028 |
return 0; |
1029 | 1029 |
} |
1030 | 1030 |
|
1031 |
-AVHWAccel ff_h263_videotoolbox_hwaccel = { |
|
1031 |
+const AVHWAccel ff_h263_videotoolbox_hwaccel = { |
|
1032 | 1032 |
.name = "h263_videotoolbox", |
1033 | 1033 |
.type = AVMEDIA_TYPE_VIDEO, |
1034 | 1034 |
.id = AV_CODEC_ID_H263, |
... | ... |
@@ -1043,7 +1043,7 @@ AVHWAccel ff_h263_videotoolbox_hwaccel = { |
1043 | 1043 |
.priv_data_size = sizeof(VTContext), |
1044 | 1044 |
}; |
1045 | 1045 |
|
1046 |
-AVHWAccel ff_hevc_videotoolbox_hwaccel = { |
|
1046 |
+const AVHWAccel ff_hevc_videotoolbox_hwaccel = { |
|
1047 | 1047 |
.name = "hevc_videotoolbox", |
1048 | 1048 |
.type = AVMEDIA_TYPE_VIDEO, |
1049 | 1049 |
.id = AV_CODEC_ID_HEVC, |
... | ... |
@@ -1059,7 +1059,7 @@ AVHWAccel ff_hevc_videotoolbox_hwaccel = { |
1059 | 1059 |
.priv_data_size = sizeof(VTContext), |
1060 | 1060 |
}; |
1061 | 1061 |
|
1062 |
-AVHWAccel ff_h264_videotoolbox_hwaccel = { |
|
1062 |
+const AVHWAccel ff_h264_videotoolbox_hwaccel = { |
|
1063 | 1063 |
.name = "h264_videotoolbox", |
1064 | 1064 |
.type = AVMEDIA_TYPE_VIDEO, |
1065 | 1065 |
.id = AV_CODEC_ID_H264, |
... | ... |
@@ -1075,7 +1075,7 @@ AVHWAccel ff_h264_videotoolbox_hwaccel = { |
1075 | 1075 |
.priv_data_size = sizeof(VTContext), |
1076 | 1076 |
}; |
1077 | 1077 |
|
1078 |
-AVHWAccel ff_mpeg1_videotoolbox_hwaccel = { |
|
1078 |
+const AVHWAccel ff_mpeg1_videotoolbox_hwaccel = { |
|
1079 | 1079 |
.name = "mpeg1_videotoolbox", |
1080 | 1080 |
.type = AVMEDIA_TYPE_VIDEO, |
1081 | 1081 |
.id = AV_CODEC_ID_MPEG1VIDEO, |
... | ... |
@@ -1090,7 +1090,7 @@ AVHWAccel ff_mpeg1_videotoolbox_hwaccel = { |
1090 | 1090 |
.priv_data_size = sizeof(VTContext), |
1091 | 1091 |
}; |
1092 | 1092 |
|
1093 |
-AVHWAccel ff_mpeg2_videotoolbox_hwaccel = { |
|
1093 |
+const AVHWAccel ff_mpeg2_videotoolbox_hwaccel = { |
|
1094 | 1094 |
.name = "mpeg2_videotoolbox", |
1095 | 1095 |
.type = AVMEDIA_TYPE_VIDEO, |
1096 | 1096 |
.id = AV_CODEC_ID_MPEG2VIDEO, |
... | ... |
@@ -1105,7 +1105,7 @@ AVHWAccel ff_mpeg2_videotoolbox_hwaccel = { |
1105 | 1105 |
.priv_data_size = sizeof(VTContext), |
1106 | 1106 |
}; |
1107 | 1107 |
|
1108 |
-AVHWAccel ff_mpeg4_videotoolbox_hwaccel = { |
|
1108 |
+const AVHWAccel ff_mpeg4_videotoolbox_hwaccel = { |
|
1109 | 1109 |
.name = "mpeg4_videotoolbox", |
1110 | 1110 |
.type = AVMEDIA_TYPE_VIDEO, |
1111 | 1111 |
.id = AV_CODEC_ID_MPEG4, |