A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ffmpeg.org/pipermail/ffmpeg-devel/2007-January/027858.html below:

[Ffmpeg-devel] [PATCH]BMP encoder

[Ffmpeg-devel] [PATCH]BMP encoderMåns Rullgård mru
Wed Jan 24 02:26:27 CET 2007
Michael Niedermayer <michaelni at gmx.at> writes:

> Hi
>
> On Tue, Jan 23, 2007 at 01:08:33PM +0100, Michel Bardiaux wrote:
>> 
>> -- 
> [...]
>
>> Index: libavcodec/bmp.c
>> ===================================================================
>> --- libavcodec/bmp.c	(revision 7659)
>> +++ libavcodec/bmp.c	(working copy)
>> @@ -1,6 +1,7 @@
>>  /*
>>   * BMP image format
>> - * Copyright (c) 2005 Mans Rullgard
>> + * Copyright (c) 2005 Mans Rullgard (decoder)
>> + * Copyright (c) 2006, 2007 Michel Bardiaux (encoder)
>>   *
>>   * This file is part of FFmpeg.
>>   *
>> @@ -32,10 +33,8 @@
>>  #define BMP_RLE4      2
>>  #define BMP_BITFIELDS 3
>
> these should be an enum IMHO, mans any objections if i change that?

Change it if you like.

[...]

> better put the encoder into its own file

Yes, please.

>> +    n_bytes = n_bytes_image + 14 /* BITMAPFILEHEADER */ + 40 /* BITMAPINFOHEADER */;
>
> instead of commenting i would rather use named values 
> (#define BM_FILE_HEADER_SIZE 14)

I prefer macros.

-- 
M?ns Rullg?rd
mru at inprovide.com


More information about the ffmpeg-devel mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4