Advertisement
Guest User

get_format

a guest
Jun 18th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. enum AVPixelFormat get_format(struct AVCodecContext *s, const enum AVPixelFormat * fmt)
  2. {
  3. int result = av_videotoolbox_default_init(s);
  4.  
  5. AVVideotoolboxContext * videoToolboxContext = av_videotoolbox_alloc_context();
  6. result = av_videotoolbox_default_init2(s, videoToolboxContext);
  7.  
  8. if (result != 0) {
  9. NSLog(@"Failed to init video toolbox");
  10. }
  11.  
  12. return *fmt;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement