annotate cga_data.h @ 10061:09f2db2d7c90 libavcodec

Fix bug caused by difference in stride and picture width. When a frame is allocated using libschroedinger routines, the frame data size does not match the actual frame size if the width is not a multiple of 16. So we cannot do a straightforward memcpy of the frame returned by libschroedinger into the FFmpeg picture as the stride differs from the width. Fix this bug by allocating for the libschroedinger frame with the dimensions in AVCodecContext within libavcodec and passing the frame to libschroedinger. patch by Anuradha Suraparaju, anuradha rd.bbc.co uk
author diego
date Sat, 15 Aug 2009 11:59:53 +0000
parents 60d6fa47988b
children 8a393a20349f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
1 /*
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
2 * CGA ROM data
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
3 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
4 * This file is part of FFmpeg.
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
5 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
6 * FFmpeg is free software; you can redistribute it and/or
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
8 * License as published by the Free Software Foundation; either
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
9 * version 2.1 of the License, or (at your option) any later version.
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
10 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
11 * FFmpeg is distributed in the hope that it will be useful,
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
14 * Lesser General Public License for more details.
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
15 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
17 * License along with FFmpeg; if not, write to the Free Software
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
19 */
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
20
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
21 #ifndef AVCODEC_CGA_DATA_H
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
22 #define AVCODEC_CGA_DATA_H
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
23
9973
60d6fa47988b Add missing stdint.h #include to fix 'make checkheaders'.
diego
parents: 9615
diff changeset
24 #include <stdint.h>
60d6fa47988b Add missing stdint.h #include to fix 'make checkheaders'.
diego
parents: 9615
diff changeset
25
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
26 extern const uint8_t ff_cga_font[2048];
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
27 extern const uint32_t ff_cga_palette[16];
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
28
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
29 #endif