forge
Explore
Log in

Don't you dare go Hollow

U21: remove make_decoder from ec-dvbsub, ec-pgs, ec-dvdsub; no edith or yumush caller (edith maps codecs to the decoder types directly)

Browse files at this commit

1984e2f590c26be42d88e6f8c8754add301edbc6Ahmet Kaan GümüşParent: d2b796e
crates/ec-dvbsub/src/lib.rsmodified+0 -4
@@ -610,10 +610,6 @@ impl Decoder for DvbSubDecoder {
610 }610 }
611 }611 }
612 612
613-/// A DVB subtitle decoder as the family's registry hands one out.
614-pub fn make_decoder(_params: &CodecParameters) -> Result<Box<dyn Decoder>> {
615- Ok(Box::new(DvbSubDecoder::new()))
616-}
617 613
618 #[cfg(test)]614 #[cfg(test)]
619 mod tests {615 mod tests {
crates/ec-dvdsub/src/lib.rsmodified+0 -4
@@ -542,10 +542,6 @@ impl Decoder for DvdSubDecoder {
542 }542 }
543 }543 }
544 544
545-/// A DVD subpicture decoder as the family's registry hands one out.
546-pub fn make_decoder(params: &CodecParameters) -> Result<Box<dyn Decoder>> {
547- Ok(Box::new(DvdSubDecoder::new(params.extradata.as_deref())))
548-}
549 545
550 #[cfg(test)]546 #[cfg(test)]
551 mod tests {547 mod tests {
crates/ec-pgs/src/lib.rsmodified+0 -4
@@ -519,10 +519,6 @@ impl Decoder for PgsDecoder {
519 }519 }
520 }520 }
521 521
522-/// A PGS decoder as the family's registry hands one out.
523-pub fn make_decoder(_params: &CodecParameters) -> Result<Box<dyn Decoder>> {
524- Ok(Box::new(PgsDecoder::new()))
525-}
526 522
527 /// One palette entry: BT.601 Y'CbCr with straight alpha, the way a disc writes523 /// One palette entry: BT.601 Y'CbCr with straight alpha, the way a disc writes
528 /// it, into RGBA.524 /// it, into RGBA.