@@ -96,8 +96,9 @@ public class HeicImageFrame
9696
9797 /**
9898 * <p>
99- * Type of an image frame content.
99+ * Type of image frame content.
100100 * </p>
101+ * @return The type of image frame content.
101102 */
102103 public final ImageFrameType getImageType ()
103104 {
@@ -108,6 +109,7 @@ public final ImageFrameType getImageType()
108109 * <p>
109110 * Width of the image frame in pixels.
110111 * </p>
112+ * @return The width of the image frame in pixels.
111113 */
112114 public final /*UInt32*/ long getWidth ()
113115 {
@@ -118,6 +120,7 @@ public final ImageFrameType getImageType()
118120 * <p>
119121 * Height of the image frame in pixels.
120122 * </p>
123+ * @return The height of the image frame in pixels.
121124 */
122125 public final /*UInt32*/ long getHeight ()
123126 {
@@ -126,7 +129,7 @@ public final ImageFrameType getImageType()
126129
127130 /**
128131 * <p>
129- * Indicates the presence of transparency of transparency layer.
132+ * Indicates the presence of transparency of layer.
130133 * </p>
131134 *
132135 * @return True if frame is linked with alpha data frame, false otherwise.
@@ -174,8 +177,9 @@ public final boolean isDerived()
174177
175178 /**
176179 * <p>
177- * Indicates the type of derivative content if the frame is derived.
180+ * Returns the type of derivative content if the frame is derived.
178181 * </p>
182+ * @return The type of derivative content if the frame is derived.
179183 */
180184 public final BoxType getDerivativeType ()
181185 {
@@ -184,8 +188,9 @@ public final BoxType getDerivativeType()
184188
185189 /**
186190 * <p>
187- * Indicates the type of auxiliary reference layer if the frame type is auxiliary.
191+ * Returns the type of auxiliary reference layer if the frame type is auxiliary.
188192 * </p>
193+ * @return The type of auxiliary reference layer if the frame type is auxiliary.
189194 */
190195 public final AuxiliaryReferenceType getAuxiliaryReferenceType ()
191196 {
@@ -196,6 +201,7 @@ public final AuxiliaryReferenceType getAuxiliaryReferenceType()
196201 * <p>
197202 * Indicates the type of auxiliary reference layer if the frame type is auxiliary.
198203 * </p>
204+ * @param value the type of auxiliary reference layer if the frame type is auxiliary.
199205 */
200206 private void setAuxiliaryReferenceType (AuxiliaryReferenceType value )
201207 {
@@ -206,26 +212,18 @@ private void setAuxiliaryReferenceType(AuxiliaryReferenceType value)
206212 * <p>
207213 * Number of channels with color data.
208214 * </p>
215+ * @return The number of channels with color data.
209216 */
210217 public final byte getNumberOfChannels ()
211218 {
212219 return numberOfChannels ;
213220 }
214221
215- /**
216- * <p>
217- * Number of channels with color data.
218- * </p>
219- */
220- private void setNumberOfChannels (byte value )
221- {
222- numberOfChannels = value ;
223- }
224-
225222 /**
226223 * <p>
227224 * Bits per channel with color data.
228225 * </p>
226+ * @return The bits per channel with color data.
229227 */
230228 public final byte [] getBitsPerChannel ()
231229 {
@@ -234,14 +232,13 @@ public final byte[] getBitsPerChannel()
234232
235233 /**
236234 * <p>
237- * Bits per channel with color data .
235+ * Get pixel data in the format of byte array .
238236 * </p>
237+ * <p>Each three or four bytes (the count depends on the pixel format) refer to one pixel left to right top to bottom line by line.</p>
238+ *
239+ * @param pixelFormat Pixel format that defines the order of colors and the presence of alpha byte.
240+ * @return Byte array, null if frame does not contain image data.
239241 */
240- private void setBitsPerChannel (byte [] value )
241- {
242- bitsPerChannel = value ;
243- }
244-
245242 public final byte [] getByteArray (PixelFormat pixelFormat )
246243 {
247244 return getByteArray (pixelFormat , new Rectangle ());
@@ -250,8 +247,8 @@ public final byte[] getByteArray(PixelFormat pixelFormat)
250247 /**
251248 * <p>
252249 * Get pixel data in the format of byte array.
253- * <p>Each three or four bytes (the count depends on the pixel format) refer to one pixel left to right top to bottom line by line.</p>
254250 * </p>
251+ * <p>Each three or four bytes (the count depends on the pixel format) refer to one pixel left to right top to bottom line by line.</p>
255252 *
256253 * @param pixelFormat Pixel format that defines the order of colors and the presence of alpha byte.
257254 * @param boundsRectangle Bounds of the requested area.
@@ -292,6 +289,15 @@ public final byte[] getByteArray(PixelFormat pixelFormat, Rectangle boundsRectan
292289 return output ;
293290 }
294291
292+ /**
293+ * <p>
294+ * Get pixel data in the format of integer array.
295+ * </p>
296+ * <p>Each int value refers to one pixel left to right top to bottom line by line.</p>
297+ *
298+ * @param pixelFormat Pixel format that defines the order of colors.
299+ * @return Integer array, null if frame does not contain image data.
300+ */
295301 public final int [] getInt32Array (PixelFormat pixelFormat )
296302 {
297303 return getInt32Array (pixelFormat , new Rectangle ());
@@ -300,8 +306,8 @@ public final int[] getInt32Array(PixelFormat pixelFormat)
300306 /**
301307 * <p>
302308 * Get pixel data in the format of integer array.
303- * <p>Each int value refers to one pixel left to right top to bottom line by line.</p>
304309 * </p>
310+ * <p>Each int value refers to one pixel left to right top to bottom line by line.</p>
305311 *
306312 * @param pixelFormat Pixel format that defines the order of colors.
307313 * @param boundsRectangle Bounds of the requested area.
@@ -341,10 +347,10 @@ public final int[] getInt32Array(PixelFormat pixelFormat, Rectangle boundsRectan
341347 /**
342348 * <p>
343349 * Get frame text data.
344- * <p>Exists only for mime frame types.</p>
345350 * </p>
351+ * <p>Exists only for mime frame types.</p>
346352 *
347- * @return String
353+ * @return The frame text data.
348354 */
349355 public final String getTextData ()
350356 {
@@ -375,11 +381,11 @@ public final String getTextData()
375381 /**
376382 * <p>
377383 * Add layer reference to the frame.
378- * Used to link reference layers that are reverce -linked (alpha layer, depth map, hdr).
384+ * Used to link reference layers that are reverse -linked (alpha layer, depth map, hdr).
379385 * </p>
380386 *
381- * @param id Layer identificator .
382- * @param type Layer type.
387+ * @param id A layer identifier .
388+ * @param type A layer type.
383389 */
384390 final void addLayerReference (/*UInt32*/ long id , AuxiliaryReferenceType type )
385391 {
@@ -759,8 +765,8 @@ private void loadProperties(BitStreamWithNalSupport stream, List<Box> properties
759765 break ;
760766 case pixi :
761767 PixelInformationProperty pixi = (PixelInformationProperty ) item ;
762- setNumberOfChannels ( pixi .num_channels ) ;
763- setBitsPerChannel ( pixi .bits_per_channel ) ;
768+ this . numberOfChannels = pixi .num_channels ;
769+ this . bitsPerChannel = pixi .bits_per_channel ;
764770 break ;
765771 case rloc :
766772 //RelativeLocationProperty rloc = (RelativeLocationProperty) item;
0 commit comments