~ubuntu-branches/ubuntu/trusty/libav/trusty-proposed

« back to all changes in this revision

Viewing changes to libavcodec/rtjpeg.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2013-10-22 23:24:08 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: package-import@ubuntu.com-20131022232408-b8tvvn4pyzri9mi3
Tags: 6:9.10-1ubuntu1
* Build all -extra flavors from this source package, as libav got demoted
  from main to universe, cf LP: #1243235
* Simplify debian/rules to follow exactly the code that debian executes
* New upstream (LP: #1180288) fixes lots of security issues (LP: #1242802)
* Merge from unstable, remaining changes:
  - build-depend on libtiff5-dev rather than libtiff4-dev,
    avoids FTBFS caused by imlib
  - follow the regular debian codepaths

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <stdint.h>
26
26
#include "dsputil.h"
 
27
#include "libavutil/mem.h"
27
28
 
28
29
#define RTJPEG_FILE_VERSION 0
29
30
#define RTJPEG_HEADER_SIZE 12
30
31
 
31
 
typedef struct {
 
32
typedef struct RTJpegContext {
32
33
    int w, h;
33
34
    DSPContext *dsp;
34
35
    uint8_t scan[64];
37
38
    DECLARE_ALIGNED(16, DCTELEM, block)[64];
38
39
} RTJpegContext;
39
40
 
40
 
void rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
 
41
void ff_rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
41
42
                        int width, int height,
42
43
                        const uint32_t *lquant, const uint32_t *cquant);
43
44
 
44
 
int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
 
45
int ff_rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
45
46
                               const uint8_t *buf, int buf_size);
46
47
#endif /* AVCODEC_RTJPEG_H */