Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: media/cast/cast_defines.h

Issue 901833004: [Cast] Repurpose CastInitializationStatus for variable frame size support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cast/cast_defines.h
diff --git a/media/cast/cast_defines.h b/media/cast/cast_defines.h
index 661c09524924d085fb043676fefe80203a3dbed2..582729ef53fb036e2769ccdbb28839ed7c537142 100644
--- a/media/cast/cast_defines.h
+++ b/media/cast/cast_defines.h
@@ -36,18 +36,33 @@ const int kMaxUnackedFrames = 120;
const int64 kCastMessageUpdateIntervalMs = 33;
const int64 kNackRepeatIntervalMs = 30;
-enum CastInitializationStatus {
- STATUS_AUDIO_UNINITIALIZED,
- STATUS_VIDEO_UNINITIALIZED,
- STATUS_AUDIO_INITIALIZED,
- STATUS_VIDEO_INITIALIZED,
- STATUS_INVALID_CAST_ENVIRONMENT,
- STATUS_INVALID_CRYPTO_CONFIGURATION,
- STATUS_UNSUPPORTED_AUDIO_CODEC,
- STATUS_UNSUPPORTED_VIDEO_CODEC,
- STATUS_INVALID_AUDIO_CONFIGURATION,
- STATUS_INVALID_VIDEO_CONFIGURATION,
- STATUS_HW_VIDEO_ENCODER_NOT_SUPPORTED,
+// Success/in-progress/failure status codes bubbled up to clients via
+// StatusChangeCallbacks.
+enum OperationalStatus {
+ // Client should not send frames yet (sender), or should not expect to receive
+ // frames yet (receiver).
+ STATUS_UNINITIALIZED,
+
+ // Client may now send or receive frames.
+ STATUS_INITIALIZED,
+
+ // Codec is being re-initialized. Client may continue sending frames, but
+ // some may be ignored/dropped until a transition back to STATUS_INITIALIZED.
+ STATUS_CODEC_REINIT_PENDING,
+
+ // Session has halted due to invalid configuration.
+ STATUS_INVALID_CONFIGURATION,
+
+ // Session has halted due to an unsupported codec.
+ STATUS_UNSUPPORTED_CODEC,
+
+ // Session has halted due to a codec initialization failure. Note that this
+ // can be reported after STATUS_INITIALIZED/STATUS_CODEC_REINIT_PENDING if the
+ // codec was re-initialized during the session.
+ STATUS_CODEC_INIT_FAILED,
+
+ // Session has halted due to a codec runtime failure.
+ STATUS_CODEC_RUNTIME_ERROR,
};
enum DefaultSettings {

Powered by Google App Engine
This is Rietveld 408576698