Win32 API 日本語リファレンス
ホームGraphics.Imaging › WICJpegYCrCbSubsamplingOption

WICJpegYCrCbSubsamplingOption

列挙型
基底型i4

メンバー 5

名前10進16進説明
WICJpegYCrCbSubsamplingDefault00x0既定のサブサンプリング オプションです。
WICJpegYCrCbSubsampling42010x1水平方向と垂直方向の両方の間引き (デシメーション) を使用するサブサンプリング オプションです。
WICJpegYCrCbSubsampling42220x2水平方向の間引きを使用するサブサンプリング オプションです。
WICJpegYCrCbSubsampling44430x3間引きを使用しないサブサンプリング オプションです。
WICJpegYCrCbSubsampling44040x4垂直方向の 2 倍のダウンサンプリングのみを使用するサブサンプリング オプションです。このオプションは Windows 8.1 以降でのみ使用できます。

公式ドキュメント

JPEG の YCrCB サブサンプリング オプションを指定します。

解説(Remarks)

ネイティブの JPEG エンコーダーは WICJpegYCrCbSubsampling420 を使用します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum WICJpegYCrCbSubsamplingOption : int {
    WICJpegYCrCbSubsamplingDefault = 0,
    WICJpegYCrCbSubsampling420 = 1,
    WICJpegYCrCbSubsampling422 = 2,
    WICJpegYCrCbSubsampling444 = 3,
    WICJpegYCrCbSubsampling440 = 4
} WICJpegYCrCbSubsamplingOption;
public enum WICJpegYCrCbSubsamplingOption : int
{
    WICJpegYCrCbSubsamplingDefault = 0,
    WICJpegYCrCbSubsampling420 = 1,
    WICJpegYCrCbSubsampling422 = 2,
    WICJpegYCrCbSubsampling444 = 3,
    WICJpegYCrCbSubsampling440 = 4,
}
Public Enum WICJpegYCrCbSubsamplingOption As Integer
    WICJpegYCrCbSubsamplingDefault = 0
    WICJpegYCrCbSubsampling420 = 1
    WICJpegYCrCbSubsampling422 = 2
    WICJpegYCrCbSubsampling444 = 3
    WICJpegYCrCbSubsampling440 = 4
End Enum
import enum

class WICJpegYCrCbSubsamplingOption(enum.IntEnum):
    WICJpegYCrCbSubsamplingDefault = 0
    WICJpegYCrCbSubsampling420 = 1
    WICJpegYCrCbSubsampling422 = 2
    WICJpegYCrCbSubsampling444 = 3
    WICJpegYCrCbSubsampling440 = 4
// WICJpegYCrCbSubsamplingOption
pub const WICJpegYCrCbSubsamplingDefault: i32 = 0;
pub const WICJpegYCrCbSubsampling420: i32 = 1;
pub const WICJpegYCrCbSubsampling422: i32 = 2;
pub const WICJpegYCrCbSubsampling444: i32 = 3;
pub const WICJpegYCrCbSubsampling440: i32 = 4;
// WICJpegYCrCbSubsamplingOption
const (
	WICJpegYCrCbSubsamplingDefault int32 = 0
	WICJpegYCrCbSubsampling420 int32 = 1
	WICJpegYCrCbSubsampling422 int32 = 2
	WICJpegYCrCbSubsampling444 int32 = 3
	WICJpegYCrCbSubsampling440 int32 = 4
)
const
  WICJpegYCrCbSubsamplingDefault = 0;
  WICJpegYCrCbSubsampling420 = 1;
  WICJpegYCrCbSubsampling422 = 2;
  WICJpegYCrCbSubsampling444 = 3;
  WICJpegYCrCbSubsampling440 = 4;
// WICJpegYCrCbSubsamplingOption
pub const WICJpegYCrCbSubsamplingDefault: i32 = 0;
pub const WICJpegYCrCbSubsampling420: i32 = 1;
pub const WICJpegYCrCbSubsampling422: i32 = 2;
pub const WICJpegYCrCbSubsampling444: i32 = 3;
pub const WICJpegYCrCbSubsampling440: i32 = 4;
const
  WICJpegYCrCbSubsamplingDefault* = 0
  WICJpegYCrCbSubsampling420* = 1
  WICJpegYCrCbSubsampling422* = 2
  WICJpegYCrCbSubsampling444* = 3
  WICJpegYCrCbSubsampling440* = 4
enum WICJpegYCrCbSubsamplingOption : int {
    WICJpegYCrCbSubsamplingDefault = 0,
    WICJpegYCrCbSubsampling420 = 1,
    WICJpegYCrCbSubsampling422 = 2,
    WICJpegYCrCbSubsampling444 = 3,
    WICJpegYCrCbSubsampling440 = 4,
}
#define global WICJpegYCrCbSubsamplingDefault 0x0
#define global WICJpegYCrCbSubsampling420     0x1
#define global WICJpegYCrCbSubsampling422     0x2
#define global WICJpegYCrCbSubsampling444     0x3
#define global WICJpegYCrCbSubsampling440     0x4