[vlc-commits] ci_filters: indent autoreleasepool
Thomas Guillem
git at videolan.org
Tue Sep 12 17:31:57 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 12 16:57:53 2017 +0200| [c05efdde9befdd0c56c5d8350d46969f9a11205a] | committer: Thomas Guillem
ci_filters: indent autoreleasepool
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c05efdde9befdd0c56c5d8350d46969f9a11205a
---
modules/video_filter/ci_filters.m | 50 +++++++++++++++++++--------------------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index 6727308146..58a2ddb1b3 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -314,39 +314,39 @@ Filter(filter_t *filter, picture_t *src)
CFRelease(cvpx);
@autoreleasepool {
- CIImage *ci_img = [CIImage imageWithCVImageBuffer: cvpxpic_get_ref(src)];
- if (!ci_img)
- goto error;
-
- for (struct filter_chain *fchain = ctx->fchain;
- fchain; fchain = fchain->next)
- {
- [fchain->ci_filter setValue: ci_img
- forKey: kCIInputImageKey];
+ CIImage *ci_img = [CIImage imageWithCVImageBuffer: cvpxpic_get_ref(src)];
+ if (!ci_img)
+ goto error;
- for (unsigned int i = 0; i < NUM_FILTER_PARAM_MAX &&
- filter_desc_table[fchain->filter].param_descs[i].vlc; ++i)
+ for (struct filter_chain *fchain = ctx->fchain;
+ fchain; fchain = fchain->next)
{
- NSString *ci_param_name =
- filter_desc_table[fchain->filter].param_descs[i].ci;
- float ci_value = vlc_atomic_load_float(fchain->ci_params + i);
+ [fchain->ci_filter setValue: ci_img
+ forKey: kCIInputImageKey];
- [fchain->ci_filter setValue: [NSNumber numberWithFloat: ci_value]
- forKey: ci_param_name];
- }
+ for (unsigned int i = 0; i < NUM_FILTER_PARAM_MAX &&
+ filter_desc_table[fchain->filter].param_descs[i].vlc; ++i)
+ {
+ NSString *ci_param_name =
+ filter_desc_table[fchain->filter].param_descs[i].ci;
+ float ci_value = vlc_atomic_load_float(fchain->ci_params + i);
- ci_img = [fchain->ci_filter valueForKey: kCIOutputImageKey];
- }
+ [fchain->ci_filter setValue: [NSNumber numberWithFloat: ci_value]
+ forKey: ci_param_name];
+ }
+
+ ci_img = [fchain->ci_filter valueForKey: kCIOutputImageKey];
+ }
- [ctx->ci_ctx render: ci_img
+ [ctx->ci_ctx render: ci_img
#if !TARGET_OS_IPHONE
- toIOSurface: CVPixelBufferGetIOSurface(cvpx)
+ toIOSurface: CVPixelBufferGetIOSurface(cvpx)
#else
- toCVPixelBuffer: cvpx
+ toCVPixelBuffer: cvpx
#endif
- bounds: [ci_img extent]
- colorSpace: ctx->color_space];
- }
+ bounds: [ci_img extent]
+ colorSpace: ctx->color_space];
+ } /* autoreleasepool */
CopyInfoAndRelease(dst, src);
More information about the vlc-commits
mailing list