// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

enum TXVideoRenderMode {
  VIDEO_RENDER_MODE_FULL_FILL_SCREEN /* 0 */,
  VIDEO_RENDER_MODE_ADJUST_RESOLUTION /* 1 */
}

extension TXVideoRenderModeToX on TXVideoRenderMode {
  int toValue() {
    switch (this) {
      case TXVideoRenderMode.VIDEO_RENDER_MODE_FULL_FILL_SCREEN: return 0;
      case TXVideoRenderMode.VIDEO_RENDER_MODE_ADJUST_RESOLUTION: return 1;
      default: return 0;
    }
  }
}

extension TXVideoRenderModeFromX on int {
  TXVideoRenderMode toTXVideoRenderMode() {
    switch (this) {
      case 0: return TXVideoRenderMode.VIDEO_RENDER_MODE_FULL_FILL_SCREEN;
      case 1: return TXVideoRenderMode.VIDEO_RENDER_MODE_ADJUST_RESOLUTION;
      default: return TXVideoRenderMode.values[this + 0];
    }
  }
}