Rename media/bitmap out of media and rename
PiperOrigin-RevId: 610418418
@ -62,11 +62,11 @@ public final class AlphaScaleShaderProgramPixelTest {
|
||||
// color transfer, which can make alpha tests more difficult to debug.
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH = "media/png/media3test_srgb.png";
|
||||
private static final String DECREASE_ALPHA_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/decrease_alpha.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/decrease_alpha.png";
|
||||
private static final String INCREASE_ALPHA_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/increase_alpha.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/increase_alpha.png";
|
||||
private static final String ZERO_ALPHA_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/zero_alpha.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/zero_alpha.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -61,13 +61,13 @@ public class ContrastPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/original.png";
|
||||
private static final String INCREASE_CONTRAST_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/increase_contrast.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/increase_contrast.png";
|
||||
private static final String DECREASE_CONTRAST_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/decrease_contrast.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/decrease_contrast.png";
|
||||
private static final String MAXIMUM_CONTRAST_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/maximum_contrast.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/maximum_contrast.png";
|
||||
|
||||
// OpenGL uses floats in [0, 1] and maps 0.5f to 128 = 256 / 2.
|
||||
private static final int OPENGL_NEUTRAL_RGB_VALUE = 128;
|
||||
|
@ -59,11 +59,11 @@ public final class CropPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
private static final String CROP_SMALLER_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/crop_smaller.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/crop_smaller.png";
|
||||
private static final String CROP_LARGER_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/crop_larger.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/crop_larger.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -58,13 +58,13 @@ public final class DefaultShaderProgramPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
private static final String TRANSLATE_RIGHT_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/translate_right.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/translate_right.png";
|
||||
private static final String SCALE_NARROW_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/scale_narrow.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/scale_narrow.png";
|
||||
private static final String ROTATE_90_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/rotate90.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/rotate90.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -45,11 +45,11 @@ public class DefaultVideoFrameProcessorImageFrameOutputTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
private static final String SCALE_WIDE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/scale_wide.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/scale_wide.png";
|
||||
private static final String BITMAP_OVERLAY_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_FrameProcessor.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_FrameProcessor.png";
|
||||
|
||||
private @MonotonicNonNull String testId;
|
||||
private @MonotonicNonNull VideoFrameProcessorTestRunner videoFrameProcessorTestRunner;
|
||||
|
@ -59,35 +59,35 @@ public final class DefaultVideoFrameProcessorPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
private static final String OVERLAY_PNG_ASSET_PATH = "media/png/media3test.png";
|
||||
private static final String IMAGE_JPG_ASSET_PATH = "media/jpeg/london.jpg";
|
||||
private static final String IMAGE_TO_VIDEO_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/london_image_to_video.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/london_image_to_video.png";
|
||||
private static final String IMAGE_TO_CROPPED_VIDEO_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/london_image_to_video_with_crop.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/london_image_to_video_with_crop.png";
|
||||
private static final String BITMAP_OVERLAY_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_FrameProcessor.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_FrameProcessor.png";
|
||||
private static final String SCALE_WIDE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/scale_wide.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/scale_wide.png";
|
||||
private static final String TRANSLATE_RIGHT_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/translate_right.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/translate_right.png";
|
||||
private static final String ROTATE_THEN_TRANSLATE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/rotate_then_translate.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/rotate_then_translate.png";
|
||||
private static final String ROTATE_THEN_SCALE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/rotate45_then_scale2w.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/rotate45_then_scale2w.png";
|
||||
private static final String TRANSLATE_THEN_ROTATE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/translate_then_rotate.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/translate_then_rotate.png";
|
||||
private static final String REQUEST_OUTPUT_HEIGHT_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/request_output_height.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/request_output_height.png";
|
||||
private static final String CROP_THEN_ASPECT_RATIO_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/crop_then_aspect_ratio.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/crop_then_aspect_ratio.png";
|
||||
private static final String ROTATE45_SCALE_TO_FIT_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/rotate_45_scale_to_fit.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/rotate_45_scale_to_fit.png";
|
||||
private static final String INCREASE_BRIGHTNESS_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/increase_brightness.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/increase_brightness.png";
|
||||
private static final String GRAYSCALE_THEN_INCREASE_RED_CHANNEL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/grayscale_then_increase_red_channel.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/grayscale_then_increase_red_channel.png";
|
||||
|
||||
/** Input video of which we only use the first frame. */
|
||||
private static final String INPUT_SDR_MP4_ASSET_STRING = "media/mp4/sample.mp4";
|
||||
|
@ -64,7 +64,7 @@ import org.junit.runners.Parameterized.Parameters;
|
||||
@RunWith(Parameterized.class)
|
||||
public class EffectPlaybackTest {
|
||||
|
||||
private static final String TEST_DIRECTORY = "media/bitmap/ExoPlayerPlaybackTest/";
|
||||
private static final String TEST_DIRECTORY = "test-generated-goldens/ExoPlayerPlaybackTest/";
|
||||
private static final String MP4_ASSET_URI_STRING = "asset:///media/mp4/sample.mp4";
|
||||
private static final Format MP4_ASSET_FORMAT =
|
||||
new Format.Builder()
|
||||
|
@ -44,7 +44,7 @@ import org.junit.runner.RunWith;
|
||||
public class FrameDropTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ASSET_PATH = "media/bitmap/FrameDropTest";
|
||||
private static final String ASSET_PATH = "test-generated-goldens/FrameDropTest";
|
||||
|
||||
private @MonotonicNonNull TextureBitmapReader textureBitmapReader;
|
||||
private @MonotonicNonNull String testId;
|
||||
|
@ -44,7 +44,7 @@ import org.junit.runner.RunWith;
|
||||
public class GaussianBlurTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ASSET_PATH = "media/bitmap/GaussianBlurTest";
|
||||
private static final String ASSET_PATH = "test-generated-goldens/GaussianBlurTest";
|
||||
private static final int BLANK_FRAME_WIDTH = 200;
|
||||
private static final int BLANK_FRAME_HEIGHT = 100;
|
||||
private static final Consumer<SpannableString> TEXT_SPAN_CONSUMER =
|
||||
|
@ -46,7 +46,8 @@ import org.junit.runner.RunWith;
|
||||
public class GaussianBlurWithFrameOverlaidTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ASSET_PATH = "media/bitmap/GaussianBlurWithFrameOverlaidTest";
|
||||
private static final String ASSET_PATH =
|
||||
"test-generated-goldens/GaussianBlurWithFrameOverlaidTest";
|
||||
private static final int BLANK_FRAME_WIDTH = 200;
|
||||
private static final int BLANK_FRAME_HEIGHT = 100;
|
||||
private static final Consumer<SpannableString> TEXT_SPAN_CONSUMER =
|
||||
|
@ -57,21 +57,21 @@ import org.junit.runner.RunWith;
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public final class HslAdjustmentPixelTest {
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/original.png";
|
||||
private static final String MINIMUM_SATURATION_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/minimum_saturation.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/minimum_saturation.png";
|
||||
private static final String MAXIMUM_SATURATION_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/maximum_saturation.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/maximum_saturation.png";
|
||||
private static final String ROTATE_HUE_BY_NEGATIVE_90_DEGREES_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/rotate_hue_by_negative_90_degrees.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/rotate_hue_by_negative_90_degrees.png";
|
||||
private static final String ROTATE_HUE_BY_60_DEGREES_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/rotate_hue_by_60_degrees.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/rotate_hue_by_60_degrees.png";
|
||||
private static final String DECREASE_LIGHTNESS_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/decrease_lightness.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/decrease_lightness.png";
|
||||
private static final String INCREASE_LIGHTNESS_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/increase_lightness.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/increase_lightness.png";
|
||||
private static final String ADJUST_ALL_HSL_SETTINGS_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/adjust_all_hsl_settings.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/adjust_all_hsl_settings.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
@ -66,30 +66,30 @@ public class OverlayShaderProgramPixelTest {
|
||||
|
||||
private static final String OVERLAY_PNG_ASSET_PATH = "media/png/media3test.png";
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
private static final String OVERLAY_BITMAP_DEFAULT =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_default.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_default.png";
|
||||
private static final String OVERLAY_BITMAP_DOUBLY_ANCHORED =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_anchored.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_anchored.png";
|
||||
|
||||
private static final String OVERLAY_BITMAP_OVERLAY_ANCHORED =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_overlayAnchored.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_overlayAnchored.png";
|
||||
private static final String OVERLAY_BITMAP_SCALED =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_scaled.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_scaled.png";
|
||||
private static final String OVERLAY_BITMAP_ROTATED90 =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_rotated90.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_rotated90.png";
|
||||
private static final String OVERLAY_BITMAP_TRANSLUCENT =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_bitmap_translucent.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_bitmap_translucent.png";
|
||||
private static final String OVERLAY_TEXT_DEFAULT =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_text_default.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_text_default.png";
|
||||
private static final String OVERLAY_TEXT_SPAN_SCALED =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_text_span_scaled.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_text_span_scaled.png";
|
||||
private static final String OVERLAY_TEXT_TRANSLATE =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_text_translate.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_text_translate.png";
|
||||
private static final String OVERLAY_MULTIPLE =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_multiple.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_multiple.png";
|
||||
private static final String OVERLAY_OVERLAP =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/overlay_overlap.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/overlay_overlap.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -60,19 +60,19 @@ public final class PresentationPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
private static final String ASPECT_RATIO_SCALE_TO_FIT_NARROW_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_narrow.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_narrow.png";
|
||||
private static final String ASPECT_RATIO_SCALE_TO_FIT_WIDE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_wide.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_wide.png";
|
||||
private static final String ASPECT_RATIO_SCALE_TO_FIT_WITH_CROP_NARROW_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_with_crop_narrow.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_with_crop_narrow.png";
|
||||
private static final String ASPECT_RATIO_SCALE_TO_FIT_WITH_CROP_WIDE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_with_crop_wide.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/aspect_ratio_scale_to_fit_with_crop_wide.png";
|
||||
private static final String ASPECT_RATIO_STRETCH_TO_FIT_NARROW_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/aspect_ratio_stretch_to_fit_narrow.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/aspect_ratio_stretch_to_fit_narrow.png";
|
||||
private static final String ASPECT_RATIO_STRETCH_TO_FIT_WIDE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/aspect_ratio_stretch_to_fit_wide.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/aspect_ratio_stretch_to_fit_wide.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -63,13 +63,13 @@ public final class RgbAdjustmentPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/original.png";
|
||||
private static final String ONLY_RED_CHANNEL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/only_red_channel.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/only_red_channel.png";
|
||||
private static final String INCREASE_RED_CHANNEL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/increase_red_channel.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/increase_red_channel.png";
|
||||
private static final String INCREASE_BRIGHTNESS_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/increase_brightness.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/increase_brightness.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -60,11 +60,11 @@ public final class RgbFilterPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/original.png";
|
||||
private static final String GRAYSCALE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/grayscale.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/grayscale.png";
|
||||
private static final String INVERT_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/invert.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/invert.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -60,16 +60,19 @@ public class SingleColorLutPixelTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/original.png";
|
||||
private static final String LUT_MAP_WHITE_TO_GREEN_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/lut_map_white_to_green.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/lut_map_white_to_green.png";
|
||||
private static final String GRAYSCALE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/grayscale.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/grayscale.png";
|
||||
private static final String INVERT_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/invert.png";
|
||||
private static final String VERTICAL_HALD_IDENTITY_LUT = "media/bitmap/lut/identity.png";
|
||||
private static final String VERTICAL_HALD_GRAYSCALE_LUT = "media/bitmap/lut/grayscale.png";
|
||||
private static final String VERTICAL_HALD_INVERTED_LUT = "media/bitmap/lut/inverted.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/invert.png";
|
||||
private static final String VERTICAL_HALD_IDENTITY_LUT =
|
||||
"test-generated-goldens/lut/identity.png";
|
||||
private static final String VERTICAL_HALD_GRAYSCALE_LUT =
|
||||
"test-generated-goldens/lut/grayscale.png";
|
||||
private static final String VERTICAL_HALD_INVERTED_LUT =
|
||||
"test-generated-goldens/lut/inverted.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class SpeedChangeEffectTest {
|
||||
@Rule public final TestName testName = new TestName();
|
||||
|
||||
private static final String IMAGE_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/electrical_colors/original.png";
|
||||
|
||||
@Test
|
||||
public void increaseSpeed_outputsFramesAtTheCorrectPresentationTimesUs() throws Exception {
|
||||
|
@ -49,9 +49,9 @@ import org.junit.runner.RunWith;
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public final class ThumbnailStripEffectPixelTest {
|
||||
private static final String ORIGINAL_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/original.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/original.png";
|
||||
private static final String TWO_THUMBNAILS_STRIP_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/linear_colors/two_thumbnails_strip.png";
|
||||
"test-generated-goldens/sample_mp4_first_frame/linear_colors/two_thumbnails_strip.png";
|
||||
@Rule public final TestName testName = new TestName();
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
|
@ -104,7 +104,8 @@ public final class SingleColorLut implements ColorLut {
|
||||
// [(0, 1, 0), (0, 1, 1)],
|
||||
// [(1, 0, 0), (1, 0, 1)],
|
||||
// [(1, 1, 0), (1, 1, 1)]];
|
||||
// media/bitmap/lut/identity.png is an example of how a 32x32x32 3D LUT looks like as an
|
||||
// test-generated-goldens/lut/identity.png is an example of how a 32x32x32 3D LUT looks like as
|
||||
// an
|
||||
// 32x32^2 bitmap.
|
||||
int length = cube.length;
|
||||
int[] bitmapColorsArray = new int[length * length * length];
|
||||
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 537 KiB After Width: | Height: | Size: 537 KiB |
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 529 KiB After Width: | Height: | Size: 529 KiB |
Before Width: | Height: | Size: 535 KiB After Width: | Height: | Size: 535 KiB |
Before Width: | Height: | Size: 403 KiB After Width: | Height: | Size: 403 KiB |
Before Width: | Height: | Size: 373 KiB After Width: | Height: | Size: 373 KiB |
Before Width: | Height: | Size: 701 KiB After Width: | Height: | Size: 701 KiB |
Before Width: | Height: | Size: 640 KiB After Width: | Height: | Size: 640 KiB |
Before Width: | Height: | Size: 557 KiB After Width: | Height: | Size: 557 KiB |
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 261 KiB |
Before Width: | Height: | Size: 183 KiB After Width: | Height: | Size: 183 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 370 KiB After Width: | Height: | Size: 370 KiB |
Before Width: | Height: | Size: 922 KiB After Width: | Height: | Size: 922 KiB |
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 267 KiB |
Before Width: | Height: | Size: 525 KiB After Width: | Height: | Size: 525 KiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 7.9 MiB After Width: | Height: | Size: 7.9 MiB |
Before Width: | Height: | Size: 519 KiB After Width: | Height: | Size: 519 KiB |
Before Width: | Height: | Size: 515 KiB After Width: | Height: | Size: 515 KiB |
Before Width: | Height: | Size: 499 KiB After Width: | Height: | Size: 499 KiB |
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 509 KiB |
Before Width: | Height: | Size: 504 KiB After Width: | Height: | Size: 504 KiB |
Before Width: | Height: | Size: 473 KiB After Width: | Height: | Size: 473 KiB |
Before Width: | Height: | Size: 525 KiB After Width: | Height: | Size: 525 KiB |
Before Width: | Height: | Size: 535 KiB After Width: | Height: | Size: 535 KiB |
Before Width: | Height: | Size: 399 KiB After Width: | Height: | Size: 399 KiB |
Before Width: | Height: | Size: 523 KiB After Width: | Height: | Size: 523 KiB |
Before Width: | Height: | Size: 514 KiB After Width: | Height: | Size: 514 KiB |
Before Width: | Height: | Size: 532 KiB After Width: | Height: | Size: 532 KiB |
Before Width: | Height: | Size: 310 KiB After Width: | Height: | Size: 310 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 519 KiB After Width: | Height: | Size: 519 KiB |
Before Width: | Height: | Size: 734 KiB After Width: | Height: | Size: 734 KiB |
Before Width: | Height: | Size: 349 KiB After Width: | Height: | Size: 349 KiB |
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 305 KiB |
Before Width: | Height: | Size: 811 KiB After Width: | Height: | Size: 811 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 558 KiB After Width: | Height: | Size: 558 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |