Support new DFS_DATA_INPUT_FORMAT_COUPLED_TB
authorTae-Young Chung <ty83.chung@samsung.com>
Mon, 19 Dec 2022 05:21:22 +0000 (14:21 +0900)
committerKwanghoon Son <k.son@samsung.com>
Mon, 13 Feb 2023 02:31:48 +0000 (11:31 +0900)
[Issue type] new feature

This commit is to support new feature
https://review.tizen.org/gerrit/#/c/platform/core/multimedia/dfs-adaptation/+/285723/

Change-Id: Iaeb2faa55cbdebac5bfef5272fbfa132384356f1
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
mv_3d/3d/src/Mv3d.cpp

index 68a68fb..e8a2a4b 100644 (file)
@@ -235,7 +235,8 @@ void Mv3d::GetDfsDataFromSources(mv_source_h baseSource, mv_source_h extraSource
        input.width = width;
        input.height = height;
        input.stride = stride;
-       input.format = DFS_DATA_INPUT_FORMAT_COUPLED_SBS;
+       input.format = (mWidth == width && mHeight * 2 == height) ? DFS_DATA_INPUT_FORMAT_COUPLED_TB :
+                                                                                                                               DFS_DATA_INPUT_FORMAT_COUPLED_SBS;
 
        if (extraSource) {
                extraBuffer = nullptr;