Your photos and videos are stored using your GoogleAccount's storage space.
If you upload photos directly to Google Drive, they will count against your storage quota.If you upload in High quality using Google Photos or Backup and sync, it will not count against your storage quota.