argon: Initial argon image format support

This commit is contained in:
popcornmix
2017-10-19 16:33:58 +01:00
parent 91dae74ffd
commit fd10e48d30
4 changed files with 5 additions and 0 deletions

View File

@@ -153,6 +153,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define MMAL_ENCODING_YUVUV64_10 MMAL_FOURCC('S','A','1','0')
#define MMAL_ENCODING_ARGON10 MMAL_FOURCC('A','R','G','1')
/** VideoCore opaque image format, image handles are returned to
* the host but not the actual image data.
*/

View File

@@ -735,6 +735,7 @@ static struct {
{MMAL_ENCODING_NV12, OMX_COLOR_FormatYUV420SemiPlanar},
{MMAL_ENCODING_NV21, OMX_COLOR_FormatYVU420PackedSemiPlanar},
{MMAL_ENCODING_YUVUV128, OMX_COLOR_FormatYUVUV128},
{MMAL_ENCODING_ARGON10, OMX_COLOR_FormatArgon10},
{MMAL_ENCODING_YUYV, OMX_COLOR_FormatYCbYCr},
{MMAL_ENCODING_YVYU, OMX_COLOR_FormatYCrYCb},
{MMAL_ENCODING_UYVY, OMX_COLOR_FormatCbYCrY},

View File

@@ -119,6 +119,7 @@ typedef enum
VC_IMAGE_YUV420_16, /* YUV4:2:0 planar, 16bit values */
VC_IMAGE_YUV_UV_16, /* YUV4:2:0 codec format, 16bit values */
VC_IMAGE_YUV420_S, /* YUV4:2:0 with U,V in side-by-side format */
VC_IMAGE_ARGON10, /* Argon 10-bit image format */
VC_IMAGE_MAX, //bounds for error checking
VC_IMAGE_FORCE_ENUM_16BIT = 0xffff,

View File

@@ -150,6 +150,7 @@ typedef enum OMX_COLOR_FORMATTYPE {
OMX_COLOR_FormatYUV420_UVSideBySide, /**< YUV420, but with U and V in side-by-side format */
OMX_COLOR_Format32bitXRGB8888,
OMX_COLOR_Format32bitXBGR8888,
OMX_COLOR_FormatArgon10,
OMX_COLOR_FormatMax = 0x7FFFFFFF
} OMX_COLOR_FORMATTYPE;