From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 7EAB045D5F for ; Fri, 7 Apr 2023 16:01:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1EC9668B630; Fri, 7 Apr 2023 19:01:03 +0300 (EEST) Received: from out-53.mta0.migadu.com (out-53.mta0.migadu.com [91.218.175.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 641A868AB19 for ; Fri, 7 Apr 2023 19:00:56 +0300 (EEST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=key1; t=1680883256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ybxJmDo5VRr0kfXsvemMRVKl/asN0wR/8SWAYC8NjEE=; b=PtfnATnRxvGrK3gpbdrsnuy9OoC8bXXEQT568fqq4rUvuMEu3+U1RbGBMtTAaKsHeaTnHs 3ks4z+YnzaZMsWrEAYpczwhu+59pcuiIft0R54oSTExEpttzra5TfwtILb1cEuuXS41g/v S3SkbeE7+Q+pW0Ioj6FnzXSdmz7xtSl7atyhvkr7u+Wu9a8Objvw0MtPCn0dnaAQXDbr6I ogXFI4+PbkT5ImkdkYBPdYchQQ6g8sJ4lO7J4TjFf/ql+2SWVhQu3m+EMujJxzMx9s2yIK rSEKSU+wWKwK5v0gZHEQDG1bCSFIUG0ojEfHCLJnxVue8MCPSgfEoWfqpXqJhQ== From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Apr 2023 02:00:42 +1000 Message-Id: <20230407160042.466129-2-zane@zanevaniperen.com> In-Reply-To: <20230407160042.466129-1-zane@zanevaniperen.com> References: <20230407160042.466129-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Subject: [FFmpeg-devel] [PATCH 2/2] avcodec/brenderpix: add BR_PMT_* comments to type switch X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- libavcodec/brenderpix.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/brenderpix.c b/libavcodec/brenderpix.c index 32e7329105..7b5bb7ce52 100644 --- a/libavcodec/brenderpix.c +++ b/libavcodec/brenderpix.c @@ -171,27 +171,27 @@ static int pix_decode_frame(AVCodecContext *avctx, AVFrame *frame, return ret; } switch (hdr.format) { - case 3: + case 3: // BR_PMT_INDEX_8 avctx->pix_fmt = AV_PIX_FMT_PAL8; bytes_pp = 1; break; - case 4: + case 4: // BR_PMT_RGB_555 avctx->pix_fmt = AV_PIX_FMT_RGB555BE; bytes_pp = 2; break; - case 5: + case 5: // BR_PMT_RGB_565 avctx->pix_fmt = AV_PIX_FMT_RGB565BE; bytes_pp = 2; break; - case 6: + case 6: // BR_PMT_RGB_888 avctx->pix_fmt = AV_PIX_FMT_RGB24; bytes_pp = 3; break; - case 7: + case 7: // BR_PMT_RGBX_888 avctx->pix_fmt = AV_PIX_FMT_0RGB; bytes_pp = 4; break; - case 8: // ARGB + case 8: // BR_PMT_RGBA_8888 avctx->pix_fmt = AV_PIX_FMT_ARGB; bytes_pp = 4; break; -- 2.39.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".