summaryrefslogtreecommitdiff
path: root/libhwjpeg/include/LibScalerForJpeg.h
diff options
context:
space:
mode:
authorTreeHugger Robot <android-build-prod@system.gserviceaccount.com>2020-03-01 04:07:02 +0000
committerTreeHugger Robot <android-build-prod@system.gserviceaccount.com>2020-03-01 04:07:02 +0000
commit8b10c41c0d3cb1522ba086d3eed6833f463e87f7 (patch)
treeff8909bafacfe04987c59d307faeff8a480421cc /libhwjpeg/include/LibScalerForJpeg.h
parent34f863d5edd990092b10bd8a722753d3c4273117 (diff)
parentda31ab682e4d0915f510e2175d533deaecc6970b (diff)
Snap for 6251003 from da31ab682e4d0915f510e2175d533deaecc6970b to qt-hammersmith-release
Change-Id: I9ad7d6604f321b101609314793a4e464efd6c786
Diffstat (limited to 'libhwjpeg/include/LibScalerForJpeg.h')
-rw-r--r--libhwjpeg/include/LibScalerForJpeg.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/libhwjpeg/include/LibScalerForJpeg.h b/libhwjpeg/include/LibScalerForJpeg.h
deleted file mode 100644
index cd0606a..0000000
--- a/libhwjpeg/include/LibScalerForJpeg.h
+++ /dev/null
@@ -1,61 +0,0 @@
-#ifndef __HARDWARE_EXYNOS_LIBSCALERFORJPEG_H__
-#define __HARDWARE_EXYNOS_LIBSCALERFORJPEG_H__
-
-#include <linux/videodev2.h>
-#define SCALER_DEV_NODE "/dev/video50"
-#define SCALER_MAX_PLANES 3
-
-#define SC_LOGE(fmt, args...) ((void)ALOG(LOG_ERROR, LOG_TAG, "%s: " fmt, __func__, ##args))
-
-#ifdef SC_DEBUG
-#define SC_LOGD(args...) ((void)ALOG(LOG_INFO, LOG_TAG, ##args))
-#else
-#define SC_LOGD(args...) do { } while (0)
-#endif
-
-class LibScalerForJpeg {
-public:
- LibScalerForJpeg();
- ~LibScalerForJpeg();
-
- bool SetSrcImage(
- unsigned int width, unsigned int height, unsigned int v4l2_format,
- void *addrs[SCALER_MAX_PLANES], int mem_type) {
- return SetImage(m_srcFmt, m_srcBuf, m_srcPlanes,
- width, height, v4l2_format, addrs, mem_type);
- }
-
- bool SetDstImage(
- unsigned int width, unsigned int height, unsigned int v4l2_format,
- void *addrs[SCALER_MAX_PLANES], int mem_type) {
- return SetImage(m_dstFmt, m_dstBuf, m_dstPlanes,
- width, height, v4l2_format, addrs, mem_type);
- }
-
- bool RunStream();
-private:
- int m_fdScaler;
- bool m_needReqbuf;
-
- v4l2_format m_srcFmt;
- v4l2_format m_dstFmt;
- v4l2_buffer m_srcBuf;
- v4l2_buffer m_dstBuf;
- v4l2_plane m_srcPlanes[SCALER_MAX_PLANES];
- v4l2_plane m_dstPlanes[SCALER_MAX_PLANES];
-
- bool SetImage(
- v4l2_format &m_fmt, v4l2_buffer &m_buf, v4l2_plane m_planes[SCALER_MAX_PLANES],
- unsigned int width, unsigned int height, unsigned int v4l2_format,
- void *addrs[SCALER_MAX_PLANES], int mem_type);
-
- bool SetFormat();
- bool ReqBufs(int count = 1);
- bool StreamOn();
- bool StreamOff();
- bool QBuf();
- bool DQBuf();
- bool StopStreaming();
-};
-
-#endif //__HARDWARE_EXYNOS_LIBSCALERFORJPEG_H__