diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-09 23:27:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-09 23:27:15 +0100 |
| commit | f6ee90107839e0d750d8678b67c9d6d1d596d739 (patch) | |
| tree | 27c500a6e1c0c56e3fa54dff2c2a401c6f06e114 /src/picture_asset.cc | |
| parent | c2c7b454d8ca179880942e3341dd8b17c084f5a3 (diff) | |
Add picture frame extraction.
Diffstat (limited to 'src/picture_asset.cc')
| -rw-r--r-- | src/picture_asset.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc index c59664d9..d7036a19 100644 --- a/src/picture_asset.cc +++ b/src/picture_asset.cc @@ -34,6 +34,7 @@ #include "picture_asset.h" #include "util.h" #include "exceptions.h" +#include "picture_frame.h" using namespace std; using namespace boost; @@ -303,3 +304,9 @@ PictureAsset::decompress_j2k (uint8_t* data, int64_t size) const opj_cio_close (cio); return image; } + +shared_ptr<const PictureFrame> +PictureAsset::get_frame (int n) const +{ + return shared_ptr<const PictureFrame> (new PictureFrame (mxf_path().string(), n)); +} |
