選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ZXCGImageLuminanceSource.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <CoreVideo/CoreVideo.h>
  17. #import "ZXLuminanceSource.h"
  18. @class ZXImage;
  19. @interface ZXCGImageLuminanceSource : ZXLuminanceSource
  20. + (CGImageRef)createImageFromBuffer:(CVImageBufferRef)buffer CF_RETURNS_RETAINED;
  21. + (CGImageRef)createImageFromBuffer:(CVImageBufferRef)buffer
  22. left:(size_t)left
  23. top:(size_t)top
  24. width:(size_t)width
  25. height:(size_t)height CF_RETURNS_RETAINED;
  26. - (id)initWithZXImage:(ZXImage *)image
  27. left:(size_t)left
  28. top:(size_t)top
  29. width:(size_t)width
  30. height:(size_t)height;
  31. - (id)initWithZXImage:(ZXImage *)image;
  32. - (id)initWithCGImage:(CGImageRef)image
  33. left:(size_t)left
  34. top:(size_t)top
  35. width:(size_t)width
  36. height:(size_t)height;
  37. - (id)initWithCGImage:(CGImageRef)image;
  38. - (id)initWithBuffer:(CVPixelBufferRef)buffer
  39. left:(size_t)left
  40. top:(size_t)top
  41. width:(size_t)width
  42. height:(size_t)height;
  43. - (id)initWithBuffer:(CVPixelBufferRef)buffer;
  44. - (CGImageRef)image;
  45. @end