* qatar/master:
fate: add ac3/eac3 tests to FATE_SAMPLES_AVCONV
avconv_opt, cmdutils: Add missing function parameter Doxygen
x86: Move optimization suffix to end of function names
Conflicts:
cmdutils.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -206,6 +206,8 @@ int show_help(void *optctx, const char *opt, const char *arg); |
206 | 206 |
* Parse the command line arguments. |
207 | 207 |
* |
208 | 208 |
* @param optctx an opaque options context |
209 |
+ * @param argc number of command line arguments |
|
210 |
+ * @param argv values of command line arguments |
|
209 | 211 |
* @param options Array with the definitions required to interpret every |
210 | 212 |
* option of the form: -option_name [argument] |
211 | 213 |
* @param parse_arg_function Name of the function called to process every |
... | ... |
@@ -251,6 +253,8 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec); |
251 | 251 |
* Create a new options dictionary containing only the options from |
252 | 252 |
* opts which apply to the codec with ID codec_id. |
253 | 253 |
* |
254 |
+ * @param opts dictionary to place options in |
|
255 |
+ * @param codec_id ID of the codec that should be filtered for |
|
254 | 256 |
* @param s Corresponding format context. |
255 | 257 |
* @param st A stream from s for which the options should be filtered. |
256 | 258 |
* @param codec The particular codec for which the options should be filtered. |
... | ... |
@@ -384,6 +388,7 @@ int read_yesno(void); |
384 | 384 |
* Read the file with name filename, and put its content in a newly |
385 | 385 |
* allocated 0-terminated buffer. |
386 | 386 |
* |
387 |
+ * @param filename file to read from |
|
387 | 388 |
* @param bufptr location where pointer to buffer is returned |
388 | 389 |
* @param size location where size of buffer is returned |
389 | 390 |
* @return 0 in case of success, a negative value corresponding to an |
... | ... |
@@ -416,8 +421,10 @@ FILE *get_preset_file(char *filename, size_t filename_size, |
416 | 416 |
* Realloc array to hold new_size elements of elem_size. |
417 | 417 |
* Calls exit() on failure. |
418 | 418 |
* |
419 |
+ * @param array array to reallocate |
|
419 | 420 |
* @param elem_size size in bytes of each element |
420 | 421 |
* @param size new element count will be written here |
422 |
+ * @param new_size number of elements to place in reallocated array |
|
421 | 423 |
* @return reallocated array |
422 | 424 |
*/ |
423 | 425 |
void *grow_array(void *array, int elem_size, int *size, int new_size); |
... | ... |
@@ -368,6 +368,7 @@ static int opt_map_channel(void *optctx, const char *opt, const char *arg) |
368 | 368 |
|
369 | 369 |
/** |
370 | 370 |
* Parse a metadata specifier passed as 'arg' parameter. |
371 |
+ * @param arg metadata string to parse |
|
371 | 372 |
* @param type metadata type is written here -- g(lobal)/s(tream)/c(hapter)/p(rogram) |
372 | 373 |
* @param index for type c/p, chapter/program index is written here |
373 | 374 |
* @param stream_spec for type s, the stream specifier is written here |
... | ... |
@@ -2107,11 +2107,11 @@ PREFETCH(prefetch_3dnow, prefetch) |
2107 | 2107 |
|
2108 | 2108 |
#include "h264_qpel.c" |
2109 | 2109 |
|
2110 |
-void ff_put_h264_chroma_mc8_mmx_rnd (uint8_t *dst, uint8_t *src, |
|
2110 |
+void ff_put_h264_chroma_mc8_rnd_mmx (uint8_t *dst, uint8_t *src, |
|
2111 | 2111 |
int stride, int h, int x, int y); |
2112 |
-void ff_avg_h264_chroma_mc8_mmx2_rnd (uint8_t *dst, uint8_t *src, |
|
2112 |
+void ff_avg_h264_chroma_mc8_rnd_mmx2 (uint8_t *dst, uint8_t *src, |
|
2113 | 2113 |
int stride, int h, int x, int y); |
2114 |
-void ff_avg_h264_chroma_mc8_3dnow_rnd(uint8_t *dst, uint8_t *src, |
|
2114 |
+void ff_avg_h264_chroma_mc8_rnd_3dnow(uint8_t *dst, uint8_t *src, |
|
2115 | 2115 |
int stride, int h, int x, int y); |
2116 | 2116 |
|
2117 | 2117 |
void ff_put_h264_chroma_mc4_mmx (uint8_t *dst, uint8_t *src, |
... | ... |
@@ -2126,12 +2126,12 @@ void ff_put_h264_chroma_mc2_mmx2 (uint8_t *dst, uint8_t *src, |
2126 | 2126 |
void ff_avg_h264_chroma_mc2_mmx2 (uint8_t *dst, uint8_t *src, |
2127 | 2127 |
int stride, int h, int x, int y); |
2128 | 2128 |
|
2129 |
-void ff_put_h264_chroma_mc8_ssse3_rnd(uint8_t *dst, uint8_t *src, |
|
2129 |
+void ff_put_h264_chroma_mc8_rnd_ssse3(uint8_t *dst, uint8_t *src, |
|
2130 | 2130 |
int stride, int h, int x, int y); |
2131 | 2131 |
void ff_put_h264_chroma_mc4_ssse3 (uint8_t *dst, uint8_t *src, |
2132 | 2132 |
int stride, int h, int x, int y); |
2133 | 2133 |
|
2134 |
-void ff_avg_h264_chroma_mc8_ssse3_rnd(uint8_t *dst, uint8_t *src, |
|
2134 |
+void ff_avg_h264_chroma_mc8_rnd_ssse3(uint8_t *dst, uint8_t *src, |
|
2135 | 2135 |
int stride, int h, int x, int y); |
2136 | 2136 |
void ff_avg_h264_chroma_mc4_ssse3 (uint8_t *dst, uint8_t *src, |
2137 | 2137 |
int stride, int h, int x, int y); |
... | ... |
@@ -2611,7 +2611,7 @@ static void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, int mm_flags) |
2611 | 2611 |
#endif |
2612 | 2612 |
|
2613 | 2613 |
if (!high_bit_depth && CONFIG_H264CHROMA) { |
2614 |
- c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_mmx_rnd; |
|
2614 |
+ c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_rnd_mmx; |
|
2615 | 2615 |
c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_mmx; |
2616 | 2616 |
} |
2617 | 2617 |
|
... | ... |
@@ -2706,7 +2706,7 @@ static void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx, |
2706 | 2706 |
|
2707 | 2707 |
#if HAVE_YASM |
2708 | 2708 |
if (!high_bit_depth && CONFIG_H264CHROMA) { |
2709 |
- c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_mmx2_rnd; |
|
2709 |
+ c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_rnd_mmx2; |
|
2710 | 2710 |
c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_mmx2; |
2711 | 2711 |
c->avg_h264_chroma_pixels_tab[2] = ff_avg_h264_chroma_mc2_mmx2; |
2712 | 2712 |
c->put_h264_chroma_pixels_tab[2] = ff_put_h264_chroma_mc2_mmx2; |
... | ... |
@@ -2801,7 +2801,7 @@ static void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx, |
2801 | 2801 |
|
2802 | 2802 |
#if HAVE_YASM |
2803 | 2803 |
if (!high_bit_depth && CONFIG_H264CHROMA) { |
2804 |
- c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_3dnow_rnd; |
|
2804 |
+ c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_rnd_3dnow; |
|
2805 | 2805 |
c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_3dnow; |
2806 | 2806 |
} |
2807 | 2807 |
#endif /* HAVE_YASM */ |
... | ... |
@@ -2950,8 +2950,8 @@ static void dsputil_init_ssse3(DSPContext *c, AVCodecContext *avctx, |
2950 | 2950 |
H264_QPEL_FUNCS_10(3, 0, ssse3_cache64); |
2951 | 2951 |
} |
2952 | 2952 |
if (!high_bit_depth && CONFIG_H264CHROMA) { |
2953 |
- c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_ssse3_rnd; |
|
2954 |
- c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_ssse3_rnd; |
|
2953 |
+ c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_rnd_ssse3; |
|
2954 |
+ c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_rnd_ssse3; |
|
2955 | 2955 |
c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_ssse3; |
2956 | 2956 |
c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_ssse3; |
2957 | 2957 |
} |
... | ... |
@@ -437,8 +437,8 @@ cglobal %1_%2_chroma_mc2_%3, 6, 7, 0 |
437 | 437 |
INIT_MMX |
438 | 438 |
%define CHROMAMC_AVG NOTHING |
439 | 439 |
%define CHROMAMC_AVG4 NOTHING |
440 |
-chroma_mc8_mmx_func put, h264, mmx_rnd |
|
441 |
-chroma_mc8_mmx_func put, vc1, mmx_nornd |
|
440 |
+chroma_mc8_mmx_func put, h264, rnd_mmx |
|
441 |
+chroma_mc8_mmx_func put, vc1, nornd_mmx |
|
442 | 442 |
chroma_mc8_mmx_func put, rv40, mmx |
443 | 443 |
chroma_mc4_mmx_func put, h264, mmx |
444 | 444 |
chroma_mc4_mmx_func put, rv40, mmx |
... | ... |
@@ -447,16 +447,16 @@ chroma_mc2_mmx_func put, h264, mmx2 |
447 | 447 |
%define CHROMAMC_AVG DIRECT_AVG |
448 | 448 |
%define CHROMAMC_AVG4 COPY_AVG |
449 | 449 |
%define PAVG pavgb |
450 |
-chroma_mc8_mmx_func avg, h264, mmx2_rnd |
|
451 |
-chroma_mc8_mmx_func avg, vc1, mmx2_nornd |
|
450 |
+chroma_mc8_mmx_func avg, h264, rnd_mmx2 |
|
451 |
+chroma_mc8_mmx_func avg, vc1, nornd_mmx2 |
|
452 | 452 |
chroma_mc8_mmx_func avg, rv40, mmx2 |
453 | 453 |
chroma_mc4_mmx_func avg, h264, mmx2 |
454 | 454 |
chroma_mc4_mmx_func avg, rv40, mmx2 |
455 | 455 |
chroma_mc2_mmx_func avg, h264, mmx2 |
456 | 456 |
|
457 | 457 |
%define PAVG pavgusb |
458 |
-chroma_mc8_mmx_func avg, h264, 3dnow_rnd |
|
459 |
-chroma_mc8_mmx_func avg, vc1, 3dnow_nornd |
|
458 |
+chroma_mc8_mmx_func avg, h264, rnd_3dnow |
|
459 |
+chroma_mc8_mmx_func avg, vc1, nornd_3dnow |
|
460 | 460 |
chroma_mc8_mmx_func avg, rv40, 3dnow |
461 | 461 |
chroma_mc4_mmx_func avg, h264, 3dnow |
462 | 462 |
chroma_mc4_mmx_func avg, rv40, 3dnow |
... | ... |
@@ -664,15 +664,15 @@ cglobal %1_%2_chroma_mc4_%3, 6, 7, 0 |
664 | 664 |
|
665 | 665 |
%define CHROMAMC_AVG NOTHING |
666 | 666 |
INIT_XMM |
667 |
-chroma_mc8_ssse3_func put, h264, ssse3_rnd |
|
668 |
-chroma_mc8_ssse3_func put, vc1, ssse3_nornd |
|
667 |
+chroma_mc8_ssse3_func put, h264, rnd_ssse3 |
|
668 |
+chroma_mc8_ssse3_func put, vc1, nornd_ssse3 |
|
669 | 669 |
INIT_MMX |
670 | 670 |
chroma_mc4_ssse3_func put, h264, ssse3 |
671 | 671 |
|
672 | 672 |
%define CHROMAMC_AVG DIRECT_AVG |
673 | 673 |
%define PAVG pavgb |
674 | 674 |
INIT_XMM |
675 |
-chroma_mc8_ssse3_func avg, h264, ssse3_rnd |
|
676 |
-chroma_mc8_ssse3_func avg, vc1, ssse3_nornd |
|
675 |
+chroma_mc8_ssse3_func avg, h264, rnd_ssse3 |
|
676 |
+chroma_mc8_ssse3_func avg, vc1, nornd_ssse3 |
|
677 | 677 |
INIT_MMX |
678 | 678 |
chroma_mc4_ssse3_func avg, h264, ssse3 |
... | ... |
@@ -62,15 +62,15 @@ static void vc1_h_loop_filter16_sse4(uint8_t *src, int stride, int pq) |
62 | 62 |
} |
63 | 63 |
#endif /* HAVE_YASM */ |
64 | 64 |
|
65 |
-void ff_put_vc1_chroma_mc8_mmx_nornd (uint8_t *dst, uint8_t *src, |
|
65 |
+void ff_put_vc1_chroma_mc8_nornd_mmx (uint8_t *dst, uint8_t *src, |
|
66 | 66 |
int stride, int h, int x, int y); |
67 |
-void ff_avg_vc1_chroma_mc8_mmx2_nornd (uint8_t *dst, uint8_t *src, |
|
67 |
+void ff_avg_vc1_chroma_mc8_nornd_mmx2 (uint8_t *dst, uint8_t *src, |
|
68 | 68 |
int stride, int h, int x, int y); |
69 |
-void ff_avg_vc1_chroma_mc8_3dnow_nornd(uint8_t *dst, uint8_t *src, |
|
69 |
+void ff_avg_vc1_chroma_mc8_nornd_3dnow(uint8_t *dst, uint8_t *src, |
|
70 | 70 |
int stride, int h, int x, int y); |
71 |
-void ff_put_vc1_chroma_mc8_ssse3_nornd(uint8_t *dst, uint8_t *src, |
|
71 |
+void ff_put_vc1_chroma_mc8_nornd_ssse3(uint8_t *dst, uint8_t *src, |
|
72 | 72 |
int stride, int h, int x, int y); |
73 |
-void ff_avg_vc1_chroma_mc8_ssse3_nornd(uint8_t *dst, uint8_t *src, |
|
73 |
+void ff_avg_vc1_chroma_mc8_nornd_ssse3(uint8_t *dst, uint8_t *src, |
|
74 | 74 |
int stride, int h, int x, int y); |
75 | 75 |
|
76 | 76 |
|
... | ... |
@@ -94,14 +94,14 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp) |
94 | 94 |
|
95 | 95 |
#if HAVE_YASM |
96 | 96 |
if (mm_flags & AV_CPU_FLAG_MMX) { |
97 |
- dsp->put_no_rnd_vc1_chroma_pixels_tab[0]= ff_put_vc1_chroma_mc8_mmx_nornd; |
|
97 |
+ dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = ff_put_vc1_chroma_mc8_nornd_mmx; |
|
98 | 98 |
} |
99 | 99 |
|
100 | 100 |
if (mm_flags & AV_CPU_FLAG_MMXEXT) { |
101 | 101 |
ASSIGN_LF(mmx2); |
102 |
- dsp->avg_no_rnd_vc1_chroma_pixels_tab[0]= ff_avg_vc1_chroma_mc8_mmx2_nornd; |
|
102 |
+ dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = ff_avg_vc1_chroma_mc8_nornd_mmx2; |
|
103 | 103 |
} else if (mm_flags & AV_CPU_FLAG_3DNOW) { |
104 |
- dsp->avg_no_rnd_vc1_chroma_pixels_tab[0]= ff_avg_vc1_chroma_mc8_3dnow_nornd; |
|
104 |
+ dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = ff_avg_vc1_chroma_mc8_nornd_3dnow; |
|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
if (mm_flags & AV_CPU_FLAG_SSE2) { |
... | ... |
@@ -112,8 +112,8 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp) |
112 | 112 |
} |
113 | 113 |
if (mm_flags & AV_CPU_FLAG_SSSE3) { |
114 | 114 |
ASSIGN_LF(ssse3); |
115 |
- dsp->put_no_rnd_vc1_chroma_pixels_tab[0]= ff_put_vc1_chroma_mc8_ssse3_nornd; |
|
116 |
- dsp->avg_no_rnd_vc1_chroma_pixels_tab[0]= ff_avg_vc1_chroma_mc8_ssse3_nornd; |
|
115 |
+ dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = ff_put_vc1_chroma_mc8_nornd_ssse3; |
|
116 |
+ dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = ff_avg_vc1_chroma_mc8_nornd_ssse3; |
|
117 | 117 |
} |
118 | 118 |
if (mm_flags & AV_CPU_FLAG_SSE4) { |
119 | 119 |
dsp->vc1_h_loop_filter8 = ff_vc1_h_loop_filter8_sse4; |