Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 1 file). Show all
Unified · Split
| @@ -78,10 +78,9 @@ int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t ki · 77 unmodified lines | |||
| 78 | pSrcPic->iPicWidth = kiWidth; | 78 | pSrcPic->iPicWidth = kiWidth; |
| 79 | pSrcPic->iPicHeight = kiHeight; | 79 | pSrcPic->iPicHeight = kiHeight; |
| 80 | 80 | ||
| 81 | //currently encoder only supports videoFormatI420. | 81 | //currently encoder only supports videoFormatI420. |
| 82 | if((kiColorspace & (~videoFormatVFlip))!= videoFormatI420) | 82 | if((kiColorspace & (~videoFormatVFlip))!= videoFormatI420) |
| 83 | return 2; | 83 | return 2; |
| 84 | |||
| 85 | switch (kiColorspace & (~videoFormatVFlip)) { | 84 | switch (kiColorspace & (~videoFormatVFlip)) { |
| 86 | case videoFormatI420: | 85 | case videoFormatI420: |
| 87 | case videoFormatYV12: | 86 | case videoFormatYV12: |