mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avutil/hwcontext_videotoolbox: add fall-through annotations
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "hwcontext.h"
|
||||
#include "hwcontext_internal.h"
|
||||
#include "hwcontext_videotoolbox.h"
|
||||
#include "attributes.h"
|
||||
#include "mem.h"
|
||||
#include "pixfmt.h"
|
||||
#include "pixdesc.h"
|
||||
@@ -462,6 +463,7 @@ CFStringRef av_map_videotoolbox_color_matrix_from_av(enum AVColorSpace space)
|
||||
#if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
|
||||
if (__builtin_available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *))
|
||||
return CVYCbCrMatrixGetStringForIntegerCodePoint(space);
|
||||
av_fallthrough;
|
||||
#endif
|
||||
case AVCOL_SPC_UNSPECIFIED:
|
||||
return NULL;
|
||||
@@ -487,6 +489,7 @@ CFStringRef av_map_videotoolbox_color_primaries_from_av(enum AVColorPrimaries pr
|
||||
#if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
|
||||
if (__builtin_available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *))
|
||||
return CVColorPrimariesGetStringForIntegerCodePoint(pri);
|
||||
av_fallthrough;
|
||||
#endif
|
||||
case AVCOL_PRI_UNSPECIFIED:
|
||||
return NULL;
|
||||
@@ -534,6 +537,7 @@ CFStringRef av_map_videotoolbox_color_trc_from_av(enum AVColorTransferCharacteri
|
||||
#if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
|
||||
if (__builtin_available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *))
|
||||
return CVTransferFunctionGetStringForIntegerCodePoint(trc);
|
||||
av_fallthrough;
|
||||
#endif
|
||||
case AVCOL_TRC_UNSPECIFIED:
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user