60 lines
1.6 KiB
PHP
60 lines
1.6 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: timedPlayback.proto
|
|
|
|
namespace Rv\Data\TimedPlayback\Timing\SMPTETimecode;
|
|
|
|
use UnexpectedValueException;
|
|
|
|
/**
|
|
* Protobuf type <code>rv.data.TimedPlayback.Timing.SMPTETimecode.Format</code>
|
|
*/
|
|
class Format
|
|
{
|
|
/**
|
|
* Generated from protobuf enum <code>FORMAT_24_FPS = 0;</code>
|
|
*/
|
|
const FORMAT_24_FPS = 0;
|
|
/**
|
|
* Generated from protobuf enum <code>FORMAT_25_FPS = 1;</code>
|
|
*/
|
|
const FORMAT_25_FPS = 1;
|
|
/**
|
|
* Generated from protobuf enum <code>FORMAT_29_97_FPS = 2;</code>
|
|
*/
|
|
const FORMAT_29_97_FPS = 2;
|
|
/**
|
|
* Generated from protobuf enum <code>FORMAT_30_FPS = 3;</code>
|
|
*/
|
|
const FORMAT_30_FPS = 3;
|
|
|
|
private static $valueToName = [
|
|
self::FORMAT_24_FPS => 'FORMAT_24_FPS',
|
|
self::FORMAT_25_FPS => 'FORMAT_25_FPS',
|
|
self::FORMAT_29_97_FPS => 'FORMAT_29_97_FPS',
|
|
self::FORMAT_30_FPS => 'FORMAT_30_FPS',
|
|
];
|
|
|
|
public static function name($value)
|
|
{
|
|
if (!isset(self::$valueToName[$value])) {
|
|
throw new UnexpectedValueException(sprintf(
|
|
'Enum %s has no name defined for value %s', __CLASS__, $value));
|
|
}
|
|
return self::$valueToName[$value];
|
|
}
|
|
|
|
|
|
public static function value($name)
|
|
{
|
|
$const = __CLASS__ . '::' . strtoupper($name);
|
|
if (!defined($const)) {
|
|
throw new UnexpectedValueException(sprintf(
|
|
'Enum %s has no value defined for name %s', __CLASS__, $name));
|
|
}
|
|
return constant($const);
|
|
}
|
|
}
|
|
|