diff mbox series

[FFmpeg-devel] avutil/film_grain_params: add more details to some AVFilmGrainAOMParams fields

Message ID 20201126203124.1825-1-jamrial@gmail.com
State Accepted
Commit ee61d4dc68f68337a5cca141e855a367724c9dd9
Headers show
Series [FFmpeg-devel] avutil/film_grain_params: add more details to some AVFilmGrainAOMParams fields | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer Nov. 26, 2020, 8:31 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavutil/film_grain_params.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Lynne Nov. 27, 2020, 1:33 a.m. UTC | #1
Nov 26, 2020, 21:31 by jamrial@gmail.com:

> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavutil/film_grain_params.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/libavutil/film_grain_params.h b/libavutil/film_grain_params.h
> index cdc8f623c6..f5baf9a928 100644
> --- a/libavutil/film_grain_params.h
> +++ b/libavutil/film_grain_params.h
> @@ -54,8 +54,8 @@ typedef struct AVFilmGrainAOMParams {
>  * If chroma_scaling_from_luma is set to 0, signals the chroma scaling
>  * function parameters.
>  */
> -    int num_uv_points[2];
> -    uint8_t uv_points[2][10][2 /* value, scaling */];
> +    int num_uv_points[2 /* cb, cr */];
> +    uint8_t uv_points[2 /* cb, cr */][10][2 /* value, scaling */];
>  
>  /**
>  * Specifies the shift applied to the chroma components. For AV1, its within
> @@ -77,7 +77,7 @@ typedef struct AVFilmGrainAOMParams {
>  /**
>  * Chroma auto-regression coefficients.
>  */
> -    int8_t ar_coeffs_uv[2][25];
> +    int8_t ar_coeffs_uv[2 /* cb, cr */][25];
>  
>  /**
>  * Specifies the range of the auto-regressive coefficients. Values of 6,
> @@ -96,14 +96,14 @@ typedef struct AVFilmGrainAOMParams {
>  * Specifies the luma/chroma multipliers for the index to the component
>  * scaling function.
>  */
> -    int uv_mult[2];
> -    int uv_mult_luma[2];
> +    int uv_mult[2 /* cb, cr */];
> +    int uv_mult_luma[2 /* cb, cr */];
>  
>  /**
>  * Offset used for component scaling function. For AV1 its a 9-bit value
>  * with a range [-256, 255]
>  */
> -    int uv_offset[2];
> +    int uv_offset[2 /* cb, cr */];
>  
>  /**
>  * Signals whether to overlap film grain blocks.
>

LGTM, thanks.
James Almer Nov. 27, 2020, 1:37 a.m. UTC | #2
On 11/26/2020 10:33 PM, Lynne wrote:
> Nov 26, 2020, 21:31 by jamrial@gmail.com:
> 
>> Signed-off-by: James Almer <jamrial@gmail.com>
>> ---
>>   libavutil/film_grain_params.h | 12 ++++++------
>>   1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/libavutil/film_grain_params.h b/libavutil/film_grain_params.h
>> index cdc8f623c6..f5baf9a928 100644
>> --- a/libavutil/film_grain_params.h
>> +++ b/libavutil/film_grain_params.h
>> @@ -54,8 +54,8 @@ typedef struct AVFilmGrainAOMParams {
>>   * If chroma_scaling_from_luma is set to 0, signals the chroma scaling
>>   * function parameters.
>>   */
>> -    int num_uv_points[2];
>> -    uint8_t uv_points[2][10][2 /* value, scaling */];
>> +    int num_uv_points[2 /* cb, cr */];
>> +    uint8_t uv_points[2 /* cb, cr */][10][2 /* value, scaling */];
>>   
>>   /**
>>   * Specifies the shift applied to the chroma components. For AV1, its within
>> @@ -77,7 +77,7 @@ typedef struct AVFilmGrainAOMParams {
>>   /**
>>   * Chroma auto-regression coefficients.
>>   */
>> -    int8_t ar_coeffs_uv[2][25];
>> +    int8_t ar_coeffs_uv[2 /* cb, cr */][25];
>>   
>>   /**
>>   * Specifies the range of the auto-regressive coefficients. Values of 6,
>> @@ -96,14 +96,14 @@ typedef struct AVFilmGrainAOMParams {
>>   * Specifies the luma/chroma multipliers for the index to the component
>>   * scaling function.
>>   */
>> -    int uv_mult[2];
>> -    int uv_mult_luma[2];
>> +    int uv_mult[2 /* cb, cr */];
>> +    int uv_mult_luma[2 /* cb, cr */];
>>   
>>   /**
>>   * Offset used for component scaling function. For AV1 its a 9-bit value
>>   * with a range [-256, 255]
>>   */
>> -    int uv_offset[2];
>> +    int uv_offset[2 /* cb, cr */];
>>   
>>   /**
>>   * Signals whether to overlap film grain blocks.
>>
> 
> LGTM, thanks.

Applied.
diff mbox series

Patch

diff --git a/libavutil/film_grain_params.h b/libavutil/film_grain_params.h
index cdc8f623c6..f5baf9a928 100644
--- a/libavutil/film_grain_params.h
+++ b/libavutil/film_grain_params.h
@@ -54,8 +54,8 @@  typedef struct AVFilmGrainAOMParams {
      * If chroma_scaling_from_luma is set to 0, signals the chroma scaling
      * function parameters.
      */
-    int num_uv_points[2];
-    uint8_t uv_points[2][10][2 /* value, scaling */];
+    int num_uv_points[2 /* cb, cr */];
+    uint8_t uv_points[2 /* cb, cr */][10][2 /* value, scaling */];
 
     /**
      * Specifies the shift applied to the chroma components. For AV1, its within
@@ -77,7 +77,7 @@  typedef struct AVFilmGrainAOMParams {
     /**
      * Chroma auto-regression coefficients.
      */
-    int8_t ar_coeffs_uv[2][25];
+    int8_t ar_coeffs_uv[2 /* cb, cr */][25];
 
     /**
      * Specifies the range of the auto-regressive coefficients. Values of 6,
@@ -96,14 +96,14 @@  typedef struct AVFilmGrainAOMParams {
      * Specifies the luma/chroma multipliers for the index to the component
      * scaling function.
      */
-    int uv_mult[2];
-    int uv_mult_luma[2];
+    int uv_mult[2 /* cb, cr */];
+    int uv_mult_luma[2 /* cb, cr */];
 
     /**
      * Offset used for component scaling function. For AV1 its a 9-bit value
      * with a range [-256, 255]
      */
-    int uv_offset[2];
+    int uv_offset[2 /* cb, cr */];
 
     /**
      * Signals whether to overlap film grain blocks.