diff options
author | Hubert Figuière <hub@figuiere.net> | 2018-08-24 23:04:41 -0400 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2018-08-24 23:05:26 -0400 |
commit | 8ef4b4c74b874b8e9a7d69d7e08ebdf76ee26550 (patch) | |
tree | ce2b2d85b798f1c1e74c524d5d366362ed592b59 /tools | |
parent | 5cdacc3de4385179478efc4777820e26569de2f3 (diff) |
rawdata: rename roi to active area
- Update testsuite
- Update API
- DNG was using the defaultCrop instead
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ordiag.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/ordiag.cpp b/tools/ordiag.cpp index 8d06874..c9af947 100644 --- a/tools/ordiag.cpp +++ b/tools/ordiag.cpp @@ -311,10 +311,16 @@ public: or_rawdata_dimensions(rd, &x, &y); m_out << boost::format("\t\tDimensions: width = %1% height = %2%\n") % x % y; - uint32_t roi_x, roi_y, roi_width, roi_height; - or_rawdata_get_roi(rd, &roi_x, &roi_y, &roi_width, &roi_height); - m_out << boost::format("\t\tROI (x,y,w,h): %1% %2% %3% %4%\n") - % roi_x % roi_y % roi_width % roi_height; + + // Active Area + uint32_t aa_x, aa_y, aa_width, aa_height; + or_rawdata_get_active_area(rd, &aa_x, &aa_y, + &aa_width, &aa_height); + m_out << + boost::format("\t\tActive Area (x,y,w,h): %1% %2% %3% %4%\n") + % aa_x % aa_y % aa_width % aa_height; + + // CFA ORCfaPatternRef pattern = or_rawdata_get_cfa_pattern(rd); ::or_cfa_pattern patternType = pattern ? or_cfapattern_get_type(pattern) |