/PhotoLibrary/PLVideoView.h

http://github.com/kennytm/iphone-private-frameworks · C Header · 192 lines · 152 code · 4 blank · 36 comment · 0 complexity · 19daa387c3842978499835070038ed77 MD5 · raw file

  1. /**
  2. * This header is generated by class-dump-z 0.2-0.
  3. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
  4. *
  5. * Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
  6. */
  7. #import "PhotoLibrary-Structs.h"
  8. #import <UIKit/UIView.h>
  9. #import "PLItemView.h"
  10. #import "UIMovieScrubberDelegate.h"
  11. #import "UIMovieScrubberDataSource.h"
  12. @class UIMovieScrubber, NSTimer, NSMutableDictionary, MLPhotoBakedThumbnails, AVRemaker, MLPhoto, PLVideoEditingOverlayView, PLImageTile, NSArray, PLMoviePlayerController, NSString, UIImageView, NSDictionary, UIButton;
  13. @protocol PLVideoViewDelegate;
  14. @interface PLVideoView : UIView <UIMovieScrubberDelegate, UIMovieScrubberDataSource, PLItemView> {
  15. MLPhoto* _videoCameraImage;
  16. PLImageTile* _imageTile;
  17. UIImageView* _posterFrameView;
  18. UIButton* _videoOverlayPlayButton;
  19. PLVideoEditingOverlayView* _trimMessageView;
  20. unsigned _scaleMode;
  21. UIImageView* _scrubberBackgroundView;
  22. UIMovieScrubber* _scrubber;
  23. NSTimer* _scrubberUpdateTimer;
  24. NSDictionary* _thumbnailOptionsDict;
  25. NSMutableDictionary* _cachedThumbnails;
  26. MLPhotoBakedThumbnails* _bakedLandscapeThumbnails;
  27. MLPhotoBakedThumbnails* _bakedPortraitThumbnails;
  28. AVRemaker* _remaker;
  29. int _timeOptions;
  30. NSString* _trimmedPath;
  31. NSTimer* _trimProgressTimer;
  32. XXStruct_z8YKPA* _trimProgressStack;
  33. float _progress;
  34. int _interfaceOrientation;
  35. PLMoviePlayerController* _moviePlayer;
  36. int _orientationWhenLastDisplayed;
  37. id<PLVideoViewDelegate> _delegate;
  38. double _maximumTrimLength;
  39. double _lastScrubbedValue;
  40. double _lastActualValue;
  41. double _duration;
  42. NSMutableDictionary* _thumbnailRequests;
  43. unsigned _currentThumbnailRequestID;
  44. unsigned _previewFrameRequestID;
  45. NSArray* _portraitSummaryThumbnailTimestamps;
  46. NSArray* _landscapeSummaryThumbnailTimestamps;
  47. unsigned _didLayout : 1;
  48. unsigned _wasPlayingBeforeScrub : 1;
  49. unsigned _playFromBeginning : 1;
  50. unsigned _reloadScrubberThumbnails : 1;
  51. unsigned _playing : 1;
  52. unsigned _editing : 1;
  53. unsigned _canEdit : 1;
  54. unsigned _disableEditAfterTrim : 1;
  55. unsigned _scrubbing : 1;
  56. unsigned _scrubbingToRight : 1;
  57. unsigned _showsPosterFrame : 1;
  58. unsigned _deleteOriginalFile : 1;
  59. unsigned _passthroughTrimming : 1;
  60. unsigned _preparingMoviePlayer : 1;
  61. unsigned _didPrepareMoviePlayer : 1;
  62. unsigned _canShowOverlay : 1;
  63. unsigned _showingOverlay : 1;
  64. unsigned _showingScrubber : 1;
  65. unsigned _showScrubberWhenMovieIsReady : 1;
  66. unsigned _playbackDidBegin : 1;
  67. unsigned _playbackWillBegin : 1;
  68. unsigned _didDisappear : 1;
  69. unsigned _loadScrubberThumbnails : 1;
  70. unsigned _loadMediaImmediately : 1;
  71. unsigned _displayingToTVOut : 1;
  72. unsigned _videoIsLandscape : 1;
  73. unsigned _canCreateMetadata : 1;
  74. unsigned _createPreviewPosterFrame : 1;
  75. }
  76. @property(readonly, assign, nonatomic) int interfaceOrientation;
  77. @property(readonly, assign, nonatomic) UIView* previewImageView;
  78. @property(readonly, assign, nonatomic) double endTime;
  79. @property(readonly, assign, nonatomic) double startTime;
  80. @property(assign, nonatomic, getter=isEditing) BOOL editing;
  81. @property(readonly, assign, nonatomic) double duration;
  82. @property(assign, nonatomic) BOOL isDisplayingToTVOut;
  83. @property(assign, nonatomic) BOOL canEdit;
  84. @property(assign, nonatomic) BOOL loadMediaImmediately;
  85. @property(assign, nonatomic) BOOL showsPosterFrame;
  86. @property(readonly, assign, nonatomic) MLPhoto* videoCameraImage;
  87. @property(assign, nonatomic) PLImageTile* imageTile;
  88. @property(assign, nonatomic) id<PLVideoViewDelegate> delegate;
  89. -(id)initWithFrame:(CGRect)frame videoCameraImage:(id)image orientation:(int)orientation;
  90. // inherited: -(void)dealloc;
  91. // in a protocol: -(id)description;
  92. // inherited: -(void)touchesBegan:(id)began withEvent:(id)event;
  93. // inherited: -(void)touchesMoved:(id)moved withEvent:(id)event;
  94. // inherited: -(void)touchesEnded:(id)ended withEvent:(id)event;
  95. // inherited: -(void)mouseDown:(GSEventRef)down;
  96. // inherited: -(void)mouseUp:(GSEventRef)up;
  97. // inherited: -(void)mouseDragged:(GSEventRef)dragged;
  98. -(BOOL)_alwaysHandleScrollerMouseEvent;
  99. -(id)hitTest:(CGPoint)test withEvent:(id)event;
  100. -(float)_scrubberYOffsetForOrientation:(int)orientation;
  101. -(void)_createScrubber:(BOOL)scrubber;
  102. -(void)_showVideoOverlay;
  103. -(void)_videoOverlayFadeOutDidFinish;
  104. -(void)_hideVideoOverlay:(BOOL)overlay;
  105. -(void)_hideTrimMessageView:(BOOL)view;
  106. -(void)_updateScrubberVisibility:(BOOL)visibility;
  107. -(void)_updatePosterContentMode;
  108. -(void)_setScaleModeForSize:(CGSize)size;
  109. -(BOOL)_canCreateMetadata;
  110. -(void)layoutSubviews;
  111. -(void)_fileGroupContentsDidChange:(id)_fileGroupContents;
  112. -(void)_itemPlaybackDidEnd:(id)_itemPlayback;
  113. -(void)_reloadScrubberThumbnails;
  114. -(BOOL)moviePlayerExitRequest:(id)request exitReason:(int)reason;
  115. -(void)moviePlayerPlaybackStateDidChange:(id)moviePlayerPlaybackState;
  116. -(void)_requestPreviewPosterFrameForVideoSize:(CGSize)videoSize;
  117. -(void)_savePreviewPosterFrameImage:(CGImageRef)image;
  118. -(void)moviePlayerReadyToBeginPlayback:(id)beginPlayback;
  119. -(void)moviePlayerDelegateDidChange:(id)moviePlayerDelegate;
  120. -(BOOL)moviePlayerHeadsetPlayPausePressed:(id)pressed;
  121. // in a protocol: -(double)movieScrubberDuration:(id)duration;
  122. // in a protocol: -(id)movieScrubber:(id)scrubber evenlySpacedTimestamps:(int)timestamps startingAt:(id)at endingAt:(id)at4;
  123. // in a protocol: -(id)movieScrubber:(id)scrubber timestampsStartingAt:(id)at endingAt:(id)at3 maxCount:(int)count;
  124. -(void)_saveCachedThumbnailsIfNecessary;
  125. -(void)_thumbnailImageWasGenerated:(id)generated;
  126. -(void)_thumbnailImageGenerationFailed:(id)failed;
  127. // in a protocol: -(void)movieScrubber:(id)scrubber requestThumbnailImageForTimestamp:(id)timestamp;
  128. -(id)_loadThumbnailsIntoDictionary:(id)dictionary isLandscape:(BOOL)landscape aspectRatio:(float)ratio;
  129. // in a protocol: -(float)movieScrubberThumbnailAspectRatio:(id)ratio;
  130. -(void)_removeScrubberUpdateTimer;
  131. -(void)_resetScrubberUpdateTimer;
  132. // in a protocol: -(void)movieScrubberDidBeginScrubbing:(id)movieScrubber withHandle:(int)handle;
  133. // in a protocol: -(void)movieScrubberDidEndScrubbing:(id)movieScrubber withHandle:(int)handle;
  134. -(void)_didScrubToValue:(double)value withHandle:(int)handle;
  135. // in a protocol: -(void)movieScrubber:(id)scrubber valueDidChange:(double)value;
  136. // in a protocol: -(void)movieScrubber:(id)scrubber editingStartValueDidChange:(double)editingStartValue;
  137. // in a protocol: -(void)movieScrubber:(id)scrubber editingEndValueDidChange:(double)editingEndValue;
  138. // in a protocol: -(void)movieScrubberWillBeginRequestingThumbnails:(id)movieScrubber;
  139. // in a protocol: -(void)movieScrubberDidFinishRequestingThumbnails:(id)movieScrubber;
  140. // in a protocol: -(void)movieScrubberDidBeginEditing:(id)movieScrubber;
  141. -(void)setMaximumTrimLength:(double)length;
  142. -(void)showTrimMessage:(id)message withBottomY:(float)bottomY;
  143. -(void)hideTrimMessage;
  144. -(void)setEditing:(BOOL)editing animated:(BOOL)animated;
  145. -(void)_reset;
  146. // in a protocol: -(void)movieScrubberEditingAnimationFinished:(id)finished;
  147. -(void)_scrubberAnimationFinished;
  148. -(void)_thumbnailsWereRegenerated:(id)regenerated error:(id)error contextInfo:(void*)info;
  149. -(void)_removeTrimProgressTimer;
  150. -(void)_resetTrimProgressTimer;
  151. -(void)_updateTrimProgress;
  152. -(void)setProgress:(id)progress;
  153. -(void)_remakerDidFinish:(id)_remaker;
  154. -(void)trimUsingMode:(int)mode passthrough:(BOOL)passthrough saveACopy:(BOOL)copy;
  155. -(void)cancelTrim;
  156. -(id)createPreviewImageData:(id*)data fullScreenImage:(id*)image;
  157. -(void)toggleScaleMode:(float)mode;
  158. -(void)handleDoubleTap;
  159. -(BOOL)isPlaying;
  160. -(void)_willBeginPlayback;
  161. -(void)playButtonClicked:(id)clicked;
  162. -(void)play;
  163. -(void)pause;
  164. -(void)stop;
  165. -(void)hideScrubberBackgroundViewWithDuration:(float)duration;
  166. -(void)showScrubberBackgroundViewWithDuration:(float)duration;
  167. -(void)viewWillAppearWithoutAnimation;
  168. -(void)_viewDidAppear:(BOOL)_view;
  169. -(void)viewDidAppear;
  170. -(void)viewDidDisappear;
  171. -(void)setFrame:(CGRect)frame;
  172. -(void)willMoveToSuperview:(id)superview;
  173. -(BOOL)_canEditDuration:(double)duration;
  174. -(BOOL)shouldShowCopyCalloutAtPoint:(CGPoint)point;
  175. -(id)_moviePlayer;
  176. -(void)_prepareMoviePlayer;
  177. -(void)_playbackFinished;
  178. -(void)_updateScrubberValue;
  179. -(void)willRotateToInterfaceOrientation:(int)interfaceOrientation fromInterfaceOrientation:(int)interfaceOrientation2 duration:(double)duration;
  180. // in a protocol: -(void)updateZoomScales;
  181. // in a protocol: -(BOOL)isZoomedOut;
  182. // in a protocol: -(float)defaultZoomScale;
  183. // in a protocol: -(float)_zoomScale;
  184. // in a protocol: -(void)_setZoomScale:(float)scale duration:(double)duration;
  185. // in a protocol: -(float)minRotatedScale;
  186. // in a protocol: -(int)orientationWhenLastDisplayed;
  187. // in a protocol: -(void)setOrientationWhenLastDisplayed:(int)displayed;
  188. @end