mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[media] vivid: Code refactor for color encoding
Replace is_yuv with color_enc Which can be used by other color encodings such us HSV. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
05b6f8a552
commit
646895e936
4 changed files with 66 additions and 44 deletions
|
|
@ -87,6 +87,11 @@ enum tpg_move_mode {
|
|||
TPG_MOVE_POS_FAST,
|
||||
};
|
||||
|
||||
enum tgp_color_enc {
|
||||
TGP_COLOR_ENC_RGB,
|
||||
TGP_COLOR_ENC_YCBCR,
|
||||
};
|
||||
|
||||
extern const char * const tpg_aspect_strings[];
|
||||
|
||||
#define TPG_MAX_PLANES 3
|
||||
|
|
@ -119,7 +124,7 @@ struct tpg_data {
|
|||
u8 saturation;
|
||||
s16 hue;
|
||||
u32 fourcc;
|
||||
bool is_yuv;
|
||||
enum tgp_color_enc color_enc;
|
||||
u32 colorspace;
|
||||
u32 xfer_func;
|
||||
u32 ycbcr_enc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue