diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-21 20:43:52 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-21 20:43:52 +0200 |
commit | fd2ca3d4c5949e7b13b09ef00414ad4ca66881c5 (patch) | |
tree | 92a908516584390e09a6a96ee0ffa40035fda34b /libavformat | |
parent | 8a4934166645e636ba1830e44a6223f8c243da8c (diff) | |
download | ffmpeg-fd2ca3d4c5949e7b13b09ef00414ad4ca66881c5.tar.gz |
avformat/fitsenc: reindent switch
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/fitsenc.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c index 1df7e2bcf2..90bb71fd17 100644 --- a/libavformat/fitsenc.c +++ b/libavformat/fitsenc.c @@ -84,48 +84,48 @@ static int write_image_header(AVFormatContext *s) float datamax, datamin; switch (encctx->format) { - case AV_PIX_FMT_GRAY8: - bitpix = 8; - naxis = 2; - datamin = 0; - datamax = 255; - break; - case AV_PIX_FMT_GRAY16BE: - bitpix = 16; - naxis = 2; - bzero = 32768; - datamin = 0; - datamax = 65535; - break; - case AV_PIX_FMT_GBRP: - case AV_PIX_FMT_GBRAP: - bitpix = 8; - naxis = 3; - rgb = 1; - if (encctx->format == AV_PIX_FMT_GBRP) { - naxis3 = 3; - } else { - naxis3 = 4; - } - datamin = 0; - datamax = 255; - break; - case AV_PIX_FMT_GBRP16BE: - case AV_PIX_FMT_GBRAP16BE: - bitpix = 16; - naxis = 3; - rgb = 1; - if (encctx->format == AV_PIX_FMT_GBRP16BE) { - naxis3 = 3; - } else { - naxis3 = 4; - } - bzero = 32768; - datamin = 0; - datamax = 65535; - break; - default: - return AVERROR(EINVAL); + case AV_PIX_FMT_GRAY8: + bitpix = 8; + naxis = 2; + datamin = 0; + datamax = 255; + break; + case AV_PIX_FMT_GRAY16BE: + bitpix = 16; + naxis = 2; + bzero = 32768; + datamin = 0; + datamax = 65535; + break; + case AV_PIX_FMT_GBRP: + case AV_PIX_FMT_GBRAP: + bitpix = 8; + naxis = 3; + rgb = 1; + if (encctx->format == AV_PIX_FMT_GBRP) { + naxis3 = 3; + } else { + naxis3 = 4; + } + datamin = 0; + datamax = 255; + break; + case AV_PIX_FMT_GBRP16BE: + case AV_PIX_FMT_GBRAP16BE: + bitpix = 16; + naxis = 3; + rgb = 1; + if (encctx->format == AV_PIX_FMT_GBRP16BE) { + naxis3 = 3; + } else { + naxis3 = 4; + } + bzero = 32768; + datamin = 0; + datamax = 65535; + break; + default: + return AVERROR(EINVAL); } if (fitsctx->first_image) { |