/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_bufferallocation.cpp | 103 static void get_rgb_stride_and_size(int width, int height, int pixel_size, int *pixel_stride, int *… in get_rgb_stride_and_size() argument 108 stride = width * pixel_size; in get_rgb_stride_and_size() 138 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_rgb_stride_and_size() 144 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 150 w_aligned = GRALLOC_ALIGN(width, 64); in get_rgb_stride_and_size() 154 w_aligned = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 159 w_aligned = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_rgb_stride_and_size() 197 static bool get_afbc_yuv420_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv420_8bit_stride_and_size() argument 226 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() 232 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() [all …]
|
/device/amlogic/yukawa/gralloc/ |
D | mali_gralloc_bufferallocation.cpp | 103 static void get_rgb_stride_and_size(int width, int height, int pixel_size, int *pixel_stride, int *… in get_rgb_stride_and_size() argument 108 stride = width * pixel_size; in get_rgb_stride_and_size() 138 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_rgb_stride_and_size() 144 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 150 w_aligned = GRALLOC_ALIGN(width, 64); in get_rgb_stride_and_size() 154 w_aligned = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 159 w_aligned = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_rgb_stride_and_size() 197 static bool get_afbc_yuv420_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv420_8bit_stride_and_size() argument 226 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() 232 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() [all …]
|
/device/google/cuttlefish/guest/hals/camera/ |
D | Converters.cpp | 30 int width, int height) { in _YUV420SToRGB565() argument 35 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB565() 56 const uint8_t* V, int dUV, uint32_t* rgb, int width, in _YUV420SToRGB32() argument 62 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB32() 82 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) { in YV12ToRGB565() argument 83 const int pix_total = width * height; in YV12ToRGB565() 87 _YUV420SToRGB565(Y, U, V, 1, reinterpret_cast<uint16_t*>(rgb), width, height); in YV12ToRGB565() 90 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) { in YV12ToRGB32() argument 91 const int pix_total = width * height; in YV12ToRGB32() 95 _YUV420SToRGB32(Y, U, V, 1, reinterpret_cast<uint32_t*>(rgb), width, height); in YV12ToRGB32() [all …]
|
/device/generic/goldfish/camera/ |
D | Converters.cpp | 35 int width, in _YUV420SToRGB565() argument 48 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB565() 64 int width, in _YUV420SToRGB32() argument 77 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB32() 96 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) in YV12ToRGB565() argument 99 const int y_stride = align(width, 16); in YV12ToRGB565() 105 width, height, y_stride, uv_stride); in YV12ToRGB565() 108 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) in YV12ToRGB32() argument 111 const int y_stride = align(width, 16); in YV12ToRGB32() 116 _YUV420SToRGB32(Y, U, V, 1, reinterpret_cast<uint32_t*>(rgb), width, height, in YV12ToRGB32() [all …]
|
/device/google/barbet-kernel/sm7250/kernel-headers/media/ |
D | msm_media_info.h | 775 unsigned int width) in VENUS_Y_STRIDE() argument 779 if (!width) in VENUS_Y_STRIDE() 787 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 791 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 795 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 801 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 818 unsigned int width) in VENUS_UV_STRIDE() argument 822 if (!width) in VENUS_UV_STRIDE() 830 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() 834 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() [all …]
|
/device/google/barbet-kernel/sm7250/original-kernel-headers/media/ |
D | msm_media_info.h | 775 unsigned int width) in VENUS_Y_STRIDE() argument 779 if (!width) in VENUS_Y_STRIDE() 787 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 791 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 795 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 801 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 818 unsigned int width) in VENUS_UV_STRIDE() argument 822 if (!width) in VENUS_UV_STRIDE() 830 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() 834 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() [all …]
|
/device/google/redbull-kernel/sm7250/original-kernel-headers/media/ |
D | msm_media_info.h | 775 unsigned int width) in VENUS_Y_STRIDE() argument 779 if (!width) in VENUS_Y_STRIDE() 787 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 791 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 795 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 801 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 818 unsigned int width) in VENUS_UV_STRIDE() argument 822 if (!width) in VENUS_UV_STRIDE() 830 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() 834 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() [all …]
|
/device/google/redbull-kernel/sm7250/kernel-headers/media/ |
D | msm_media_info.h | 775 unsigned int width) in VENUS_Y_STRIDE() argument 779 if (!width) in VENUS_Y_STRIDE() 787 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 791 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 795 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 801 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 818 unsigned int width) in VENUS_UV_STRIDE() argument 822 if (!width) in VENUS_UV_STRIDE() 830 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() 834 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() [all …]
|
/device/google/sunfish-kernel/sm7150/original-kernel-headers/media/ |
D | msm_media_info.h | 899 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 902 (void)width; in VENUS_EXTRADATA_SIZE() 918 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 922 if (!width) in VENUS_Y_STRIDE() 931 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 935 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 939 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 944 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 948 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 964 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument [all …]
|
/device/google/sunfish-kernel/sm7150/kernel-headers/media/ |
D | msm_media_info.h | 899 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 902 (void)width; in VENUS_EXTRADATA_SIZE() 918 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 922 if (!width) in VENUS_Y_STRIDE() 931 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 935 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 939 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 944 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 948 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 964 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument [all …]
|
/device/google/coral-kernel/sm8150/kernel-headers/media/ |
D | msm_media_info.h | 899 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 902 (void)width; in VENUS_EXTRADATA_SIZE() 918 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 922 if (!width) in VENUS_Y_STRIDE() 931 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 935 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 939 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 944 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 948 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 964 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument [all …]
|
/device/google/coral-kernel/sm8150/original-kernel-headers/media/ |
D | msm_media_info.h | 899 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 902 (void)width; in VENUS_EXTRADATA_SIZE() 918 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 922 if (!width) in VENUS_Y_STRIDE() 931 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 935 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 939 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 944 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 948 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 964 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument [all …]
|
/device/google/crosshatch/sdm845/original-kernel-headers/media/ |
D | msm_media_info.h | 816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 819 (void)width; in VENUS_EXTRADATA_SIZE() 835 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 839 if (!width) in VENUS_Y_STRIDE() 848 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 852 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 857 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 861 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 877 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument 881 if (!width) in VENUS_UV_STRIDE() [all …]
|
/device/google/bonito/sdm710/original-kernel-headers/media/ |
D | msm_media_info.h | 816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 819 (void)width; in VENUS_EXTRADATA_SIZE() 835 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 839 if (!width) in VENUS_Y_STRIDE() 848 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 852 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 857 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 861 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 877 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument 881 if (!width) in VENUS_UV_STRIDE() [all …]
|
/device/google/crosshatch/sdm845/kernel-headers/media/ |
D | msm_media_info.h | 816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 819 (void)width; in VENUS_EXTRADATA_SIZE() 835 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 839 if (!width) in VENUS_Y_STRIDE() 848 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 852 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 857 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 861 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 877 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument 881 if (!width) in VENUS_UV_STRIDE() [all …]
|
/device/google/bonito/sdm710/kernel-headers/media/ |
D | msm_media_info.h | 816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 819 (void)width; in VENUS_EXTRADATA_SIZE() 835 static __inline__ unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument 839 if (!width) in VENUS_Y_STRIDE() 848 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 852 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 857 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE() 861 stride = MSM_MEDIA_ALIGN(width*2, alignment); in VENUS_Y_STRIDE() 877 static __inline__ unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument 881 if (!width) in VENUS_UV_STRIDE() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_imageop.py | 26 for width in VALUES: 27 strlen = abs(width * height) 35 arguments = (data, size, width, height) + extra 37 arguments = (data, width, height) + extra 80 image, width, height = getimage('test'+os.extsep+'rgb') 86 newimage = imageop.crop (image, 4, width, height, 0, 0, 1, 1) 94 scaleimage = imageop.scale(image, 4, width, height, 1, 1) 102 videoimage = imageop.tovideo (image, 4, width, height) 107 greyimage = imageop.rgb2rgb8(image, width, height) 112 image = imageop.rgb82rgb(greyimage, width, height) [all …]
|
/device/generic/goldfish/camera/qemu-pipeline3/ |
D | QemuSensor.cpp | 57 QemuSensor::QemuSensor(const char *deviceName, uint32_t width, uint32_t height, in QemuSensor() argument 60 mWidth(width), in QemuSensor() 62 mActiveArray{0, 0, width, height}, in QemuSensor() 76 ALOGV("QemuSensor created with pixel array %d x %d", width, height); 288 i, b.streamId, b.width, b.height, b.format, b.stride, in threadLoop() 292 captureRGB(b.img, b.width, b.height, b.stride, ×tamp); in threadLoop() 296 captureRGBA(b.width, b.height, b.stride, ×tamp, b.buffer); in threadLoop() 298 captureRGBA(b.img, b.width, b.height, b.stride, ×tamp); in threadLoop() 311 bAux.width = b.width; in threadLoop() 314 bAux.stride = b.width; in threadLoop() [all …]
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | FormatConversions.h | 23 void get_yv12_offsets(int width, int height, 27 void get_yuv420p_offsets(int width, int height, 32 void rgb565_to_yv12(char* dest, char* src, int width, int height, 34 void rgb888_to_yv12(char* dest, char* src, int width, int height, 36 void rgb888_to_yuv420p(char* dest, char* src, int width, int height, 38 void yv12_to_rgb565(char* dest, char* src, int width, int height, 40 void yv12_to_rgb888(char* dest, char* src, int width, int height, 42 void yuv420p_to_rgb888(char* dest, char* src, int width, int height, 46 int width, int height, int top, int left,
|
D | FormatConversions.cpp | 34 static int get_rgb_offset(int row, int width, int rgbStride) { in get_rgb_offset() argument 35 return row * width * rgbStride; in get_rgb_offset() 50 void get_yv12_offsets(int width, int height, in get_yv12_offsets() argument 55 uint32_t yStride = (width + (align - 1)) & ~(align-1); in get_yv12_offsets() 65 void get_yuv420p_offsets(int width, int height, in get_yuv420p_offsets() argument 70 uint32_t yStride = (width + (align - 1)) & ~(align-1); in get_yuv420p_offsets() 89 void rgb565_to_yv12(char* dest, char* src, int width, int height, in rgb565_to_yv12() argument 94 int yStride = (width + (align -1)) & ~(align-1); in rgb565_to_yv12() 106 uint16_t *rgb_ptr = rgb_ptr0 + get_rgb_offset(j, width, rgb_stride) / 2; in rgb565_to_yv12() 129 void rgb888_to_yv12(char* dest, char* src, int width, int height, in rgb888_to_yv12() argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | textwrap.py | 108 width=70, argument 117 self.width = width 202 def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): argument 212 if width < 1: 215 space_left = width - cur_len 249 if self.width <= 0: 250 raise ValueError("invalid width %r (must be > 0)" % self.width) 270 width = self.width - len(indent) 281 if cur_len + l <= width: 291 if chunks and len(chunks[-1]) > width: [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | textwrap.py | 116 width=70, argument 125 self.width = width 210 def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): argument 220 if width < 1: 223 space_left = width - cur_len 257 if self.width <= 0: 258 raise ValueError("invalid width %r (must be > 0)" % self.width) 278 width = self.width - len(indent) 289 if cur_len + l <= width: 299 if chunks and len(chunks[-1]) > width: [all …]
|
/device/generic/goldfish-opengl/system/GLESv2_enc/ |
D | IOStream2.cpp | 11 void IOStream::readbackPixels(void* context, int width, int height, unsigned int format, unsigned i… in readbackPixels() argument 21 ctx->state()->getPackingOffsets2D(width, height, format, type, in readbackPixels() 30 width, height, 1, format, type, 1 /* is pack */); in readbackPixels() 36 } else if (pixelRowSize == totalRowSize && (pixelRowSize == width * bpp)) { in readbackPixels() 56 if (pixelRowSize != width * bpp) { in readbackPixels() 57 size_t rowSlack = pixelRowSize - width * bpp; in readbackPixels() 59 readback(start, width * bpp); in readbackPixels() 76 void IOStream::uploadPixels(void* context, int width, int height, int depth, unsigned int format, u… in uploadPixels() argument 87 ctx->state()->getUnpackingOffsets2D(width, height, format, type, in uploadPixels() 96 width, height, 1, format, type, 0 /* is unpack */); in uploadPixels() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/ |
D | transmogrify.h | 130 Py_ssize_t width; in stringlib_ljust() local 133 if (!PyArg_ParseTuple(args, "n|c:ljust", &width, &fillchar)) in stringlib_ljust() 136 if (STRINGLIB_LEN(self) >= width && STRINGLIB_CHECK_EXACT(self)) { in stringlib_ljust() 147 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust() 160 Py_ssize_t width; in stringlib_rjust() local 163 if (!PyArg_ParseTuple(args, "n|c:rjust", &width, &fillchar)) in stringlib_rjust() 166 if (STRINGLIB_LEN(self) >= width && STRINGLIB_CHECK_EXACT(self)) { in stringlib_rjust() 177 return pad(self, width - STRINGLIB_LEN(self), 0, fillchar); in stringlib_rjust() 191 Py_ssize_t width; in stringlib_center() local 194 if (!PyArg_ParseTuple(args, "n|c:center", &width, &fillchar)) in stringlib_center() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/ |
D | transmogrify.h | 130 Py_ssize_t width; in stringlib_ljust() local 133 if (!PyArg_ParseTuple(args, "n|c:ljust", &width, &fillchar)) in stringlib_ljust() 136 if (STRINGLIB_LEN(self) >= width && STRINGLIB_CHECK_EXACT(self)) { in stringlib_ljust() 147 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust() 160 Py_ssize_t width; in stringlib_rjust() local 163 if (!PyArg_ParseTuple(args, "n|c:rjust", &width, &fillchar)) in stringlib_rjust() 166 if (STRINGLIB_LEN(self) >= width && STRINGLIB_CHECK_EXACT(self)) { in stringlib_rjust() 177 return pad(self, width - STRINGLIB_LEN(self), 0, fillchar); in stringlib_rjust() 191 Py_ssize_t width; in stringlib_center() local 194 if (!PyArg_ParseTuple(args, "n|c:center", &width, &fillchar)) in stringlib_center() [all …]
|