Home
last modified time | relevance | path

Searched refs:page_height (Results 1 – 8 of 8) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdf_transformpage_embeddertest.cpp218 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F() local
220 EXPECT_EQ(300, page_height); in TEST_F()
222 CompareBitmap(bitmap.get(), page_width, page_height, kOriginalMD5); in TEST_F()
239 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F() local
241 EXPECT_EQ(130, page_height); in TEST_F()
243 CompareBitmap(bitmap.get(), page_width, page_height, kCroppedMD5); in TEST_F()
265 const int page_height = static_cast<int>(FPDF_GetPageHeight(saved_page)); in TEST_F() local
267 EXPECT_EQ(130, page_height); in TEST_F()
269 CompareBitmap(bitmap.get(), page_width, page_height, kCroppedMD5); in TEST_F()
297 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F() local
[all …]
Dfpdf_editpage_embeddertest.cpp30 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F() local
32 EXPECT_EQ(300, page_height); in TEST_F()
34 CompareBitmap(bitmap.get(), page_width, page_height, kOriginalMD5); in TEST_F()
45 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F() local
47 EXPECT_EQ(200, page_height); in TEST_F()
49 CompareBitmap(bitmap.get(), page_width, page_height, kRotatedMD5); in TEST_F()
65 const int page_height = static_cast<int>(FPDF_GetPageHeight(saved_page)); in TEST_F() local
67 EXPECT_EQ(200, page_height); in TEST_F()
69 CompareBitmap(bitmap.get(), page_width, page_height, kRotatedMD5); in TEST_F()
Dfpdf_view_embeddertest.cpp785 const int page_height = static_cast<int>(FPDF_GetPageHeightF(page)); in TEST_F() local
787 EXPECT_EQ(300, page_height); in TEST_F()
790 CompareBitmap(bitmap.get(), page_width, page_height, kOriginalMD5); in TEST_F()
792 FS_RECTF page_rect{0, 0, page_width, page_height}; in TEST_F()
797 TestRenderPageBitmapWithMatrix(page, page_width, page_height, identity_matrix, in TEST_F()
801 FS_RECTF middle_of_page_rect{page_width / 4, page_height / 4, in TEST_F()
802 page_width * 3 / 4, page_height * 3 / 4}; in TEST_F()
803 TestRenderPageBitmapWithMatrix(page, page_width, page_height, identity_matrix, in TEST_F()
808 TestRenderPageBitmapWithMatrix(page, page_width, page_height, in TEST_F()
815 TestRenderPageBitmapWithMatrix(page, page_width, page_height, in TEST_F()
[all …]
Dfpdf_view.cpp347 double page_height = pPage->GetPageHeight(); in GetScaling() local
348 if (page_width < kEpsilonSize || page_height < kEpsilonSize) in GetScaling()
353 *scale_y = size_y / page_height; in GetScaling()
356 *scale_y = size_x / page_height; in GetScaling()
/external/libcups/filter/
Drastertopwg.c40 page_height, /* Actual page height */ in main() local
123 page_height = (unsigned)(inheader.cupsPageSize[1] * inheader.HWResolution[1] / 72.0); in main()
126 page_top = page_height - page_bottom - inheader.cupsHeight; in main()
130 if (page_left > page_width || page_top > page_height || page_bottom > page_height) in main()
193 outheader.cupsHeight = page_height; in main()
301 outheader.cupsInteger[6] = page_height - page_bottom; in main()
315 outheader.cupsInteger[6] = page_height - page_top; in main()
333 outheader.cupsInteger[6] = page_height - page_top; in main()
347 outheader.cupsInteger[6] = page_height - page_bottom; in main()
365 outheader.cupsInteger[6] = page_height - page_top; in main()
[all …]
/external/libcups/tools/
Dippeveps.c544 page_height, /* Page heigth in points */ in jpeg_to_ps() local
692 page_height = 720.0f; in jpeg_to_ps()
700 page_height = page_top - page_size->bottom; in jpeg_to_ps()
707 page_height = 720.0f; in jpeg_to_ps()
711 …page_top=%.2f, page_width=%.2f, page_height=%.2f\n", page_left, page_top, page_width, page_height); in jpeg_to_ps()
715 y_factor = page_height / height; in jpeg_to_ps()
717 if (x_factor > y_factor && (height * x_factor) <= page_height) in jpeg_to_ps()
750 …_left + 0.5f * (page_width - width * page_scaling), page_top - 0.5f * (page_height - height * page… in jpeg_to_ps()
/external/skqp/tools/
Dusing_skia_and_harfbuzz.cpp105 DoubleOption page_height = DoubleOption("-h", "Page height", 800.0f); member
121 &page_width, &page_height, &title, &author, &subject, in Config()
150 current_y + endPoint.y() > config->page_height.value) in WriteLine()
157 SkDoubleToScalar(config->page_height.value)); in WriteLine()
/external/skia/tools/
Dusing_skia_and_harfbuzz.cpp105 DoubleOption page_height = DoubleOption("-h", "Page height", 800.0f); member
121 &page_width, &page_height, &title, &author, &subject, in Config()
150 current_y + endPoint.y() > config->page_height.value) in WriteLine()
157 SkDoubleToScalar(config->page_height.value)); in WriteLine()