Home | History | Annotate | Download | only in source

Lines Matching refs:mjpeg_decoder

17 #include "libyuv/mjpeg_decoder.h"
1630 MJpegDecoder mjpeg_decoder;
1631 bool ret = mjpeg_decoder.LoadFrame(sample, sample_size);
1632 if (ret && (mjpeg_decoder.GetWidth() != w ||
1633 mjpeg_decoder.GetHeight() != h)) {
1635 mjpeg_decoder.UnloadFrame();
1641 if (mjpeg_decoder.GetColorSpace() ==
1643 mjpeg_decoder.GetNumComponents() == 3 &&
1644 mjpeg_decoder.GetVertSampFactor(0) == 2 &&
1645 mjpeg_decoder.GetHorizSampFactor(0) == 2 &&
1646 mjpeg_decoder.GetVertSampFactor(1) == 1 &&
1647 mjpeg_decoder.GetHorizSampFactor(1) == 1 &&
1648 mjpeg_decoder.GetVertSampFactor(2) == 1 &&
1649 mjpeg_decoder.GetHorizSampFactor(2) == 1) {
1650 ret = mjpeg_decoder.DecodeToCallback(&JpegCopyI420, &bufs, dw, dh);
1652 } else if (mjpeg_decoder.GetColorSpace() ==
1654 mjpeg_decoder.GetNumComponents() == 3 &&
1655 mjpeg_decoder.GetVertSampFactor(0) == 1 &&
1656 mjpeg_decoder.GetHorizSampFactor(0) == 2 &&
1657 mjpeg_decoder.GetVertSampFactor(1) == 1 &&
1658 mjpeg_decoder.GetHorizSampFactor(1) == 1 &&
1659 mjpeg_decoder.GetVertSampFactor(2) == 1 &&
1660 mjpeg_decoder.GetHorizSampFactor(2) == 1) {
1661 ret = mjpeg_decoder.DecodeToCallback(&JpegI422ToI420, &bufs, dw, dh);
1663 } else if (mjpeg_decoder.GetColorSpace() ==
1665 mjpeg_decoder.GetNumComponents() == 3 &&
1666 mjpeg_decoder.GetVertSampFactor(0) == 1 &&
1667 mjpeg_decoder.GetHorizSampFactor(0) == 1 &&
1668 mjpeg_decoder.GetVertSampFactor(1) == 1 &&
1669 mjpeg_decoder.GetHorizSampFactor(1) == 1 &&
1670 mjpeg_decoder.GetVertSampFactor(2) == 1 &&
1671 mjpeg_decoder.GetHorizSampFactor(2) == 1) {
1672 ret = mjpeg_decoder.DecodeToCallback(&JpegI444ToI420, &bufs, dw, dh);
1674 } else if (mjpeg_decoder.GetColorSpace() ==
1676 mjpeg_decoder.GetNumComponents() == 3 &&
1677 mjpeg_decoder.GetVertSampFactor(0) == 1 &&
1678 mjpeg_decoder.GetHorizSampFactor(0) == 4 &&
1679 mjpeg_decoder.GetVertSampFactor(1) == 1 &&
1680 mjpeg_decoder.GetHorizSampFactor(1) == 1 &&
1681 mjpeg_decoder.GetVertSampFactor(2) == 1 &&
1682 mjpeg_decoder.GetHorizSampFactor(2) == 1) {
1683 ret = mjpeg_decoder.DecodeToCallback(&JpegI411ToI420, &bufs, dw, dh);
1685 } else if (mjpeg_decoder.GetColorSpace() ==
1687 mjpeg_decoder.GetNumComponents() == 1 &&
1688 mjpeg_decoder.GetVertSampFactor(0) == 1 &&
1689 mjpeg_decoder.GetHorizSampFactor(0) == 1) {
1690 ret = mjpeg_decoder.DecodeToCallback(&JpegI400ToI420, &bufs, dw, dh);
1695 mjpeg_decoder.UnloadFrame();