code: public final Transcoding transcoding(int flags) {
          Transcoding tc = new Transcoding(this, flags);
  
          if (hasStateInit()) {
              stateInit(tc.state);
          }
  
          return tc;
      }
docs: /* rb_transcoding_open_by_transcoder