|
|
@ -21,10 +21,10 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/imgutils.h" |
|
|
|
#include "libavutil/imgutils.h" |
|
|
|
|
|
|
|
#include "libavutil/avassert.h" |
|
|
|
#include "avcodec.h" |
|
|
|
#include "avcodec.h" |
|
|
|
#include "bytestream.h" |
|
|
|
#include "bytestream.h" |
|
|
|
#include "bmp.h" |
|
|
|
#include "bmp.h" |
|
|
|
#include <assert.h> |
|
|
|
|
|
|
|
#include "internal.h" |
|
|
|
#include "internal.h" |
|
|
|
|
|
|
|
|
|
|
|
static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF }; |
|
|
|
static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF }; |
|
|
@ -98,7 +98,7 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
|
|
|
case PIX_FMT_RGB4_BYTE: |
|
|
|
case PIX_FMT_RGB4_BYTE: |
|
|
|
case PIX_FMT_BGR4_BYTE: |
|
|
|
case PIX_FMT_BGR4_BYTE: |
|
|
|
case PIX_FMT_GRAY8: |
|
|
|
case PIX_FMT_GRAY8: |
|
|
|
assert(bit_count == 8); |
|
|
|
av_assert1(bit_count == 8); |
|
|
|
ff_set_systematic_pal2(palette256, avctx->pix_fmt); |
|
|
|
ff_set_systematic_pal2(palette256, avctx->pix_fmt); |
|
|
|
pal = palette256; |
|
|
|
pal = palette256; |
|
|
|
break; |
|
|
|
break; |
|
|
|