blob: ef33f3567ba6bebe28b8fa22bdcd0d23c37fa959 [file] [log] [blame]
Iliyan Malchev6d016452013-03-27 16:27:56 -07001/**
2 * @file morpho_image_data_ex.h
3 * @brief 画像データの構造体定義
4 * @version 1.0.0
5 * @date 2010-03-30
6 *
7 * Copyright (C) 2010-2011 Morpho, Inc.
8 */
9
10#ifndef MORPHO_IMAGE_DATA_EX_H
11#define MORPHO_IMAGE_DATA_EX_H
12
13#include "morpho_image_data.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19typedef struct{
20 int y;
21 int u;
22 int v;
23} morpho_ImageYuvPlanarPitch;
24
25typedef struct{
26 int y;
27 int uv;
28} morpho_ImageYuvSemiPlanarPitch;
29
30/** 画像データ. */
31typedef struct {
32 int width; /**< 幅 */
33 int height; /**< 高さ */
34 union{
35 void *p; /**< 画像データの先頭ポインタ */
36 morpho_ImageYuvPlanar planar;
37 morpho_ImageYuvSemiPlanar semi_planar;
38 } dat;
39 union{
40 int p; /**< ラインの先頭から次のライン先頭までのバイト数 */
41 morpho_ImageYuvPlanarPitch planar;
42 morpho_ImageYuvSemiPlanarPitch semi_planar;
43 } pitch;
44} morpho_ImageDataEx;
45
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* #ifndef MORPHO_IMAGE_DATA_EX_H */