propresenter7-php-lib/generated/Rv/Data/Recording/Stream/Encoder.php
Thorsten Buss 4d10db4f17 Initial public release
PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7
files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes,
and the global library files (Macros, Labels, Groups, ClearGroups, CCLI,
Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar,
KeyMappings, CommunicationDevices).

Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy
(v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/,
binary-format specs, and a synthetic 369-test PHPUnit suite covering
RTF extraction, translation slides, ZIP64 repair, round-trip fidelity,
and end-to-end generation.
2026-05-03 22:21:01 +02:00

222 lines
5.2 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: recording.proto
namespace Rv\Data\Recording\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.Recording.Stream.Encoder</code>
*/
class Encoder extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.Recording.Stream.Codec codec = 1;</code>
*/
protected $codec = 0;
/**
* Generated from protobuf field <code>uint32 video_width = 2;</code>
*/
protected $video_width = 0;
/**
* Generated from protobuf field <code>uint32 video_height = 3;</code>
*/
protected $video_height = 0;
/**
* Generated from protobuf field <code>bool is_interlaced = 4;</code>
*/
protected $is_interlaced = false;
/**
* Generated from protobuf field <code>.rv.data.Recording.Stream.FrameRate frameRate = 5;</code>
*/
protected $frameRate = 0;
/**
* Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
*/
protected $video_bitrate = 0;
/**
* Generated from protobuf field <code>uint32 audio_bitrate = 7;</code>
*/
protected $audio_bitrate = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $codec
* @type int $video_width
* @type int $video_height
* @type bool $is_interlaced
* @type int $frameRate
* @type int $video_bitrate
* @type int $audio_bitrate
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Recording::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.Recording.Stream.Codec codec = 1;</code>
* @return int
*/
public function getCodec()
{
return $this->codec;
}
/**
* Generated from protobuf field <code>.rv.data.Recording.Stream.Codec codec = 1;</code>
* @param int $var
* @return $this
*/
public function setCodec($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Recording\Stream\Codec::class);
$this->codec = $var;
return $this;
}
/**
* Generated from protobuf field <code>uint32 video_width = 2;</code>
* @return int
*/
public function getVideoWidth()
{
return $this->video_width;
}
/**
* Generated from protobuf field <code>uint32 video_width = 2;</code>
* @param int $var
* @return $this
*/
public function setVideoWidth($var)
{
GPBUtil::checkUint32($var);
$this->video_width = $var;
return $this;
}
/**
* Generated from protobuf field <code>uint32 video_height = 3;</code>
* @return int
*/
public function getVideoHeight()
{
return $this->video_height;
}
/**
* Generated from protobuf field <code>uint32 video_height = 3;</code>
* @param int $var
* @return $this
*/
public function setVideoHeight($var)
{
GPBUtil::checkUint32($var);
$this->video_height = $var;
return $this;
}
/**
* Generated from protobuf field <code>bool is_interlaced = 4;</code>
* @return bool
*/
public function getIsInterlaced()
{
return $this->is_interlaced;
}
/**
* Generated from protobuf field <code>bool is_interlaced = 4;</code>
* @param bool $var
* @return $this
*/
public function setIsInterlaced($var)
{
GPBUtil::checkBool($var);
$this->is_interlaced = $var;
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Recording.Stream.FrameRate frameRate = 5;</code>
* @return int
*/
public function getFrameRate()
{
return $this->frameRate;
}
/**
* Generated from protobuf field <code>.rv.data.Recording.Stream.FrameRate frameRate = 5;</code>
* @param int $var
* @return $this
*/
public function setFrameRate($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Recording\Stream\FrameRate::class);
$this->frameRate = $var;
return $this;
}
/**
* Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
* @return int
*/
public function getVideoBitrate()
{
return $this->video_bitrate;
}
/**
* Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
* @param int $var
* @return $this
*/
public function setVideoBitrate($var)
{
GPBUtil::checkUint32($var);
$this->video_bitrate = $var;
return $this;
}
/**
* Generated from protobuf field <code>uint32 audio_bitrate = 7;</code>
* @return int
*/
public function getAudioBitrate()
{
return $this->audio_bitrate;
}
/**
* Generated from protobuf field <code>uint32 audio_bitrate = 7;</code>
* @param int $var
* @return $this
*/
public function setAudioBitrate($var)
{
GPBUtil::checkUint32($var);
$this->audio_bitrate = $var;
return $this;
}
}