Ronald S. Bultje | 15 Jun 2012 23:38
Picon

[PATCH 1/2] dnxhdenc: remove useless uses of restrict.

From: "Ronald S. Bultje" <rsbultje@...>

---
 libavcodec/dnxhdenc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index d92ea1b..7ceae92 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
 <at>  <at>  -45,7 +45,7  <at>  <at>  static const AVClass class = { "dnxhd", av_default_item_name, options, LIBAVUTIL

 #define LAMBDA_FRAC_BITS 10

-static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t *pixels, int line_size)
+static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *block, const uint8_t *pixels, int line_size)
 {
     int i;
     for (i = 0; i < 4; i++) {
 <at>  <at>  -62,7 +62,7  <at>  <at>  static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t
     memcpy(block + 24, block - 32, sizeof(*block) * 8);
 }

-static av_always_inline void dnxhd_10bit_get_pixels_8x4_sym(DCTELEM *restrict block, const
uint8_t *pixels, int line_size)
+static av_always_inline void dnxhd_10bit_get_pixels_8x4_sym(DCTELEM *block, const uint8_t
*pixels, int line_size)
 {
     int i;

(Continue reading)

Ronald S. Bultje | 15 Jun 2012 23:38
Picon

[PATCH 2/2] dsputil: remove useless uses of restrict.

From: "Ronald S. Bultje" <rsbultje@...>

---
 libavcodec/dsputil.c          |    8 ++++----
 libavcodec/dsputil_template.c |   12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 942f606..a146101 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
 <at>  <at>  -338,7 +338,7  <at>  <at>  static int sse16_c(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
     return s;
 }

-static void diff_pixels_c(DCTELEM *restrict block, const uint8_t *s1,
+static void diff_pixels_c(DCTELEM *block, const uint8_t *s1,
                           const uint8_t *s2, int stride){
     int i;

 <at>  <at>  -359,7 +359,7  <at>  <at>  static void diff_pixels_c(DCTELEM *restrict block, const uint8_t *s1,
 }

 
-void ff_put_pixels_clamped_c(const DCTELEM *block, uint8_t *restrict pixels,
+void ff_put_pixels_clamped_c(const DCTELEM *block, uint8_t *pixels,
                              int line_size)
 {
     int i;
 <at>  <at>  -381,7 +381,7  <at>  <at>  void ff_put_pixels_clamped_c(const DCTELEM *block, uint8_t *restrict pixels,
(Continue reading)

Måns Rullgård | 16 Jun 2012 02:39

Re: [PATCH 2/2] dsputil: remove useless uses of restrict.

"Ronald S. Bultje" <rsbultje@...> writes:

> From: "Ronald S. Bultje" <rsbultje@...>
>
> ---
>  libavcodec/dsputil.c          |    8 ++++----
>  libavcodec/dsputil_template.c |   12 ++++++------
>  2 files changed, 10 insertions(+), 10 deletions(-)

Ditto.

--

-- 
Måns Rullgård
mans@...
Måns Rullgård | 16 Jun 2012 02:39

Re: [PATCH 1/2] dnxhdenc: remove useless uses of restrict.

"Ronald S. Bultje" <rsbultje@...> writes:

> From: "Ronald S. Bultje" <rsbultje@...>
>
> ---
>  libavcodec/dnxhdenc.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
> index d92ea1b..7ceae92 100644
> --- a/libavcodec/dnxhdenc.c
> +++ b/libavcodec/dnxhdenc.c
>  <at>  <at>  -45,7 +45,7  <at>  <at>  static const AVClass class = { "dnxhd", av_default_item_name, options, LIBAVUTIL
>
>  #define LAMBDA_FRAC_BITS 10
>
> -static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t *pixels, int line_size)
> +static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *block, const uint8_t *pixels, int line_size)
>  {
>      int i;
>      for (i = 0; i < 4; i++) {
>  <at>  <at>  -62,7 +62,7  <at>  <at>  static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t
>      memcpy(block + 24, block - 32, sizeof(*block) * 8);
>  }
>
> -static av_always_inline void dnxhd_10bit_get_pixels_8x4_sym(DCTELEM *restrict block, const
uint8_t *pixels, int line_size)
> +static av_always_inline void dnxhd_10bit_get_pixels_8x4_sym(DCTELEM *block, const uint8_t
*pixels, int line_size)
>  {
(Continue reading)

Ronald S. Bultje | 16 Jun 2012 02:55
Picon

Re: [PATCH 1/2] dnxhdenc: remove useless uses of restrict.

Hi,

On Fri, Jun 15, 2012 at 5:39 PM, Måns Rullgård <mans@...> wrote:
> "Ronald S. Bultje" <rsbultje@...> writes:
>
>> From: "Ronald S. Bultje" <rsbultje@...>
>>
>> ---
>>  libavcodec/dnxhdenc.c |    4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
>> index d92ea1b..7ceae92 100644
>> --- a/libavcodec/dnxhdenc.c
>> +++ b/libavcodec/dnxhdenc.c
>>  <at>  <at>  -45,7 +45,7  <at>  <at>  static const AVClass class = { "dnxhd", av_default_item_name, options, LIBAVUTIL
>>
>>  #define LAMBDA_FRAC_BITS 10
>>
>> -static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t *pixels, int line_size)
>> +static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *block, const uint8_t *pixels, int line_size)
>>  {
>>      int i;
>>      for (i = 0; i < 4; i++) {
>>  <at>  <at>  -62,7 +62,7  <at>  <at>  static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t
>>      memcpy(block + 24, block - 32, sizeof(*block) * 8);
>>  }
>>
>> -static av_always_inline void dnxhd_10bit_get_pixels_8x4_sym(DCTELEM *restrict block, const
uint8_t *pixels, int line_size)
(Continue reading)

Måns Rullgård | 16 Jun 2012 13:42

Re: [PATCH 1/2] dnxhdenc: remove useless uses of restrict.

"Ronald S. Bultje" <rsbultje@...> writes:

> Hi,
>
> On Fri, Jun 15, 2012 at 5:39 PM, Måns Rullgård <mans@...> wrote:
>> "Ronald S. Bultje" <rsbultje@...> writes:
>>
>>> From: "Ronald S. Bultje" <rsbultje@...>
>>>
>>> ---
>>>  libavcodec/dnxhdenc.c |    4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
>>> index d92ea1b..7ceae92 100644
>>> --- a/libavcodec/dnxhdenc.c
>>> +++ b/libavcodec/dnxhdenc.c
>>>  <at>  <at>  -45,7 +45,7  <at>  <at>  static const AVClass class = { "dnxhd", av_default_item_name, options, LIBAVUTIL
>>>
>>>  #define LAMBDA_FRAC_BITS 10
>>>
>>> -static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t *pixels, int line_size)
>>> +static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *block, const uint8_t *pixels, int line_size)
>>>  {
>>>      int i;
>>>      for (i = 0; i < 4; i++) {
>>>  <at>  <at>  -62,7 +62,7  <at>  <at>  static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t
>>>      memcpy(block + 24, block - 32, sizeof(*block) * 8);
>>>  }
>>>
(Continue reading)


Gmane