[FFmpeg-devel] [PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

James Almer jamrial at gmail.com
Sun Jun 7 02:22:10 EEST 2020


On 6/6/2020 8:06 PM, Michael Niedermayer wrote:
> On Sat, Jun 06, 2020 at 11:42:17AM +0530, gautamramk at gmail.com wrote:
>> From: Gautam Ramakrishnan <gautamramk at gmail.com>
>>
>> I have attempted to write a JPEG2000 Parser. Have tested
>> by generating a file containing 14 frames, as mentioned
>> by Micheal. Have also tried testing with various packet
>> sizes by setting -frame_size option. Additionally,
>> fixed a few formatting issues as pointed out by Micheal.
>> ---
>>  libavcodec/Makefile          |   1 +
>>  libavcodec/jpeg2000_parser.c | 190 +++++++++++++++++++++++++++++++++++
>>  libavcodec/parsers.c         |   1 +
>>  3 files changed, 192 insertions(+)
>>  create mode 100644 libavcodec/jpeg2000_parser.c
> 
> will apply
> 
> thx

> +AVCodecParser ff_jpeg2000_parser = {
> +    .codec_ids      = { AV_CODEC_ID_JPEG2000 },
> +    .priv_data_size = sizeof(JPEG2000ParserContext),
> +    .parser_parse   = jpeg2000_parse,
> +    .parser_close   = ff_parse_close,
> +};
> \ No newline at end of file

Please, fix this before pushing.


More information about the ffmpeg-devel mailing list