Skip to content

Commit bd35329

Browse files
committed
from_lavc_vid_conv.c: mark one conversion as 02
(faster)
1 parent 50a0fc0 commit bd35329

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/libavcodec/from_lavc_vid_conv.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ yuv444p16le_to_r10k(struct av_conv_data d)
330330
}
331331

332332
#if defined __GNUC__
333+
// actually faster with -02 with GCC
334+
#if !defined __clang__
335+
#pragma GCC push_options
336+
#pragma GCC optimize("O2")
337+
#endif
333338
static inline void yuv444pXXle_to_r12l(struct av_conv_data d, int depth)
334339
__attribute__((always_inline));
335340
#endif
@@ -420,6 +425,9 @@ yuv444p12le_to_r12l(struct av_conv_data d)
420425
{
421426
yuv444pXXle_to_r12l(d, DEPTH12);
422427
}
428+
#if defined __GNUC__ && !defined __clang__
429+
#pragma GCC pop_options
430+
#endif
423431

424432
static void
425433
yuv444p16le_to_r12l(struct av_conv_data d)

0 commit comments

Comments
 (0)