Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. /* Check if the caps change is a real format change or if only irrelevant
  2. * parts of the caps have changed or nothing at all.
  3. */
  4. is_format_change |= port_def.format.video.nFrameWidth != info->width;
  5. is_format_change |= port_def.format.video.nFrameHeight != info->height;
  6. is_format_change |= (port_def.format.video.xFramerate == 0
  7. && info->fps_n != 0)
  8. || (port_def.format.video.xFramerate !=
  9. (info->fps_n << 16) / (info->fps_d));
  10. is_format_change |= (self->codec_data != state->codec_data);
  11.  
  12. GST_DEBUG_OBJECT(self, "is_format_change: %s, port_def.format.video.xFramerate: %zu, "
  13. "info->fps_n: %zu, info->fps_n << 16: %zu, info->fps_d: %zu, (info->fps_n << 16) / (info->fps_d): %zu",
  14. is_format_change ? "true" : "false",
  15. (long unsigned int)(port_def.format.video.xFramerate),
  16. (long unsigned int)(info->fps_n),
  17. (long unsigned int)(info->fps_n << 16),
  18. (long unsigned int)(info->fps_d),
  19. (long unsigned int)((info->fps_n << 16) / (info->fps_d)) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement