blob: d912628b294e9f53e739ae94e4c02bc8359507b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* linux/drivers/media/video/samsung/jpeg_v2x/jpeg_mem.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Definition for Operation of Jpeg encoder/docoder with memory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __JPEG_MEM_H__
#define __JPEG_MEM_H__
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/cma.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/file.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <media/videobuf2-core.h>
#include <media/videobuf2-memops.h>
#include <asm/cacheflush.h>
#if defined(CONFIG_VIDEOBUF2_CMA_PHYS)
extern const struct jpeg_vb2 jpeg_vb2_cma;
#elif defined(CONFIG_VIDEOBUF2_ION)
extern const struct jpeg_vb2 jpeg_vb2_ion;
#endif
#define MAX_JPEG_WIDTH 3264
#define MAX_JPEG_HEIGHT 2448
#endif /* __JPEG_MEM_H__ */
|