diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-12 23:45:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-12 23:45:44 +0000 |
| commit | 5161626c3c28ba528511a8b211286a5e81a0f02a (patch) | |
| tree | 2690e09169d7d0e36167c842eb8260ae7a2cfe04 /src/lib/tiff_decoder.cc | |
| parent | c8b0b0f61a1188b3ce8010a65e4c617a0e66eaa1 (diff) | |
Untested; extend CompactImage to return a AVPicture.
Diffstat (limited to 'src/lib/tiff_decoder.cc')
| -rw-r--r-- | src/lib/tiff_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tiff_decoder.cc b/src/lib/tiff_decoder.cc index c92e080d7..7e9bda139 100644 --- a/src/lib/tiff_decoder.cc +++ b/src/lib/tiff_decoder.cc @@ -147,7 +147,7 @@ TIFFDecoder::pass () throw DecodeError ("could not read TIFF data"); } - RGBFrameImage image (Size (width, height)); + CompactImage image (PIX_FMT_RGB24, Size (width, height)); uint8_t* p = image.data()[0]; for (uint32_t y = 0; y < height; ++y) { @@ -162,7 +162,7 @@ TIFFDecoder::pass () _TIFFfree (raster); TIFFClose (t); - process_video (image.frame ()); + process_video ((AVFrame const *) image.picture ()); ++_iter; return false; |
