File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ static int infer_trc_ref(SwsColor *csp, const SwsColor *ref)
483
483
return 1 ;
484
484
}
485
485
486
- int ff_infer_colors (SwsColor * src , SwsColor * dst )
486
+ bool ff_infer_colors (SwsColor * src , SwsColor * dst )
487
487
{
488
488
int incomplete = 0 ;
489
489
Original file line number Diff line number Diff line change 21
21
#ifndef SWSCALE_FORMAT_H
22
22
#define SWSCALE_FORMAT_H
23
23
24
+ #include <stdbool.h>
25
+
24
26
#include "libavutil/csp.h"
25
27
#include "libavutil/pixdesc.h"
26
28
@@ -129,7 +131,7 @@ static inline int ff_fmt_align(enum AVPixelFormat fmt)
129
131
130
132
int ff_test_fmt (const SwsFormat * fmt , int output );
131
133
132
- /* Returns 1 if the formats are incomplete, 0 otherwise */
133
- int ff_infer_colors (SwsColor * src , SwsColor * dst );
134
+ /* Returns true if the formats are incomplete, false otherwise */
135
+ bool ff_infer_colors (SwsColor * src , SwsColor * dst );
134
136
135
137
#endif /* SWSCALE_FORMAT_H */
Original file line number Diff line number Diff line change 21
21
#ifndef SWSCALE_GRAPH_H
22
22
#define SWSCALE_GRAPH_H
23
23
24
+ #include <stdbool.h>
25
+
24
26
#include "libavutil/slicethread.h"
25
27
#include "swscale.h"
26
28
#include "format.h"
@@ -109,8 +111,8 @@ typedef struct SwsGraph {
109
111
SwsContext * ctx ;
110
112
AVSliceThread * slicethread ;
111
113
int num_threads ; /* resolved at init() time */
112
- int incomplete ; /* set during init() if formats had to be inferred */
113
- int noop ; /* set during init() if the graph is a no-op */
114
+ bool incomplete ; /* set during init() if formats had to be inferred */
115
+ bool noop ; /* set during init() if the graph is a no-op */
114
116
115
117
/** Sorted sequence of filter passes to apply */
116
118
SwsPass * * passes ;
You can’t perform that action at this time.
0 commit comments