< prev index next >

modules/javafx.media/src/main/java/com/sun/media/jfxmedia/control/VideoDataBuffer.java

Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr

*** 22,48 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package com.sun.media.jfxmedia.control; import java.nio.ByteBuffer; /** * A {@code VideoDataBuffer} describes a single frame of video. */ public interface VideoDataBuffer { /** Plane index used by all packed formats */ ! public static final int PACKED_FORMAT_PLANE = 0; /** Plane index for YCbCr luminance data */ ! public static final int YCBCR_PLANE_LUMA = 0; /** Plane index for YCbCr red chrominance data */ ! public static final int YCBCR_PLANE_CR = 1; /** Plane index for YCbCr blue chrominance data */ ! public static final int YCBCR_PLANE_CB = 2; /** Plane index for YCbCr alpha data, this plane is optional */ ! public static final int YCBCR_PLANE_ALPHA = 3; /** * Retrieve the data buffer for the specified plane. For chunky formats, * pass {@link PACKED_FORMAT_PLANE} as the plane index. If an invalid plane * index is passed this method returns null. --- 22,49 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package com.sun.media.jfxmedia.control; + import java.lang.annotation.Native; import java.nio.ByteBuffer; /** * A {@code VideoDataBuffer} describes a single frame of video. */ public interface VideoDataBuffer { /** Plane index used by all packed formats */ ! @Native public static final int PACKED_FORMAT_PLANE = 0; /** Plane index for YCbCr luminance data */ ! @Native public static final int YCBCR_PLANE_LUMA = 0; /** Plane index for YCbCr red chrominance data */ ! @Native public static final int YCBCR_PLANE_CR = 1; /** Plane index for YCbCr blue chrominance data */ ! @Native public static final int YCBCR_PLANE_CB = 2; /** Plane index for YCbCr alpha data, this plane is optional */ ! @Native public static final int YCBCR_PLANE_ALPHA = 3; /** * Retrieve the data buffer for the specified plane. For chunky formats, * pass {@link PACKED_FORMAT_PLANE} as the plane index. If an invalid plane * index is passed this method returns null.
< prev index next >