Exemplo n.º 1
0
static bool
IsProfileSupported(uint32_t aCameraId, int aQuality)
{
  MediaProfiles* profiles = GetMediaProfiles();
  return profiles->hasCamcorderProfile(static_cast<int>(aCameraId),
                                       static_cast<camcorder_quality>(aQuality));
}
Exemplo n.º 2
0
static bool
IsProfileSupported(uint32_t aCameraId, uint32_t aProfileIndex)
{
  MediaProfiles* profiles = GetMediaProfiles();
  camcorder_quality q = static_cast<camcorder_quality>(ProfileList[aProfileIndex].quality);
  return profiles->hasCamcorderProfile(static_cast<int>(aCameraId), q);
}