summaryrefslogtreecommitdiff
path: root/src/i965_output_wayland.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2014-03-20 12:08:51 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-04-23 14:20:11 +0800
commit7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2 (patch)
tree85177112a0aa80c6800bf84e46afc198034f10d4 /src/i965_output_wayland.c
parenta618893863e780475f1b531d27d4dc0cd82c4a15 (diff)
downloadlibva-intel-driver-7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2.tar.gz
Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)
This is helpful to avoid the typo error when using VA_FOURCC(A, B, C, D). Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit acea969011bceee36a57fe2c0e4ee96c0c5e79c7)
Diffstat (limited to 'src/i965_output_wayland.c')
-rw-r--r--src/i965_output_wayland.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/i965_output_wayland.c b/src/i965_output_wayland.c
index 569d79be..5a75397c 100644
--- a/src/i965_output_wayland.c
+++ b/src/i965_output_wayland.c
@@ -237,7 +237,7 @@ va_GetSurfaceBufferWl(
return VA_STATUS_ERROR_INVALID_SURFACE;
switch (obj_surface->fourcc) {
- case VA_FOURCC('N','V','1','2'):
+ case VA_FOURCC_NV12:
drm_format = WL_DRM_FORMAT_NV12;
offsets[0] = 0;
pitches[0] = obj_surface->width;
@@ -246,14 +246,14 @@ va_GetSurfaceBufferWl(
offsets[2] = 0;
pitches[2] = 0;
break;
- case VA_FOURCC('Y','V','1','2'):
- case VA_FOURCC('I','4','2','0'):
- case VA_FOURCC('I','M','C','1'):
- case VA_FOURCC('I','M','C','3'):
- case VA_FOURCC('4','2','2','H'):
- case VA_FOURCC('4','2','2','V'):
- case VA_FOURCC('4','1','1','P'):
- case VA_FOURCC('4','4','4','P'):
+ case VA_FOURCC_YV12:
+ case VA_FOURCC_I420:
+ case VA_FOURCC_IMC1:
+ case VA_FOURCC_IMC3:
+ case VA_FOURCC_422H:
+ case VA_FOURCC_422V:
+ case VA_FOURCC_411P:
+ case VA_FOURCC_444P:
switch (obj_surface->subsampling) {
case SUBSAMPLE_YUV411:
drm_format = WL_DRM_FORMAT_YUV411;