[Mesa-dev] [PATCH 1/5] st/st/omx: fix switch-case indentation in vid_enc.c

Christian König deathsimple at vodafone.de
Wed Jun 18 05:05:57 PDT 2014


Am 12.06.2014 18:27, schrieb Leo Liu:
> Signed-off-by: Leo Liu <leo.liu at amd.com>

I've pushed everything upstream.

Thanks for the help,
Christian.

> ---
>   src/gallium/state_trackers/omx/vid_enc.c | 32 ++++++++++++++++----------------
>   1 file changed, 16 insertions(+), 16 deletions(-)
>
> diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c
> index d16fa01..70f63d1 100644
> --- a/src/gallium/state_trackers/omx/vid_enc.c
> +++ b/src/gallium/state_trackers/omx/vid_enc.c
> @@ -626,22 +626,22 @@ static OMX_ERRORTYPE vid_enc_GetConfig(OMX_HANDLETYPE handle, OMX_INDEXTYPE idx,
>   static enum pipe_video_profile enc_TranslateOMXProfileToPipe(unsigned omx_profile)
>   {
>      switch (omx_profile) {
> -      case OMX_VIDEO_AVCProfileBaseline:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE;
> -      case OMX_VIDEO_AVCProfileMain:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN;
> -      case OMX_VIDEO_AVCProfileExtended:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED;
> -      case OMX_VIDEO_AVCProfileHigh:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH;
> -      case OMX_VIDEO_AVCProfileHigh10:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10;
> -      case OMX_VIDEO_AVCProfileHigh422:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422;
> -      case OMX_VIDEO_AVCProfileHigh444:
> -         return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444;
> -      default:
> -         return PIPE_VIDEO_PROFILE_UNKNOWN;
> +   case OMX_VIDEO_AVCProfileBaseline:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE;
> +   case OMX_VIDEO_AVCProfileMain:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN;
> +   case OMX_VIDEO_AVCProfileExtended:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED;
> +   case OMX_VIDEO_AVCProfileHigh:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH;
> +   case OMX_VIDEO_AVCProfileHigh10:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10;
> +   case OMX_VIDEO_AVCProfileHigh422:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422;
> +   case OMX_VIDEO_AVCProfileHigh444:
> +      return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444;
> +   default:
> +      return PIPE_VIDEO_PROFILE_UNKNOWN;
>      }
>   }
>   



More information about the mesa-dev mailing list