6 #ifndef __SHOW_VIDEO_H__ 7 #define __SHOW_VIDEO_H__ 23 paths(std::vector<std::string>()),
24 options(std::map<std::string, std::string>())
38 ShowVideoRequest(
const std::vector<std::string>& paths_,
const std::map<std::string, std::string>& options_):
54 std::map<std::string, std::string>
options;
60 template<>
struct codec_traits<
gpudb::ShowVideoRequest>
64 ::avro::encode(e, v.
paths);
70 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
72 const std::vector<size_t> fo = rd->fieldOrder();
74 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
79 ::avro::decode(d, v.
paths);
93 ::avro::decode(d, v.
paths);
114 jobIds(std::vector<int64_t>()),
115 paths(std::vector<std::string>()),
119 requests(std::vector<std::string>()),
120 status(std::vector<std::string>()),
121 ttls(std::vector<int64_t>()),
122 info(std::map<std::string, std::string>())
183 std::map<std::string, std::string>
info;
189 template<>
struct codec_traits<
gpudb::ShowVideoResponse>
195 ::avro::encode(e, v.
jobIds);
196 ::avro::encode(e, v.
paths);
201 ::avro::encode(e, v.
status);
202 ::avro::encode(e, v.
ttls);
203 ::avro::encode(e, v.
info);
208 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
210 const std::vector<size_t> fo = rd->fieldOrder();
212 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
225 ::avro::decode(d, v.
jobIds);
229 ::avro::decode(d, v.
paths);
249 ::avro::decode(d, v.
status);
253 ::avro::decode(d, v.
ttls);
257 ::avro::decode(d, v.
info);
269 ::avro::decode(d, v.
jobIds);
270 ::avro::decode(d, v.
paths);
275 ::avro::decode(d, v.
status);
276 ::avro::decode(d, v.
ttls);
277 ::avro::decode(d, v.
info);
283 #endif // __SHOW_VIDEO_H__ A set of results returned by GPUdb::showVideo.
std::vector< std::string > creationTimes
Creation time for each video as an ISO-8601 datetime.
std::vector< int64_t > renderedFrames
The number of frames rendered for each video.
std::vector< int64_t > renderedPercents
Percent completion of each video's rendering process (0-100)
std::vector< std::string > paths
The fully-qualified KiFS paths for the videos to show.
std::vector< int64_t > renderedBytes
The number of bytes emitted by the encoder for each video.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > requests
JSON-string reflecting each video's creation parameters.
ShowVideoResponse()
Constructs a ShowVideoResponse object with default parameters.
std::vector< int64_t > jobIds
The job id of the rendering process, for each video that is still being rendered.
std::vector< std::string > status
The status of the last rendered frame for each video.
std::vector< std::string > paths
KIFS path to each video.
A set of parameters for GPUdb::showVideo.
std::map< std::string, std::string > options
Optional parameters.
std::vector< int64_t > elapsedRenderTimeSeconds
The elapsed time spent rendering each video in seconds.
ShowVideoRequest()
Constructs a ShowVideoRequest object with default parameters.
std::vector< int64_t > ttls
The remaining TTL, in minutes, before the respective video expires (-1 if it will never expire).
ShowVideoRequest(const std::vector< std::string > &paths_, const std::map< std::string, std::string > &options_)
Constructs a ShowVideoRequest object with the specified parameters.