Changeset 75392 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Nov 12, 2018 9:48:37 AM (6 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/Recording.cpp
r75391 r75392 1 1 /* $Id$ */ 2 2 /** @file 3 * Recording (with optional audio recording)code.3 * Recording context code. 4 4 * 5 5 * This code employs a separate encoding thread per recording context … … 175 175 * 176 176 * @returns IPRT status code. 177 * @param a_Settings Capturesettings to use for context creation.177 * @param a_Settings Recording settings to use for context creation. 178 178 */ 179 179 int RecordingContext::createInternal(const settings::RecordingSettings &a_Settings) … … 223 223 } 224 224 225 /** 226 * Starts a recording context by creating its worker thread. 227 * 228 * @returns IPRT status code. 229 */ 225 230 int RecordingContext::startInternal(void) 226 231 { … … 247 252 } 248 253 254 /** 255 * Stops a recording context by telling the worker thread to stop and finalizing its operation. 256 * 257 * @returns IPRT status code. 258 */ 249 259 int RecordingContext::stopInternal(void) 250 260 { … … 275 285 276 286 /** 277 * Destroys a recording context .287 * Destroys a recording context, internal version. 278 288 */ 279 289 int RecordingContext::destroyInternal(void) … … 324 334 } 325 335 336 /** 337 * Returns a recording context's current settings. 338 * 339 * @returns The recording context's current settings. 340 */ 326 341 const settings::RecordingSettings &RecordingContext::GetConfig(void) const 327 342 { … … 329 344 } 330 345 346 /** 347 * Returns the recording stream for a specific screen. 348 * 349 * @returns Recording stream for a specific screen, or NULL if not found. 350 * @param uScreen Screen ID to retrieve recording stream for. 351 */ 331 352 RecordingStream *RecordingContext::getStreamInternal(unsigned uScreen) const 332 353 { … … 356 377 } 357 378 379 /** 380 * Returns the number of configured recording streams for a recording context. 381 * 382 * @returns Number of configured recording streams. 383 */ 358 384 size_t RecordingContext::GetStreamCount(void) const 359 385 { … … 361 387 } 362 388 389 /** 390 * Creates a new recording context. 391 * 392 * @returns IPRT status code. 393 * @param a_Settings Recording settings to use for creation. 394 * 395 */ 363 396 int RecordingContext::Create(const settings::RecordingSettings &a_Settings) 364 397 { … … 366 399 } 367 400 401 /** 402 * Destroys a recording context. 403 */ 368 404 int RecordingContext::Destroy(void) 369 405 { … … 371 407 } 372 408 409 /** 410 * Starts a recording context. 411 * 412 * @returns IPRT status code. 413 */ 373 414 int RecordingContext::Start(void) 374 415 { … … 376 417 } 377 418 419 /** 420 * Stops a recording context. 421 */ 378 422 int RecordingContext::Stop(void) 379 423 { … … 381 425 } 382 426 427 /** 428 * Returns if a specific recoding feature is enabled for at least one of the attached 429 * recording streams or not. 430 * 431 * @returns \c true if at least one recording stream has this feature enabled, or \c false if 432 * no recording stream has this feature enabled. 433 * @param enmFeature Recording feature to check for. 434 */ 383 435 bool RecordingContext::IsFeatureEnabled(RecordingFeature_T enmFeature) const 384 436 { … … 554 606 */ 555 607 int RecordingContext::SendVideoFrame(uint32_t uScreen, uint32_t x, uint32_t y, 556 uint32_t uPixelFormat, uint32_t uBPP, uint32_t uBytesPerLine,557 uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData,558 uint64_t uTimeStampMs)608 uint32_t uPixelFormat, uint32_t uBPP, uint32_t uBytesPerLine, 609 uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, 610 uint64_t uTimeStampMs) 559 611 { 560 612 AssertReturn(uSrcWidth, VERR_INVALID_PARAMETER); -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r75391 r75392 182 182 } 183 183 184 /** 185 * Parses an options string to configure advanced / hidden / experimental features of a recording stream. 186 * Unknown values will be skipped. 187 * 188 * @returns IPRT status code. 189 * @param strOptions Options string to parse. 190 */ 184 191 int RecordingStream::parseOptionsString(const com::Utf8Str &strOptions) 185 192 { … … 245 252 } 246 253 254 /** 255 * Returns the recording stream's used configuration. 256 * 257 * @returns The recording stream's used configuration. 258 */ 247 259 const settings::RecordingScreenSettings &RecordingStream::GetConfig(void) const 248 260 { … … 251 263 252 264 /** 253 * Checks if a specified limit for recordinghas been reached.265 * Checks if a specified limit for a recording stream has been reached. 254 266 * 255 267 * @returns true if any limit has been reached. … … 289 301 } 290 302 303 /** 304 * Returns whether a recording stream is ready (e.g. enabled and active) or not. 305 * 306 * @returns \c true if ready, \c false if not. 307 */ 291 308 bool RecordingStream::IsReady(void) const 292 309 { … … 424 441 } 425 442 443 /** 444 * Sends a raw (e.g. not yet encoded) video frame to the recording stream. 445 * 446 * @returns IPRT status code. 447 * @param x Upper left (X) coordinate where the video frame starts. 448 * @param y Upper left (Y) coordinate where the video frame starts. 449 * @param uPixelFormat Pixel format of the video frame. 450 * @param uBPP Bits per pixel (BPP) of the video frame. 451 * @param uBytesPerLine Bytes per line of the video frame. 452 * @param uSrcWidth Width (in pixels) of the video frame. 453 * @param uSrcHeight Height (in pixels) of the video frame. 454 * @param puSrcData Actual pixel data of the video frame. 455 * @param uTimeStampMs Timestamp (in ms) as PTS. 456 */ 426 457 int RecordingStream::SendVideoFrame(uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBPP, uint32_t uBytesPerLine, 427 uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, uint64_t uTimeStampMs)458 uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, uint64_t uTimeStampMs) 428 459 { 429 460 lock(); … … 880 911 } 881 912 913 /** 914 * Uninitializes a recording stream, internal version. 915 * 916 * @returns IPRT status code. 917 */ 882 918 int RecordingStream::uninitInternal(void) 883 919 { … … 905 941 906 942 /** 907 * Uninitializes video recording for a certainrecording stream.943 * Uninitializes video recording for a recording stream. 908 944 * 909 945 * @returns IPRT status code. … … 921 957 #ifdef VBOX_WITH_LIBVPX 922 958 /** 923 * Uninitializes the VPX codec for a certainrecording stream.959 * Uninitializes the VPX codec for a recording stream. 924 960 * 925 961 * @returns IPRT status code. … … 939 975 940 976 /** 941 * Initializes the video recording for a certainrecording stream.977 * Initializes the video recording for a recording stream. 942 978 * 943 979 * @returns IPRT status code. … … 971 1007 #ifdef VBOX_WITH_LIBVPX 972 1008 /** 973 * Initializes the VPX codec for a certainrecording stream.1009 * Initializes the VPX codec for a recording stream. 974 1010 * 975 1011 * @returns IPRT status code. … … 1027 1063 #endif 1028 1064 1065 /** 1066 * Initializes the audio part of a recording stream, 1067 * 1068 * @returns IPRT status code. 1069 */ 1029 1070 int RecordingStream::initAudio(void) 1030 1071 {
Note:
See TracChangeset
for help on using the changeset viewer.