Browse Source

libavutil/mastering_display_metadata.h: change fields to be rationals as this is how they are typically coded.

(this structure is not referenced anywhere yet)

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Neil Birkbeck Michael Niedermayer 9 years ago
parent
commit
c323c98ee3
2 changed files with 7 additions and 6 deletions
  1. +6
    -4
      libavutil/mastering_display_metadata.h
  2. +1
    -2
      libavutil/version.h

+ 6
- 4
libavutil/mastering_display_metadata.h View File

@@ -22,6 +22,8 @@
#define AVUTIL_MASTERING_DISPLAY_METADATA_H

#include "frame.h"
#include "rational.h"


/**
* Mastering display metadata capable of representing the color volume of
@@ -37,22 +39,22 @@ typedef struct AVMasteringDisplayMetadata {
/**
* CIE 1931 xy chromaticity coords of color primaries (r, g, b order).
*/
float display_primaries[3][2];
AVRational display_primaries[3][2];

/**
* CIE 1931 xy chromaticity coords of white point.
*/
float white_point[2];
AVRational white_point[2];

/**
* Min luminance of mastering display (cd/m^2).
*/
float min_luminance;
AVRational min_luminance;

/**
* Max luminance of mastering display (cd/m^2).
*/
float max_luminance;
AVRational max_luminance;

/**
* Flag indicating whether the display primaries (and white point) are set.


+ 1
- 2
libavutil/version.h View File

@@ -65,7 +65,7 @@

#define LIBAVUTIL_VERSION_MAJOR 55
#define LIBAVUTIL_VERSION_MINOR 16
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_MICRO 101

#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
@@ -126,4 +126,3 @@
*/

#endif /* AVUTIL_VERSION_H */


Loading…
Cancel
Save