History

add video format support verification

ruil2 committed 12 years ago

Commit 23df8a91 parent 823b3b61 file · +4 −0Browse files

Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder.cpp+4−0
@@ -78,6 +78,10 @@ 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.
82 if((kiColorspace & (~videoFormatVFlip))!= videoFormatI420)
83 return 2;
84
81 switch (kiColorspace & (~videoFormatVFlip)) {85 switch (kiColorspace & (~videoFormatVFlip)) {
82 case videoFormatI420:86 case videoFormatI420:
83 case videoFormatYV12:87 case videoFormatYV12:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t